Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

In[0]=abc[0]
In[1]=abc[1]
In[2]=abc[2]
Size=UINT#5
In[3]=abc[3]
In[4]=abc[4]
Additional Information
• In[] can be a member of a higher-level structure.
Example: In[0]=str0.str1[0]
• In[] can be an array with two or more dimensions. If In[] is a two-dimensional array, the element num-
ber in the first dimension of the element that matches the search conditions is assigned to InOut-
Pos[0] and the element number in the second dimension is assigned to InOutPos[1].
• If In[] is a three-dimensional array, the element number in the first dimension of the element that
matches the search conditions is assigned to InOutPos[0], the element number in the second dimen-
sion is assigned to InOutPos[1], and the element number in the third dimension is assigned to InOut-
Pos[2].
Precautions for Correct Use
• If you use a different data type for Member and Out, use only the following data types and make sure
the valid range of Out includes the valid range of Member.
• USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT, REAL, and LREAL
• If Member is a real number, depending on the value of Member, the desired results may not be
achieved due to error.
• When an element in the array is passed to In[], all elements below the passed element are pro-
cessed.
• If the value of Size is 0, the values of Out and Num are 0. The values in InOutPos[] do not change.
• An error occurs in the following cases. ENO will be FALSE, and Out, InOutPos[], and Num will not
change.
• The value of Size exceeds the array area of In[].
• Member is not a member of In[].
• The array size of InOutPos[] is smaller than the number of dimensions of In[].
• An array without a subscript is passed to In[].
• Member is not integer or real number data.

NJ-series Instructions Reference Manual (W502)

Member=abc[0].m
0000
1234
Member m
0000
0000
2345
0000
0000
Out = ghi
3456
0000
0000
1234
0000
0000
3456
Num = jkl
0000
InOutPos[0] = def
2 Instruction Descriptions
INT#3456
UINT#2
UINT#2
2
2-501

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents