182
BKCMP
, BKCMP
P
:
Data to be compared or head number of the devices where the data to be compared is stored (BIN 16 bits)
:
Head number of the devices where the comparison data is stored (BIN 16 bits)
:
Head number of the devices where the comparison operation result will be stored (bits)
n
:
Number of comparison data blocks (BIN 16 bits)
Function
(1) Compares BIN 16-bit data the nth point from the device number designated by with BIN 16-bit data the nth point from
the device number designated by , and stores the result from the device designated by onward.
(a) If the comparison condition has been met, the device designated by will be turned ON.
(b) If the comparison condition has not been met, the device designated by will be turned OFF.
(2) The comparison operation is conducted in 16-bit units.
(3) The constant designated by can be between -32768 and 32767 (BIN 16-bit data).
(4) The results of the comparison operations for the individual instructions are as follows:
(5) If all comparison results stored n points from are ON (1), SM704 (block comparison signal) goes ON.
BKCMPooo, BKCMPoooPBIN 16-bit block data comparisons
6.1.6
BKCMP
, BKCMP
P
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
––
––
n
––
Instruction
Symbols
Condition
Comparison
Operation Result
Instruction
Symbols
Condition
Comparison
Operation Result
BKCMP=
=
ON (1)
BKCMP=
OFF (0)
BKCMP<>
BKCMP<>
=
BKCMP>
>
BKCMP>
BKCMP<=
BKCMP<=
>
BKCMP<
<
BKCMP<
BKCMP>=
BKCMP>=
<
Basic
Process
High
performance
Redundant Universal
LCPU
BKCMP
BKCMP
Command
BKCMP
P
n
D
S1
S2
Command
BKCMP
n
D
S1
S2
P
/
/
/
/
/
indicates an instruction s
y
mbol of .
S1
S2
D
S1
S2
D
S1
S2
D
D
D
(
0
)
(
1
)
(
0
)
O
FF
O
N
O
FF
(
1
)
O
N
(
1
)
O
N
n
(
B
IN)
(
B
IN)
(
B
IN)
123
4
5678
5000
(
B
IN)
7777
(
B
IN)
4
321
n
(
B
IN)
(
B
IN)
(
B
IN)
5321
3399
5678
(
B
IN)
65
4
3
(
B
IN)
1200
n
Operat
i
on
Resu
l
ts
D
S1
S2
S1
S1
S1
S1
S2
S2
S2
S2
D
D
D
D
(
n
2
)
(
n
1
)
(
n
2
)
(
n
1
)
(
n
2
)
(
n
1
)
1
2
1
2
1
2
S1
(
1
)
(
0
)
(
1
)
O
N
O
FF
O
N
(
0
)
O
FF
(
0
)
O
FF
n
(
B
IN)
(
B
IN)
(
B
IN)
32000
4
321
32000
(
B
IN)
123
4
(
B
IN)
5678
n
Operat
i
on
Resu
l
ts
(
B
IN)
32000
D
D
D
D
D
S2
S2
S2
S2
S2
S1
1
2
(
n
2
)
(
n
1
)
(
n
2
)
(
n
1
)
1
2
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