Reference Manual
PMAC 2 Software Reference 
PMAC Program Command Specification  339 
Example 
PRELUDE1 CALL10    ; Insert a CALL10 before subsequent moves 
X10 Y20  ; Implicit CALL10 before this move 
X20 Y30  ; Implicit CALL10 before this move 
... 
OPEN PROG 10 CLEAR  ; Subprogram 
Z-1  ; Move down 
DWELL 500  ; Hold position 
Z1  ; Move up 
RETURN 
... 
G71 X7 Y15 P5    ; G71 calls PROG 1000 N71000 
X8 Y16 P5      ; With PRELUDE, G71 is implied (modal) 
X9 Y15 P8      ; With PRELUDE, G71 is implied (modal) 
G70        ; Stop modal canned cycles 
... 
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 a Motion Program) 
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. 
Remarks 
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. 










