185
DBKCMP
, DBKCMP
P
1
2
3
4
6
7
8
6.1
C
ompar
ison Operat
ion In
str
uctions
6.1.7
D
BKCMP
, DBKCMP
P
Function
(1) This instruction compares BIN 32-bit data stored in n-point devices starting from the device specified by with BIN 32-
bit data stored in n-point devices starting from the device specified by a constant and and then stores the result into
the nth device specified by and up.
(a) If the comparison condition has been met, the corresponding devices specified by will be turned on.
(b) If the comparison condition has not been met, the corresponding devices specified by will be turned off.
(2) The comparison operation is executed in 32-bit units.
(3) The constant in the device specified by can be between -2147483648 and 2147483647 (BIN 32-bit data).
(4)
specifies out of the device range of n-point devices starting from the device specified by and .
(5) The following table shows the results of the comparison operations for each individual instruction.
(6) If all comparison results stored into the devices starting from the device specified by to nth device are on(1), or one of
the results is off(2), the special relays will be on or off in accordance with the conditions as follows.
In a standby program, a special relay depending on the caller program turns on or off.
(7) If the value specified by n is 0, the instruction will be not processed.
Instruction
Symbols
Condition
Comparison
Operation Result
Instruction
Symbols
Condition
Comparison
Operation Result
DBKCMP=
=
ON (1)
DBKCMP=
OFF (0)
DBKCMP<>
DBKCMP<>
=
DBKCMP>
>
DBKCMP>
DBKCMP<=
DBKCMP<=
>
DBKCMP<
<
DBKCMP<
DBKCMP>=
DBKCMP>=
<
No.
Number
When all results of comparison operations are
on(1)
When results of comparison operations have a result
of off(0)
Initial
execution/
Scan
Interrupt (other
than l45)/Fixed
scan execution
Interrupt(l45)
Initial execution/
Scan
Interrupt (other
than l45)/Fixed
scan execution
Interrupt(l45)
1
SM704
ON
ON
ON
OFF
OFF
OFF
2
SM716
ON
––
––
OFF
––
––
3
SM717
––
ON
––
––
OFF
––
4
SM718
––
––
ON
––
––
OFF
S1
S2
D
D
D
(
0
)
OFF
(
0
)
(
1
)
OFF
ON
(
1
)
ON
+1
+2
n
b31
b0
(
BIN
)
(
BIN
)
(
BIN
)
1000
2000
5060
(
BIN
)
1106
+2
+4
Operation result
D
S2
+n 1
+n 2
+n 2
S2
S2
S2
D
D
D
n
(
BIN
)
(
BIN
)
(
BIN
)
1090
2080
5060
(
BIN
)
1106
b31
b0
+3
,
+5
,
S1
S2
S1
S1
S1
+n 1
,
S1
S1
S1
S1
+n 1
,
S2
+1
,
S2
S2
n
+2
+4
+3
,
+5
,
+1
,
S1
(
BIN
)
32800
S1
S1
(
0
)
(
1
)
OFF
(
0
)
OFF
ON
(
1
)
ON
+1
+2
n
b31
b0
(
BIN
)
(
BIN
)
(
BIN
)
(
BIN
)
32700
40000
32800
2147400
+2
+4
D
S2
+n 1
+n 2
S2
S2
S2
D
D
D
n
+3
,
+5
,
S2
+n 1
,
S2
+1
,
S2
S2
b31
b0
+1
,
Operation result
D
S1
S2
S2
S1
S1
S2
S1
S2
S2
S1
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
D