2 Instruction Descriptions
2-330
NJ-series Instructions Reference Manual (W502)
The following example is for when Size is UINT#3.
• Use the same data type for In and AryOut[]. If they are different, a building error will occur.
• If In and AryOut[] are STRING data, their sizes must be the same.
• If the value of Size is 0, the value of Out will be TRUE and AryOut[] will not change.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following case. ENO will be FALSE, and AryOut[] will not change.
• The value of Size exceeds the array area of AryOut[].
Precautions for Correct Use
SetBlock(abc, def[1], UINT#3);
LD ST
abc
def[1]
def[1]
UINT#3
SetBlock
EN ENO
In
AryOut
Size
In=abc
Size=UINT#3
1234
AryOut[0]=def[1]
AryOut[1]=def[2]
AryOut[2]=def[3]
1234
1234
1234