Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Program Command Specification 467
Any letter may be READ except N or O, which are reserved for line labels (and should only be at the
beginning of a line anyway). If a letter value is read from the calling line, the normal function of the
letter (e.g. an axis move) is overridden, so that letter serves merely to pass a parameter to the subroutine.
If there are remaining letter values on the calling line that are not read, those will be executed according
to their normal function after the return from the subroutine.
Examples:
In standard machine tool code, a two-second DWELL would be commanded in the program as a G04
X2000, for instance. In Turbo PMAC, a G04 is interpreted as a CALL to label N04000 of PROG 1000,
so to implement this function properly, PROG 1000 would contain the following code:
N04000 READ(X)
DWELL (Q124)
RETURN
Also, in standard machine tool code, the value assigned to the current position of the axis may be changed
with the G92 code, followed by the letters and the new assigned values of any axes (e.g. G92 X20
Y30). It is important only to assign new values to axes specified in this particular G92 command, so the
Turbo PMAC subroutine implementing G92 with the PSET command must check to see if that particular
axis is specified:
N92000 READ(X,Y,Z)
IF (Q100 & $800000 > 0) PSET X(Q124)
IF (Q100 & $1000000 > 0) PSET Y(Q125)
IF (Q100 & $2000000 > 0) PSET Z(Q126)
RETURN
See Also:
Subroutines and Subprograms (Writing and Executing Motion Programs)
Program commands CALL, GOSUB, G, M, T, D
RESUME PLC
Function: Resume execution of PLC programss
Type: Motion program (PROG and ROT), PLC program
Syntax: RESUME PLC {constant}[,{constant}...]
RES PLC {constant}[,{constant}...]
RESUME PLC{constant}[..{constant}]
RES PLC {constant}[..{constant}]
where:
each {constant} is an integer from 0 to 31 representing the PLC number
This command causes Turbo PMAC to resume execution of the specified uncompiled PLC program or
programs at the point where execution was suspended with the PAUSE PLC command, which is not
necessarily at the top of the program.
The RESUME PLC command cannot be used to restart execution of a PLC program that has been stopped
with a DISABLE PLC command. However, after a PLC has been stopped with a DISABLE PLC
command, if a PAUSE PLC command is then given for that PLC, then a RESUME PLC command can
be given to start operation at the point at which it has been stopped.
PLC programs are specified by number, and may be used singularly in this command, in a list (separated
by commas), or in a range of consecutively numbered programs.
If no buffer is open when this command is sent to Turbo PMAC, it will be executed immediately as an
on-line command.