A H 5 0 0 M o t i o n C o n t r o l M o d u l e M a n u a l
5 - 2 8
API
Instruction code
Operand
Function
11
D
ZCP
P
S
1
, S
2
, S, D
Zonal comparison
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
1
S
2
S
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction (12 steps)
E xp la nat io n
The instruction is used to compare the value in
S
with that in
S
1
, and
compare the value in
S
with that in
S
2
. The comparison result is stored in
D
.
S
1
: Minimum value;
S
2
: Maximum value;
S
: Comparison value;
D
:
Comparison result
The value in
S
2
must be greater than that in
S
1
.
The
operand
D
occupies three consecutive devices.
E xa mple
When X0.0 is ON, the instruction ZCP is executed, and M0, M1, or M2 is
ON. When X0.0 is OFF, the execution of the instruction ZCP stops, and
the states of M0, M1, and M2 remain unchanged
.
If the operand
D
is M0, M0, M1, and M2 will be occupied automatically.
X0.0
ZC P
K1 0
K1 00
C 10
M0
M1
M2
If K1 0
M0 wi ll b e O N.
>th e va lu e in C1 0 ,
If K1 0< th e val ue in C 1 0<K1 00 , M1 w il l be ON .
If th e va lu e i n C 10 K10 0, M2 wi ll b e O N.
>
M0
=
=
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...