162
4
4 Instructions4.5.1 Data Conversion
UNI: 4-bit combination of 16-bit data
◆
Overview
The UNI instruction combines the lower four bits of each of consecutive 16-bit data entries together.
UNI
S D n
4-bit combination of
16-bit data
Applicable model:
H3U
S
Source
data
Start number of elements that store the data to be
combined
16-bit instruction
(7 steps)
UNI: Continuous
execution
UNIP: Pulse
execution
D Result
Number of the element that stores the data after
combination
n
Combined
data count
Number of data entries to be combined (value range: 0 to 4;
no processing when n = 0)
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The lower four bits of each of n 16-bit data entries from head address S are combined. The 16-bit data after
combination is stored in D.
n ranges from 1 to 4. The instruction is not executed when n = 0. When n is in the range 1 to 3, the
remaining higher bits are lled with 0s.
xxxH
Lower four bits
xxxH
Lower four bits
儈ᆇ㢲 վᆇ㢲
xxxH
Lower four bits
儈ᆇ㢲 վᆇ㢲
xxxH
[ S+0 ]
b0 b4 b3b8 b7b12 b11
b0b4 b3
[ D ]
[ S+1 ]
[ S+2 ]
[ S+3 ]
b15
b15
Lower four bits
An operation error occurs in the following conditions. The error ag M8067 is set to ON to identify this error
and the error code is stored in D8067.
1. Error K6705 is returned when the start number S is out of range.
2. Error K6706 is returned when the value of n is out of range.