Compile options, Compiler output, List files – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual
Page 59: Expand macros, Program type, Debug information

Edit Menu • Compile Options
37
Publication 1398-PM601A-EN-P — October 2000
MENUS
Compile Options
The Compile Options item under the Edit menu allows you to choose what type of program to compile,
generate a list file, include debug information in the compiled file, expand macros, and whether to com-
pile the file to disk or memory. The default compiler settings may be overridden by using compiler
options program statements such as PGMTYPE, DEBUG, etc. Refer to Part 5
•
for more detailed information.
Compiler Output
If Compile to Memory is selected, the executable program is not stored on the PC hard disk. If Compile
to Disk is selected, the executable code is saved to the hard disk with the same name as the source pro-
gram and a QPE extension. The compiling operation is faster if Compile to Memory is selected. Choose
Compile to Disk if you intend to save the executable code and transfer it to a controller later.
List Files
To create a program list file, select the Compile to Disk button, then select the Generate List File check
box. The list file is saved to disk with same filename as the source program and a LST extension. Line
numbers will be added to each line of the program, and any compile errors will be shown in the list file.
Expand Macros
The Expand Macros selection is only used if Generate List File is selected. Select the Expand Macros
check box to generate the actual text strings that have been assigned using the ASSIGN statement. If
you do not expand macros, the name assigned to the text string will be shown in the list file instead of
the text wherever the text string is referenced. If you expand macros you can then look at the list file and
read your program as the compiler has interpreted your ASSIGN statements.
Program Type
Select the type of program you want to compile from the Program Type box: Main (normal programs),
Auto (Auto Program), Fkey Routine (Function key routines for the Operator Terminal), Error (a special
program that executes when there is a error detected), or Cam Profile. This selection needs to be made
because not all of the commands are valid in all program types. This setting may be overridden by using
the PGMTYPE program statement.
Debug Information
Select the Generate Debug Information check box to generate program status information used in the
Status dialog box and to allow Single Stepping from the Run Control dialog box. (Note that this
increases executable program size by 5 bytes per line.)
Each line of a program can be monitored while executing programs compiled with debug information.
You will also be able to step through your program one line at a time. This is very useful when trying to
debug a program that is not functioning properly or that is stopping unexpectedly. This setting may be
overridden by using the DEBUG program statement.