The following example shows the AryLRC_WORD instruction when Size is UINT#5.
LD
AryLRC_WORD
EN
abc[4]
In
UINT#5
Size
In[0]=abc[4]
In[1]=abc[5]
In[2]=abc[6]
Size = UINT#5
In[3]=abc[7]
In[4]=abc[8]
Precautions for Correct Use
• Use the same data type for In[] and Out.
• If the value of Size is 0, the value of Out is 16#00.
• An error occurs in the following case. ENO will be FALSE, and Out will not change.
• The value of Size exceeds the array area of In[].
• An array without a subscript is passed to In[].
• In[] is not an array of bit strings.
NJ-series Instructions Reference Manual (W502)
ST
def:=AryLRC_WORD(abc[4], UINT#5);
ENO
def
16#1234
Exclusive logical OR
16#2345
16#3456
16#4567
16#5678
2 Instruction Descriptions
16#1638
Out = def
2
2-513