PMAC Product Guide LIST Function : List the contents of the currently opened buffer Scope : Global Syntax : LIST This command causes PMAC to report the contents of the currently opened buffer (PLC, PROG, or ROT) to the host. If no buffer is open, PMAC will report an error (ERR003 if I6=1 or 3). Note that what is reported will not include any OPEN , CLEAR or CLOSE statements (since these are not program commands). An unopened buffer can be listed by specifying the buffer name in the list command (e.g. LIST PROG 1 ). See more LIST commands, below. Examples:
OPEN PROG 1 ; Open buffer for entry LIST ; Request listing of open buffer LINEAR ; PMAC reports contents of open buffer F10 X20 Y20 X0 Y0 RETURN CLOSE ; Close buffer LIST ; Request listing of open buffer ERR003 ; PMAC reports error because no open buffer 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 This command causes PMAC to list the program lines that it 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. Examples:
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 174 Online Commands