Bkcmp , Bkcmpp; Bin 16-Bit Block Data Comparisons - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents