
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
Description
Setting range
Data size
sl
Slot No. of positioning module
XGB is fixed at 0
WORD
ax
Axis to give instruction
0 (axis X) or 1 (axis Y)
WORD
n1
Current position value to
change
-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
t
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
PRS
sl
-
-
-
-
-
-
-
-
-
○
-
-
-
-
4~7
○
-
-
ax
○
-
○
-
-
-
○
-
-
○
-
-
○
-
n1
○
-
○
-
-
-
○
-
-
○
-
-
○
-
PRS
COMMAND
PRS
sl
ax
n1
Summary of Contents for XBC-DN20S
Page 210: ...Chapter 7 Program Examples of Positioning 7 6 2 XEC ...
Page 215: ...Chapter 7 Program Examples of Positioning 7 11 2 XEC ...
Page 220: ...Chapter 7 Program Examples of Positioning 7 16 2 XEC ...
Page 225: ...Chapter 7 Program Examples of Positioning 7 21 2 XEC ...
Page 232: ...Chapter 7 Program Examples of Positioning 7 28 2 XEC ...
Page 237: ...Chapter 7 Program Examples of Positioning 7 33 2 XEC ...
Page 240: ...Chapter 7 Program Examples of Positioning 7 36 ...
Page 309: ...Appendix 4 Dimension App 4 4 XBC DN64H XEC DN64H XEC DP64H XBC DR64H XEC DR64H ...
Page 311: ...Appendix 4 Dimension App 4 6 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Page 312: ...Appendix 4 Dimension App 4 7 5 Communication module XBL C41 21A XBL EMTA ...
Page 313: ...Appendix 4 Dimension App 4 8 5 Special module XBF AD04A XBF DV04A ...