Table of Contents - TG Drives
Table of Contents - TG Drives Table of Contents - TG Drives
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
- Page 1 and 2: HEAD OFFICE INMOTION TECHNOLOGIES A
- Page 3 and 4: Table of Contents Table of Contents
- Page 5 and 6: Related items .....................
- Page 7 and 8: Related items .....................
- Page 9: Creating/Editing Source Code ......
- Page 14 and 15: 14 B002 Timing and execution flow T
- Page 16 and 17: 16 Function Block Diagram SOFTWARE
- Page 18 and 19: 18 Function Block Diagram Figure 5.
- Page 20 and 21: 20 Function Block Diagram Function
- Page 22 and 23: 22 Load a new firmware release SOFT
- Page 24 and 25: 24 User's Manual 5.1 Inmotion Techn
- Page 26 and 27: 26 Argument types executing results
- Page 28 and 29: 28 Mnemonic Operators PL2 NATIVE PO
- Page 30 and 31: 30 Compiler Symbols PL2 NATIVE POSI
- Page 32 and 33: 32 Compiler directives PL2 NATIVE P
- Page 34 and 35: 34 Compiler directives Warnings: No
- Page 36 and 37: 36 Spline function compilation dire
- Page 38 and 39: 38 Multiline Macro MACRO DEFINITION
- Page 41 and 42: PL2 Mnemonics GENERAL The general f
- Page 43 and 44: PL2 MNEMONICS Standard set Mnemonic
- Page 45 and 46: PL2 MNEMONICS TRACE RELATED MNEMONI
- Page 47 and 48: PL2 MNEMONICS Indexed Addressing Mn
- Page 49 and 50: PL2 MNEMONICS If r_length < r_Membe
- Page 51 and 52: PL2 MNEMONICS Text mode \000 Intern
- Page 53 and 54: Extended register groups INTRODUCTI
- Page 55 and 56: EXTENDED REGISTER GROUPS STACK HAND
- Page 57 and 58: EXTENDED REGISTER GROUPS RD1, Resol
- Page 59 and 60: EXTENDED REGISTER GROUPS RD1, Resol
- Page 61 and 62: EXTENDED REGISTER GROUPS RD1.FiltSp
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