Mitsubishi MELSEC-Q/L Programming Manual page 187

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents