EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - BIN 16-Bit Block Data Comparisons

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
199
6
BIN 16-bit block data comparisons
BKCMP(P)
Processing details
Compares BIN 16-bit data the nth point from the device number designated by (S1) with BIN 16-bit data the nth point from
the device number designated by (S2), and stores the result from the device designated by (D) onward.
The comparison operation is conducted in 16-bit units.
The constant designated by (S1) can be between -32768 and 32767 (BIN 16-bit data).
(S1): Data to be compared or head number of the devices where the data to be compared is stored (BIN 16 bits)
(S2): Head number of the devices where the comparison data is stored (BIN 16 bits)
(D): Head number of the devices where the comparison operation result will be stored (bits)
n: Number of comparison data blocks (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)  
(S2)  
(D)  
n 
If the comparison condition has been met, the device designated by (D) will be turned on.
If the comparison condition has not been met, the device designated by (D) will be turned OFF.
Basic
Process
High
performance
Redundant
Universal
LCPU
BKCMP
BKCMP
Command
BKCMPP
n
D
S1
S2
Command
BKCMP
n
D
S1
S2
P
/////
indicates an instruction symbol of .
(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
(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

Table of Contents

Related product manuals