WWW.NNC.IR
Macro Reference
597
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
List
Outputs all or a part of program list in the system status console window.
Format
List [<lineNo1>][-<lineNo2>]
Parameter
Return value
None.
Description
Program list from the specified line number in the <lineNo1> parameter to the specified line number in the
<lineNo2> parameter is output to the system status console window.
If the <lineNo1> and <lineNo2> parameters are omitted, all lines in the program are output. If only the
<lineNo1> parameter is omitted, program lines from the beginning to the specified line number by the
<lineNo2> parameter are output.
If only the <lineNo2> parameter is omitted, only the program line specified in the <lineNo1> parameter is
output.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Undefined line number" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• This macro function is only enabled when specified in debug mode with the Debug function. Otherwise, this
macro function statement is ignored. (Reference: XHow to Use the Debug Function (p.235))
Example
After stopping the program execution with the Stop function used in the Unit Macro processing unit, executes
the List function in the system status console window to output the program line numbers from 230 to 240 to
the window.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Parameter
name
Data type Description
<lineNo1> Integer type Line number where the output starts
<lineNo2> Integer type Line number where the output ends
Macro(U1) Stop in 220
Macro(U1) List 230-240
230 POS.X#=(POS0.X@ + POS1.X@) / 2
240 POS.Y#=(POS0.Y@ + POS1.Y@) / 2
Macro(U1)>