4-Bit Linking Of 16-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

Operation Error
(1) 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
code
4100
The value of n is other than 0 to 4.
The range n-points from
4101
device.
Program Example
(1) The following program dissociates the 16-bit data from D0 into 4-bit groups, and stores from D10 to D13 when X0 is ON.
[Ladder Mode]
[Operation]
b15
b12 b11
b8
b7
b4 b3
D0
1 1 0 0 1 0 0 1 0 1 0 1 0 0 0 1
7.5.7
UNI, UNIP

4-bit linking of 16-bit data

7.5.7
UNI, UNIP
UNI
UNIP
: Head number of the devices where data to be linked is stored (BIN 16 bits)
S
: Head number of the devices where the linked data will be stored (BIN 16 bits)
D
n
: Number of links (1 to 4), 0: No processing (BIN 16 bits)
Setting
Internal Devices
Data
Bit
––
S
D
n
Error details
exceeds the range of the corresponding
D
[List Mode]
Step
b0
b15
D10
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
D11
D12
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
D13
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
Filled with 0s.
Command
Command
R, ZR
Word
Bit
Q00J/
Q00/
QnH
Q01
Instruction
Device
b4
b3
b2
b1
b0
Storage area
High
Basic
performance
S
UNI
S
UNIP
J
\
U
\G
Word
––
UNI, UNIP
QnPH QnPRH
QnU
LCPU
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
––
––
1
2
3
4
4
6
7
8
363

Advertisement

Table of Contents
loading

Table of Contents