2 Instruction Descriptions
2-448
NJ-series Instructions Reference Manual (W502)
The following example shows the UniteDigit_WORD instruction when Num is USINT#3.
Use the DispartDigit instruction (page 2-445) to separate a bit string into 4-bit units.
• If the value of Num is 0, the value of Out is 0.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• The value of Num is outside of the valid range.
• The value of Num exceeds the array area of In[].
• In[] is not a BYTE array.
• An array without a subscript is passed to In[].
Additional Information
Precautions for Correct Use
def:=UniteDigit_WORD(abc[1], USINT#3);
LD ST
USINT#3
def
abc[1]
UniteDigit_WORD
EN ENO
In
Num
Digit 0Digit 1Digit 2
Highest
digit
Bits
0 to 3
Bits
4 to 7
Out=def
Num=USINT#3
16#0
Num=USINT#3
0 2 A 6
6
1
In[0]=abc[1]
A
0
In[1]=abc[2]
2
4
In[2]=abc[3]
5
In[3]=abc[4]
B