Chapter 5 Positioning Instructions
5 - 41
5.2.18 Current Position Preset Instruction
• The current position preset instruction (PRS instruction) is for changing the current position by force.
(1) Current Position Preset Instruction (PRS)
[Area Setting]
Operand
-2,147,483,648 ~ 2,147,483,647 DINT
[Flag Set]
Flag Description Device number
Error If the value of ax gets out of the range F110
(a) Function
• This instruction is giving the instruction of changing the current position to XGB built-in positioning.
• The current position of the axis designated as ax at the rising edge of the input condition is
changed to the position set in n1 of the instruction by force.
• If the origin is not fixed, the origin fixed status (axis X:K4202, axis Y:K4304) turns On and the
origin is fixed.
• If the current position preset instruction is executed, and if the axis is currently operating, error
code 451 is issued and the instruction is not executed.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
(2) Example of Use of the Instruction
(a) Example of the Program
(b) Operation of the Program
• If there is the rising edge of M0001 used as the current position preset, the current position of the
positioning axis X changes into 0, which has been set in the instruction, and the origin determining
bit turns On.
Instruction
Areas available
Step
Flag
PMK F L T C S Z D.x R.x
con
stan