Bin Block Data Comparisons (Bkcmp, Bkcmpp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.1.5 BIN block data comparisons (BKCMP, BKCMP P)
Internal Devices
Set
(System, User)
Data
Bit
Word
S1
S2
D
n
[Instruction Symbol] [Execution Condition]
BKCMP
BKCMP
P
[Set Data]
Set Data
S1
S2
D
n
[Functions]
(1) Compares BIN 16-bit data the nth point from the device number designated by
bit data the nth point from the device number designated by
device 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
OFF.
1234
S1
+1
5678
S1
+2
5000
S1
+(n-2)
7777
S1
4321
+(n-1)
S1
6 - 12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
BKCMP
Command
BKCMP
Data being compared, or first number of the device where the data being
compared is being stored
First number of the device where the comparison data is being stored
First number of the device where the results of the comparison
operation are being stored
Number of data blocks compared
onward.
D
(BIN)
S2
(BIN)
+1
S2
(BIN)
+2
S2
>
n
(BIN)
+(n-2)
S2
(BIN)
+(n-1)
S2
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs =, < >, >, <=, <, or >=
S1
S2
P
S1
S2
Meaning
S2
5321
(BIN)
D
3399
(BIN)
+1
D
5678
(BIN)
+2
D
n
6543
(BIN)
+(n-2)
D
1200
(BIN)
+(n-1)
D
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
D
n
D
n
Data Type
BIN 16 bits
BIN 16 bits
Bit
BIN 16 bits
with BIN 16-
S1
, and stores the result from the
will be turned ON.
D
will be turned
D
Operation Results
(0)
OFF
(1)
ON
(0)
OFF
n
(1)
ON
(1)
ON
6 - 12
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents