Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
6-15
BKCMP …,BKCMP … P
1
2
3
4
4
6
7
8
6
.1 Compar
ison Operation Instru
ctions
6
.1.6 BIN block data 
compar
isons (BKCMP 
…
 ,BKCMP 
…
 P)
6.1.6  
BIN block data comparisons (BKCMP …
 
,BKCMP … P)
BKCMP …,BKCMP … P
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).
:
 
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)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
––
––
n
––
Basic
Process
High
performance
Redundant Universal
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
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)
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
S1
1
2
(n    2)
(n    1)
(n    2)
(n    1)
1
2