Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

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

Online terminal mode SOFTWARE SYSTEM Work directly in DMC, FBU application memory. Compile line by line to memory use direct commands. ECT Test DMC FBU Compile/download mode ECT Test ECT Compiler Figure 1. DMC 2 software development cycle. ECT Editor Download binary file to DMC, FBU application memory Compile the textfile to create a binary downloadable file Create PL2 textfile in the PC-editor System architecture Binary file .hee PL2 textfile .pl User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 B001 13

Online terminal mode<br />

SOFTWARE SYSTEM<br />

Work directly in DMC, FBU<br />

application memory.<br />

Compile line by line to<br />

memory use direct<br />

commands.<br />

ECT<br />

Test<br />

DMC<br />

FBU<br />

Compile/download mode<br />

ECT<br />

Test<br />

ECT<br />

Compiler<br />

Figure 1. DMC 2 s<strong>of</strong>tware development cycle.<br />

ECT Editor<br />

Download binary<br />

file to DMC, FBU<br />

application memory<br />

Compile the textfile<br />

to create a binary<br />

downloadable file<br />

Create PL2<br />

textfile in the<br />

PC-editor<br />

System architecture<br />

Binary file<br />

.hee<br />

PL2 textfile<br />

.pl<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

B001<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!