Reference Manual

PMAC 2 Software Reference
PMAC On-Line Command Specification 249
program.
If either {start}, {length}, or both, or just the comma, is included in the command, the
listing of the program will include the buffer address offsets with each line.
PLCs 0-15 can be protected by password. If the PLC is protected by password, and the
proper password has not been given, PMAC will reject this command (reporting an ERR002
if I6=1 or 3).
Example
LIST PLC 5
P1=0
WHILE (P1<1000)
P1=P1+1
ENDWHILE
RETURN
LIST PLC 5,0
0:P1=0
1:WHILE(P1<1000)
3:P1=P1+1
6:ENDWHILE
7:RETURN
LIST PLC 5,,1
1:WHILE(P1<1000)
LIST PLC 5,,
1:WHILE(P1<1000)
3:P1=P1+1
6:ENDWHILE
7:RETURN
See Also
PLC Program Features
I-variables I3, I4, I9
On-line commands LIST, LIST PROG, PASSWORD={string}
Program Command Specification
LIST PROGRAM
Function
List the contents of the specified motion program.
Scope
Global
Syntax
LIST PROGRAM {constant} [,[{start}]] [,[{length}]]
LIST PROG {constant} [,[{start}]] [,[{length}]]
where:
{constant} is an integer from 1 to 32767 specifying the number of the motion
program
the optional {start} parameter is an integer constant specifying the distance from the
start of the buffer (in words of memory) to begin the listing (0 is the default);
the optional {length} parameter (after a comma) is an integer constant specifying the
number of words of the buffer to be sent to the host (to the end of the buffer is the
default)
Remarks
This command causes PMAC to report the contents of the specified fixed motion program
buffer (PROG) to the host. The contents are reported in ASCII text form. If I9 is 0 or 2, the
contents are reported in short form (e.g. LIN). If I9 is 1 or 3, the contents are reported in
long form (e.g. LINEAR).
If neither {start} nor {length} is specified, the entire contents of the buffer will be
reported. If {start} is specified, the reporting will begin {start} words from the