480
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
Combining data in units of 4 bits
UNI(P)
These instructions store the lower 4 bits of the (n) points of 16-bit binary data in another 16-bit device.
■Execution condition
■Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Ladder ST
ENO:=UNI(EN,s,n,d);
ENO:=UNIP(EN,s,n,d);
FBD/LD
Instruction Execution condition
UNI
UNIP
Operand Description Range Data type Data type (label)
(s) Start device where the combination target data is stored 16-bit signed binary ANY16
*1
(d) Device for storing the combined data 16-bit signed binary ANY16
(n) Number of combination units 1 to 4 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
(n)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)