Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
12<br />
System architecture<br />
register values and PL2 statements.<br />
SOFTWARE SYSTEM<br />
Compiler PC s<strong>of</strong>tware tool running on the PC to compile (translate) a PL2<br />
statement text file (.pl2) to a binary format file (.hee) suitable<br />
for transmission to the DMC 2 . Communication between the PC<br />
and the drive is assumed to be in the binary download format.<br />
Terminal<br />
mode<br />
compiler<br />
Line oriented compiler running in the DMC 2 firmware allowing the<br />
user to modify and insert statements in the application program in<br />
the DMC 2 . NOTE that the interpreter performs functions similar to<br />
the compiler but on a line-by-line basis. It is executed in the drive<br />
itself and is accessed online.<br />
Interpreter The interpreter executes as part <strong>of</strong> the DMC 2 firmware and<br />
interprets PL2 commands. If an application program is running,<br />
statements are sequentially interpreted from the DMC 2 application<br />
program memory. If it is not running the interpreter still reacts to<br />
online statements as described above under terminal mode<br />
compiler.<br />
SYSTEM ARCHITECTURE<br />
DMC 2 SOFTWARE DEVELOPMENT<br />
The DMC 2 s<strong>of</strong>tware system can be divided into two main parts, firmware (FW) and<br />
PL2 code.<br />
• The FW (firmware) functions as a computer operating system. It manages all<br />
direct interactions with the hardware and provides the application programmer<br />
with uniform, high level programming tools. The FW is stored in part <strong>of</strong> the<br />
FLASH in the DMC 2 .<br />
• PL2 code is the instructions written by the application programmer to achieve<br />
application specific behavior <strong>of</strong> the DMC 2 . It is created as a text file in a PC<br />
environment, compiled and downloaded to the DMC and stored in the<br />
FLASHPROM for finalized application programs. While in text format the PL2<br />
file may contain extensive comments and explanations. The downloadable<br />
files, however, are in a pseudo-machine language, stripped <strong>of</strong> all comments<br />
and labels.<br />
The application programmer uses the following tools to create an application:<br />
• ECT, Edit-Compile-Test, s<strong>of</strong>tware package for PC-compatible computers.<br />
Allows the user to create application program text files, compile them and<br />
download the binary files to the DMC 2 as illustrated in Figure 1.<br />
• ECT includes facilities for working on-line with the DMC 2 . This combined with<br />
the DMC’s built-in line compiler may sometimes be a useful complement to the<br />
normal development method.<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001