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 - 7 6
API
Instruction code
Operand
Function
110
D
ECMP
P
S
1
, S
2
, D
Comparing binary
floating-point numbers
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
1
S
2
D
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
–
E xp la nat io n
The instruction is used to compare the binary floating-point value in
S
1
with that in
S
2
. The comparison result is stored in
D
.
S
1
: Binary floating-point number 1;
S
2
: Binary floating-point number 2;
D
:
Comparison result (D occupies three consecutive devices.)
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.
F represents a floating-point number. There is a decimal point in a
floating-point number.
E xa mple
When X0.0 is ON, the instruction DECMP is executed, and M10, M11, or
M12 is ON. When X0.0 is OFF, the execution of the instruction DECMP
stops, and the states of M10, M11, and M12 remain unchanged
.
If the operand
D
is M10, M10, M11, and M12 will be occupied
automatically.
If users want to get the result that the value in (D1, D0)
≧
the value in
(D101, D100), they have to connect M10 and M11 in series. If users
want to get the result that the value in (D1, D0)
≦
the value in (D101,
D100), they have to connect M11 and M12 in series. If users want to get
the result that the value in (D1, D0)
≠
the value in (D101, D100), they
have to connect M10, M11, and M12 in series.
If users want to reset M10, M11, or M12, they can use the instruction
RST or ZRST.
X0.0
D ECMP
D 0
D 100
M10
M10
M11
M12
If the value in ( D1, D0)> the value in (D 101, D 100) , M10 will be O N.
If the value in ( D1, D0)= the value in (D 101, D 100) , M11 will be O N.
If the value in ( D1, D0) <the value i n (D 101, D 100) , M12 w ill be O N.
A dditio nal
re mark
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
Содержание AH500
Страница 9: ...viii...
Страница 52: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Panasonic CN5 series servo drive 2 31...
Страница 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Страница 54: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Mitsubishi MJR2 series servo drive 2 33...
Страница 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Страница 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Страница 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Страница 376: ...Chapter 6 Data Transmission Table of Contents 6 1 Functions 6 2 6 2 Parameters 6 2 6 3 Usage 6 5 6 1...
Страница 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Страница 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Страница 436: ...Chapter 8 Electronic Cam 8 17...
Страница 482: ...Chapter 10 High speed Counters and High speed Timers 3 The cyclic mode is used to measure a frequency 10 7...
Страница 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Страница 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Страница 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Страница 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...
Страница 547: ...AH500 Motion Control Module Manual A 4 MEMO...