
Chapter 5 Positioning Instructions
5
-
57
(b) Used Devices
Device
Description
Data Size
Exemplary Setting
Reference
Decision
X-axis reference return
instruction signal
BOOL
-
Direct
Start
X-axis direct start-up
instruction signal
BOOL
-
%KX6720 X-axis in-operation signal
BOOL
-
%KX6721 X-axis error state
BOOL
-
ADDR
Target position
DINT
100,000
SPEED
Target velocity
UDINT
30,000
DWELL
Dwell time
DINT
100
MCODE
M code No.
UINT
123
POS_SPD
Position/velocity control
selection
BOOL
0
ABS_INC
Absolute/Incremental
coordinates selection
BOOL
0
TIME_SEL Acce/dec. time numbering
BOOL
0
(d) Program Operation
•APM_DST instruction is executed when the rising edge of the direct start-up used as the X-
axis direct start-up instruction signal is generated. However, if X-axis is in operation or
error state, the instruction is not executed.
•If reference has not been defined at the start of DST, error code 224 is outputted to STAT_1 and
the instruction is not executed.
In such case, turn on the ‘reference determination’ signal ON and perform reference return with
APM_ORG instruction before starting-up the APM_DST instruction.
1) When the direct start-up instruction (APM_DST instruction) is executed, positioning operation is
started as set up in the operand as shown below.
- Because the BASE, SLOT and AXIS are 0, the built-in positioning X-axis of the
base unit is started.
- The target position is the 100,000 pulse set up in ADDR as DINT.
- The target velocity is 30,000 pps set up in SPEED as UDINT.
- After the positioning, the dwell time is 100ms set up in the DWEELL, and as for M code, the
123 stored in the MCODE is stored in the %KW428.
- Because POS_SPD and ABS_INC are 0, positioning control operation is based on absolute
coordinates. Since TIME_SEL is 0, the acceleration/deceleration pattern follows 1 which is
the acceleration time in the basic parameters.
In particular, when the APM_DST instruction is started, positioning is controlled in absolute
coordinates, operated at 30,000 pps up to 100,000 pulse position and stopped, and
positioning is completed after 100ms of dwell time and the M code outputs 123.
2) When the position has been determined by direct start-up, the position determination completion
signal (X-axis: %KX6722) turns on for one scan.
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 ...