2 Instruction Descriptions
2-498
NJ-series Instructions Reference Manual (W502)
The following example is for when EndDat is INT#9999.
In[] can be a member of a higher-level structure.
Example: In[0]=str0.str1[0]
• If there are no members in In[] that match EndDat, the total number of elements in In[] is assigned to
Out.
• If Member is a real number, depending on the value of Member, the desired results may not be
achieved due to error.
• If EndDat is a real number, do not specify nonnumeric data for it.
• When an element in the array is passed to In[], all elements below the passed element are pro-
cessed.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• Member is not a member of In[].
• Member or EndDat is STRING data and it does not end in a NULL character.
• Member is not Boolean, integer, bit string, real number, or text string data.
• Member and EndDat have different data types.
• In[] is not an array of structures.
Additional Information
Precautions for Correct Use
def:=RecNum(abc[0], abc[0].m, INT#9999);
LD ST
abc[0]
INT#9999
def
abc[0].m
RecNum
EN ENO
In
Member
EndDat
Member = abc[0].m
EndDat
Num = def
Member m
Matches EndDat.
0000
3456
0000
0000
2345
0000
0000
1234
0000
0000
9999
0000
0000
1234
0000
In[0]=abc[0]
In[1]=abc[1]
In[2]=abc[2]
In[3]=abc[3]
In[4]=abc[4]
INT#9999
UINT#3