Connecting 4 Bits To 16-Bit Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Connecting 4 bits to 16-bit data

UNI(P)
These instructions link the lower-order 4 bits of the 16-bit binary data of the (n) number of devices starting from the one
specified by (s) to the device storing 16-bit binary data specified by (d).
Ladder diagram
(s)
(d)
(n)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device for storing the data to be linked
(d)
Head device for storing the linked data
(n)
Number of links
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s)
(d)
(n)
Processing details
• These instructions link the lower-order 4 bits of the 16-bit binary data of the (n) number of devices starting from the one
specified by (s) to the device storing 16-bit binary data specified by (d).
b15
···
b4
b3
···
b0
(s)
(s)+1
(s)+2
(s)+3
Ignored
Merged data
• The higher-order (4-n) nibble bits of the device specified by (d) becomes 0.
• When (n) is 0, no processing is performed, and the contents of the device specified by (d) do not change.
Operation error
Error code
Description
(SD0/SD8067)
2820
The range of (n) number of points from (d) exceed the corresponding device range.
3401
(n) is other than 0 to 4.
Structured text
ENO:=UNI(EN,s,n,d);
ENO:=UNIP(EN,s,n,d);
Range
1 to 4
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
b15 b12
b11
b8
b7
···
···
···
(d)
Data type
16-bit signed binary
16-bit signed binary
16-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
b4
b3
b0
···
6.5 Data Conversion Instructions
Data type (label)
ANY16
ANY16
ANY16
Constant
Others
K, H
E
$
6 BASIC INSTRUCTIONS
287
6

Advertisement

Table of Contents
loading

Table of Contents