Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 386
This command causes Turbo PMAC to stop execution of the specified uncompiled PLC program or
programs, with the capability to restart execution at this point (not necessarily at the top) with a RESUME
PLC command. Execution can also be restarted at the top of the program with the ENABLE PLC
command.
The on-line PAUSE PLC command can only suspend execution of a PLC program at the end of a scan,
which is either the end of the program, or at an ENDWHILE statement in the program.
PLC programs are specified by number, and may be specified in a command singularly, in a list
(separated by commas), or in a range of consecutively numbered programs.
If a motion or PLC program buffer is open when this command is sent to Turbo PMAC, the command
will be entered into that buffer for later execution.
Example:
PAUSE PLC 1
PAU PLC 5
PAU PLC 3,4,7
PAUSE PLC 0..31
See Also:
I-variable I5
On-line commands DISABLE PLC, ENABLE PLC, OPEN PLC, RESUME PLC, LIST PLC,
<CONTROL-D>.
Program commands DISABLE PLC, ENABLE PLC, PAUSE PLC, RESUME PLC
PC
Function: Report Program Counter
Scope: Coordinate-system specific
Syntax: PC
This command causes Turbo PMAC to report the motion program number and address offset of the line
in that program that it will next calculate (in the addressed coordinate system). It will also report the
program number and address offset of any lines it must RETURN to if it is inside a GOSUB or CALL jump
(up to 15 deep).
The number reported after the colon is not a line number; as an address offset, it is the number of words
of memory from the top of the program. The LIST PROGRAM command, when used with comma
delimiters, shows the program or section of the program with address offsets for each line. The LIST
PC command can show lines of the program with address offsets from the point of calculation.
Because Turbo PMAC calculates ahead in a continuous sequence of moves, the PC (Program Calculation)
command will in general return a program line further down in the program than 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:
PC
P1:0 ; Ready to execute at the top of PROG 1
PC
P76:22 ; Ready to execute at 22nd word of PROG 76
LIST PC
P76:22:X10Y20 ; Program line at 22nd word of PROG 76
PC
P1001:35>P3.12 ; Execution will return to PROG 3, address 12
See Also:
On-line commands B{constant}, LIST, LIST PC, LIST PE, LIST PROGRAM, PE