Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 346
This command causes Turbo PMAC to list the program lines 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 Turbo 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, Turbo 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 ; Turbo PMAC responds
LIST PC,4 ; List next 4 words of program to be calculated
P1:22:X10Y20 ; Turbo PMAC responds
24:X15Y30
LIST PC, ; List rest of program
P1:22:X10Y20 ; Turbo 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
This command causes Turbo PMAC to list the program lines 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.
Because Turbo 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, Turbo 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 ; Turbo PMAC responds
LIST PE,4 ; List 4 program words, starting with executing line
P5:35:X5Y30 ; Turbo PMAC responds
37:X12Y32
LIST PE, ; List rest of program, starting with executing line