Reference Manual

PMAC 2 Software Reference
PMAC On-Line Command Specification 247
LIST PC
Function
List Program at Program Counter
Scope
Coordinate-system specific
Syntax
LIST PC[,[{constant}]]
where:
{constant} is a positive integer representing the number of words in the program to
be listed
Remarks
This command causes PMAC to list the program line(s) that it is (are) about to calculate in
the addressed coordinate system, with the first line preceded by the program number and
each line preceded by the address offset. LIST PC just lists the next line to be calculated.
LIST PC, lists from the next line to be calculated to the end of the program. LIST
PC,{constant} lists the specified address range size starting at the next line to be
calculated. To see the current line of execution, use the LIST PE command.
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.
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 PC .......... ; List next line to be calculated
P1:22:X10Y20 ; PMAC responds
LIST PC,4...... ; List next four words of program to be calculated
P1:22:X10Y20 ; PMAC responds
24:X15Y30
LIST PC, ........ ; List rest of program
P1:22:X10Y20 ; PMAC responds
24:X15Y30
26:M1=0
28:RETURN
See Also
On-line commands B{constant}, LIST, PC, LIST PE, PE
LIST PE
Function
List Program at Program Execution
Scope
Coordinate-system specific
Syntax
LIST PE[,[{constant}]]
where:
{constant} is a positive integer representing the number of words in the program to
be listed
Remarks
This command causes PMAC to list the program line(s) starting with the line containing the
move that it is currently executing in the addressed coordinate system, with the first line
preceded by the program number, and each line preceded by the address offset.