Chapter 5 Positioning Instructions   
5 - 89 
 
5.3.19 Present Position Preset Function Block   
 
•This instruction (APM_PRS) changes present position. 
 
(1) Present Position Preset Instruction (APM_PRS) 
 
Form  Variable  Data Type  Description 
PRS_ADDR 
DINT 
Preset Value 
● Setting range: -2,147,483,648 ~ 2,147,483,647 
 
(a) Function   
•This instruction provides position change reference to the XGB internal positioning. 
•At the rising edge of the input condition, the present position of the axis designated to be AXIS is 
changed to the position set up at the PRS_ADDR in the instruction line. 
•At this time, if the Origin has not been defined, the Origin determination status (X-axis: %KX6724, 
Y-axis: %KX6884) becomes ON. 
•It the axis has been in operation when this instruction is given, error code 451 is outputted to STAT 
and the instruction is not executed. 
 
(2) Sample Instruction 
 
(a) Sample Program 
 
 
(b) Program Operation 
• At the rising edge of the ‘preset’ signal, the position of the positioning X-axis is changed to 0 set up 
in the instruction and the reference determination state bit is ON.