Reference Manual
PMAC 2 Software Reference
248 PMAC On-Line Command Specification
Because PMAC calculates ahead in a continuous sequence of moves, the LIST PC
(Program Calculation) command will in general return a program line further down in the
program than LIST PE will.
LIST PE returns only the currently executing line. LIST PE, returns from the currently
executing line to the end of the program. LIST PE,{constant} returns the specified
number of words in the program, starting at the currently executing line.
If the coordinate system is not pointing to any motion program, PMAC will return an error
(ERR003 if I6=1 or 3). Initially the pointing must be done with the B{constant}
command.
Example
LIST PE .......... ; List presently executing line
P5:35:X5Y30 . ; PMAC responds
LIST PE,4...... ; List four program words, starting with executing line
P5:35:X5Y30 . ; PMAC responds
37:X12Y32
LIST PE, ........ ; List rest of program, starting with executing line
P5:35:X5Y30 . ; PMAC responds
37:X12Y32
39:X0 Y10
41:RETURN
See Also
On-line commands B{constant}, LIST, LIST PC, PC, PE
LIST PLC
Function
List the contents of the specified PLC program.
Scope
Global
Syntax
LIST PLC{constant} [,[{start}]] [,[{length}]]
where:
• {constant} is an integer from 0 to 31 representing the number of the PLC 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 (the execution point 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 uncompiled PLC
program buffer 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. ENDW). If I9 is 1 or 3, the contents are reported in
long form (e.g. ENDWHILE).
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
beginning of the buffer. If {length} is specified, the reporting will continue for
{length} words from the starting point.
If the first comma is present, but no start point is specified, the listing will start from the next
line to be executed in the PLC program. Because PMAC can only execute this command
between PLC scans, this line will be the first to execute in the next scan. If the second
comma is present, but no length is specified, the listing will continue to the end of the