Listfile, Loop – 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 255

Language Reference • Reference
233
Publication 1398-PM601A-EN-P — October 2000
WORDS
LISTFILE
Create List File
Compiler Options
Purpose
Selects whether a list file should be created on disk.
Syntax
LISTFILE = ON/OFF
ON
A list file will be created with the same name as the source file
and an extension of .LST.
OFF
A list file will not be created.
Remarks
The LISTFILE statement overrides the default compiler option for Generate List File
set in the Edit menu, Compiler Options dialog box.
This setting is ignored if Compile to Memory is selected (no list file will be created).
See Also
PGMTYPE, DEBUG, COMPILETOMEMORY, EXPANDMACROS
Example
LISTFILE = ON
LISTFILE = OFF
LOOP
Loop
Program Structure
Purpose
Define the start of a block of instructions to be repeated several times. A REPEAT
statement must mark the end of the block of instructions. The count (LOOPINDEX)
may be changed during execution.
Syntax
LOOP
count
Specifies the number of times the statements between LOOP and
REPEAT are execute. The loop count must be between the range
of 0 to 65535. Count may be a nonvolatile variable Gn, a volatile
variable Vn, a system variable, or a mathematical expression.
Remarks
If count is 0 the statements in the loop will not execute.
A loop count specified as a variable is tested for valid range (0 to 65535).
The LOOP statements cannot be used in Fkey or Scanned Event routines. If a subrou-
tine is called from a LOOP, the subroutine may not contain a LOOP.
See Also
REPEAT, LOOPINDEX, XLOOPINDEX
Example
LOOP 10
;Do the statements 10 times
.... statements
REPEAT
LOOP V4
;Do the statements the number of
.... statements;times specified by V4
RPT