2 Instruction Descriptions
2-450
NJ-series Instructions Reference Manual (W502)
The following example is for when Num is USINT#3.
Use the Unite8Bit_** instruction (page 2-451) to join 1-byte units from array elements.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and AryOut[] will not change.
• The value of Num is outside of the valid range.
• The value of Num exceeds the number of bytes in In.
• AryOut[] is not a BYTE array.
• An array without a subscript is passed to AryOut[].
Additional Information
Precautions for Correct Use
Dispart8Bit(abc, USINT#3, def[1]);
LD ST
USINT#3
def[1] def[1]
abc
Dispart8Bit
EN ENO
In
Num
AryOut
Byte 0Byte 1Byte 2
Highest
byte
In=abc
Num=USINT#3
Num=USINT#3
AryOut[0]=def[1]
AryOut[1]=def[2]
AryOut[2]=def[3]
A0 23
06 21 AA 36
36
AA
21