PMAC Product Guide 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 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 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. Examples:
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 LIST PLC Function : List the contents of the specified PLC program Scope : Global Syntax : LIST PLC {constant} where {constant} is an integer from 0 to 31 representing the number of the PLC program. This command causes PMAC to report the contents of the specified 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 ). 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). Examples: LIST PLC 0 LIST PLC 5 Online Commands 175