Table of Contents - TG Drives
Table of Contents - TG Drives Table of Contents - TG Drives
212 Compile EXITING EDIT To exit Edit and return to the ECT Main Menu window, Save and Close all open editor windows. COMPILE INTRODUCTION User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 ECT The ECT Compile application compiles the source code in the active edit window. The result of a ”clean” compile is executable code for the motion controller. The compiler also generates a list file with cross-references and a list of variables and constants used in the program. The ECT compiler performs a number of functions • Preprocessing. Involves include files, macro definition and expansion, and conditional compilation. • Lexical analysis. Recognizes different categories of word-like units, referred to as tokens. • Phrase structure grammar. Details the rules by which tokens can be grouped together to form expressions, statements, and other significant units. ACCESSING COMPILE Compile is accessed through the Edit application. When Compile is selected from the Edit application speed bar, the text in the active edit window is automatically compiled. However, prior to compiling source code, verify the compiler settings are correct. Accessing the compiler setup window is described in the following section. SETTING UP THE COMPILER Prior to editing and compiling source code, verify the compiler settings are correct. At the ECT Main Menu window, access the compiler setup window by selecting: • Options. • Compiler Setup. The window as shown in Figure 13. is displayed.
ECT Figure 13. The Compiler setup window. COMPILING SOURCE CODE Compile While in the active edit window, access the compiler as described above. While the source code is being compiled, a window such as that had shown in Figure 14. is displayed. This window identifies the file being compiled and the error/warning status of the source code as it is being compiled. Figure 14. The compiled file. When the compiling is complete, click on the OK button to display the output COMPILER OUTPUT Output, in the form of errors and/or warnings are displayed in the Compiler ”Messages” window (Figure 15.). Errors and warnings are reported back to the active Edit window, which then sequentially highlights the first faulty source code User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 213
- Page 161 and 162: EXTENDED REGISTER GROUPS PARAREA, G
- Page 163 and 164: EXTENDED REGISTER GROUPS XENDAT, Gr
- Page 165 and 166: EXTENDED REGISTER GROUPS wait tmr.t
- Page 167 and 168: EXTENDED REGISTER GROUPS XENDAT.Tra
- Page 169 and 170: EXTENDED REGISTER GROUPS XENDAT, Af
- Page 171 and 172: EXTENDED REGISTER GROUPS XENDAT.RPo
- Page 173 and 174: EXTENDED REGISTER GROUPS Counter 0
- Page 175 and 176: EXTENDED REGISTER GROUPS IDENTIFIER
- Page 177 and 178: EXTENDED REGISTER GROUPS >RPDATA.Ar
- Page 179 and 180: EXTENDED REGISTER GROUPS EXAMPLE US
- Page 181 and 182: EXTENDED REGISTER GROUPS SAnyBus ;
- Page 183 and 184: EXTENDED REGISTER GROUPS GROUP MEMB
- Page 185 and 186: EXTENDED REGISTER GROUPS SAnyBus As
- Page 187 and 188: EXTENDED REGISTER GROUPS PutLONG Pu
- Page 189 and 190: EXTENDED REGISTER GROUPS ABOUTMAIL
- Page 191 and 192: EXTENDED REGISTER GROUPS EN1-EN4, E
- Page 193 and 194: EXTENDED REGISTER GROUPS IENC Group
- Page 195 and 196: EXTENDED REGISTER GROUPS MODEN3-MOD
- Page 197: EXTENDED REGISTER GROUPS ModEN3.Cap
- Page 200 and 201: 200 Computer Mode Record type 1 2 3
- Page 203 and 204: PL2 On line commands PL2 ON LINE CO
- Page 205: PL2 ON LINE COMMANDS Command name E
- Page 208 and 209: 208 B009 Definitions THE ECT MAIN M
- Page 210 and 211: 210 Edit in generating this code. F
- Page 214 and 215: 214 Test line, assisting the user t
- Page 216 and 217: 216 Test including the upload and d
- Page 218 and 219: 1 2 3 4 5 6 X7:A 16 15 14 13 12 11
- Page 220: Start (reset entry) Init If ..... t
212<br />
Compile<br />
EXITING EDIT<br />
To exit Edit and return to the ECT Main Menu window, Save and Close all open<br />
editor windows.<br />
COMPILE<br />
INTRODUCTION<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />
ECT<br />
The ECT Compile application compiles the source code in the active edit window.<br />
The result <strong>of</strong> a ”clean” compile is executable code for the motion controller. The<br />
compiler also generates a list file with cross-references and a list <strong>of</strong> variables and<br />
constants used in the program.<br />
The ECT compiler performs a number <strong>of</strong> functions<br />
• Preprocessing.<br />
Involves include files, macro definition and expansion, and conditional<br />
compilation.<br />
• Lexical analysis.<br />
Recognizes different categories <strong>of</strong> word-like units, referred to as tokens.<br />
• Phrase structure grammar.<br />
Details the rules by which tokens can be grouped together to form expressions,<br />
statements, and other significant units.<br />
ACCESSING COMPILE<br />
Compile is accessed through the Edit application. When Compile is selected from<br />
the Edit application speed bar, the text in the active edit window is automatically<br />
compiled. However, prior to compiling source code, verify the compiler settings are<br />
correct. Accessing the compiler setup window is described in the following section.<br />
SETTING UP THE COMPILER<br />
Prior to editing and compiling source code, verify the compiler settings are correct.<br />
At the ECT Main Menu window, access the compiler setup window by selecting:<br />
• Options.<br />
• Compiler Setup.<br />
The window as shown in Figure 13. is displayed.