Delta AS Series Programming Manual page 315

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
6.
If the operand S
S 1
3333(BIN)
7.
The corresponding comparison operation results of the instructions are listed in the following table.
API number 16-bit instruction
0059
0060
0061
0062
0063
0064
Example
The data in D0–D3 are compared with that in D10–D13. If the comparison result is that the data in D0–D3 are the same
as that in D10–D13, Y0.1–Y0.4 are ON.
_6
D0
D1
D2
D3
Additional remarks
1.
If the value in the operand n is not between 1–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
ON, and the error code in SR0 is 16#2003.
6 - 3 6
is a constant between -32768 to 32767, the comparison is as shown below.
1
Compar iosn sign
=
S 2
S 2
Comparison operation result
CMPT=
S
CMPT<>
CMPT>
S
S
CMPT>=
CMPT<
S
S
CMPT<=
1000
Comparison sign
2000
=
3000
4000
–S
1
1111(B IN)
S 2
2222(BIN)
S 2
+1
3333(BIN)
S 2
+2
4444(BIN)
n
S 2
+3
8888(BIN)
+( N- 2)
9999(BIN)
+( N- 1)
ON
OFF
=S
≠S
S
1
2
1
2
≠S
=S
S
S
1
2
1
2
>S
≦S
S
1
2
1
2
<S
≧S
S
1
2
1
2
<S
≧S
S
1
2
1
2
>S
≦S
S
1
2
1
2
1000
D10
1000
D11
1000
D12
1000
D13
+n, S
–S
+n, or D is insufficient, the instruction is not executed, SM0 is
1
2
2
Compar ison result
0
D
0
D
+1
1
D
+2
0
D
+3
0
D
+( N- 2)
0
D
+( N- 1)
Comparison result
1
Y0.1
0
Y0.2
0
Y0.3
0
Y0.4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents