C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
5 - 7 7
API
Instruction code
Operand
Function
111
D
EZCP
P
S
1
, S
2
, S, D
Binary floating-point
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 32-bit instruction (12 steps)
–
E xp la nat io n
S
1
: Minimum binary floating-point value;
S
2
: Maximum binary
floating-point value;
S
: Binary floating-point value;
D
: Comparison result
(D occupies three consecutive devices.)
The instruction is used to compare the binary floating-point value in
S
with that in
S
1
, and compare the binary floating-point value in
S
with that
in
S
2
. The comparison result is stored in
D
.
If
S
1
is a floating-point number, the instruction will be used to compare
the floating-point number with the binary floating-point value in
S
2
. If
S
2
is
a floating-point number, the instruction will be used to compare the
binary floating-point value in
S
1
with the floating-point number.
If the binary floating-point value in
S
1
is greater than that in
S
2
, the binary
floating-point value in
S
1
will be taken as the maximum/minimum value
during the execution of the instruction EZCP.
E xa mple
When X0.0 is ON, the instruction DEZCP is executed, and M0, M1, or
M2 is ON. When X0.0 is OFF, the execution of the instruction DEZCP
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.
If users want to reset M0, M1, or M2, they can use the instruction RST or
ZRST.
X0.0
DEZCP
D0
D10
D20
M0
M1
M2
If the value in ( D1, D0) >the value in (D 21, D20) , M0 will be O N.
If the value in ( D1, D0) <the value in (D 21, D20) < the value in (D11, D 10),
M1 w ill be O N .
If the value in ( D21, D20) >the v alue in (D 11, D 10), M2 wi ll be ON .
M0
A dditio nal
re m ark
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
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...