Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Program Command Specification 462
...
OPEN PROG 1000
...
N70000 ; G70 subroutine
PRELUDE0 ; Stop PRELUDE calls
RETURN
N71000 ; G71 subroutine
PRELUDE1 G71.1 ; Make G71 modal by using PRELUDE
RETURN
N71100 ; G71.1 routine is what executes G71 modally
READ(X,Y,P) ; Read values associated with X, Y, and P
{action based on parameters}
RETURN
See Also:
Subroutines and Subprograms (Writing and Executing Motion Programs)
Program commands CALL, GOSUB, READ, G, M, T, D
PSET
Function: Redefine current axis positions (Position SET)
Type: Motion program
Syntax: PSET{axis}{data} [{axis}{data}...]
where:
{axis} is the character specifying which axis (X, Y, Z, A, B, C, U, V, W);
{data} is a constant or an expression representing the new value for this axis position
This command allows the user to re-define the value of an axis position in the middle of the program. It
is equivalent to the RS-274 G-Code G92. No move is made on any axis as a result of this command the
value of the present commanded position for the axis is merely set to the specified value.
Internally, this command changes the value of the position bias register for each motor attached to an axis
named in the command. This register holds the difference between the axis zero point and the motor zero
(home) point.
This command automatically forces a temporary pause in the motion of the axes; no moves are blended
through a PSET command. For more powerful and flexible offsets that can be done on the fly (X, Y, and
Z axes only), refer to the matrix manipulation commands such as ADIS and IDIS.
Examples:
X10Y20
PSET X0 Y0 ; Call this position (0,0)
N92000 READ(X,Y,Z) ; To implement G92 in PROG 1000
PSET X(Q124)Y(Q125)Z(Q126) ; Equivalent of G92 X..Y..Z..
See Also:
Axes (Setting Up a Coordinate System)
On-line command {axis}={expression}
Program commands ADIS, AROT, IDIS, IROT
Suggested M-variable definitions Mxx64