Delta AH500 Programming Manual page 237

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
number
instruction
0059
CMPT=
0060
CMPT<>
0061
CMPT>
0062
CMPT>=
0063
CMPT<
0064
CMPT<=
Example:
The data in D0~D3 are compared with that in D10~D13. If the comparison result is that the data in
D0~D3 is the same as that in D10~D13, Y0.1~Y0.4 will be ON.
1000
D0
Comparison sign
D1
2000
3000
D2
4000
D3
Additional remark:
1.
If the value in the operand n is not within the range between 1 and 256, the instruction is not
executed, SM is ON, and the error code in SR0 is 16#200B.
2.
If the number of devices specified by S
not executed, SM0 is ON, and the error code in SR0 is 16#2003.
6 - 3 2
Comparison operation result
16-bit
ON
=S
S
1
2
≠S
S
1
2
>S
S
1
2
≧S
S
1
2
<S
S
1
2
≦S
S
1
2
D10
D11
=
D12
D13
~S
1
1
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
OFF
≠S
S
1
2
=S
S
1
2
≦S
S
1
2
<S
S
1
2
≧S
S
1
2
>S
S
1
2
1000
1000
1000
1000
+n, S
~S
+n, or D is insufficient, the instruction is
2
2
Comparison result
1
Y0.1
0
Y0.2
0
Y0.3
0
Y0.4

Advertisement

Table of Contents
loading

Table of Contents