Table of Contents - TG Drives

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

28.11.2012 Views

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

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.

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

Saved successfully!

Ooh no, something went wrong!