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.
6.1.6 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 symbol of .
S1
S2
D
S1
S2
D
S1
S2
D
D
D
(0)
(1)
(0)
OFF
ON
OFF
(1)
ON
(1)
ON
n
(BIN)
(BIN)
(BIN)
1234
5678
5000
(BIN)
7777
(BIN)4321
n
(BIN)
(BIN)
(BIN)
5321
3399
5678
(BIN)6543
(BIN)1200
n
Operation Results
D
S1
S2
S
1
S
1
S
1
S
1
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)
ON
OFF
ON
(0)OFF
(0)OFF
n
(BIN)
(BIN)
(BIN)
32000
4321
32000
(BIN)1234
(BIN)5678
n
Operation Results
(BIN)
32000
D
D
D
D
D
S2
S2
S2
S2
S2
S
1
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