Block 16-Bit Data Exchanges - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Block 16-bit data exchanges

BXCH(P)
High
Basic
Process
performance
BXCH
BXCHP
(D1), (D2) : Head number of the devices where the data to be exchanged is stored (BIN 16 bits)
n:
Number of exchanges (BIN 16 bits)
Setting
Internal device
data
Bit
(D1)
(D2)
n
Processing details
• Exchanges 16-bit data of n points from device designated by (D1) and 16-bit data of n points from device designated by
(D2).
b15
0
0
0
0
1
1
D1
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
D1
+1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
D1
+2
D1
+(n
2)
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D1
+(n
1)
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
b15
0
0
1
1
0
0
D1
+1
1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1
D1
+2
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
D1
D1
+(n
2)
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
D1
+(n
1)
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4101
The points specified in n exceed those of the corresponding device specified
in (D1) or (D2).
The (D1) and (D2) devices overlap.
6 BASIC INSTRUCTIONS
316
6.4 Data Transfer Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
b8
b7
b0
1 1
0 0 0 0 1 1 1 1
n
b8
b7
b0
1 1
0 0 1 1 0 0 1 1
n
BXCH
BXCHP
J\
Bit
Word
b15
b8
b7
D2
0
0
1
1
0
0
1 1
0 0 1 1 0 0 1 1
D2
+1
1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1
D2
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
+2
D2
+(n
2)
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
D2
+(n
1)
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
b15
b8
b7
D2
0
0
0
0
1
1
1 1
0 0 0 0 1 1 1 1
D2
+1
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
D2
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
+2
D2
+(n
2)
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D2
+(n
1)
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Q00J/
Q00/
Q01
n
D1
D2
n
D1
D2
U\G
Zn
Constant
K, H
b0
n
b0
n
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents