Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

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].
• When you search TIME, DT, or TOD data, adjust the data so that the precision of Member, MN, and
MX is the same. Use the following instructions to adjust the precision of the values: TruncTime (page
2-651), TruncDt (page 2-655), and TruncTod (page 2-659).
Precautions for Correct Use
• Make the data types of Member, MN, and MX the same as the data type of the members that are
searched in In[]. Otherwise, a building error will occur.
• Use an array that is the element of a structure for In[]. Otherwise, a building error will occur.
• When an element in the array is passed to In[], all elements below the passed element are pro-
cessed.
• If Member is a real number, depending on the value of Member, the desired results may not be
achieved due to error.
• If MN or MX is a real number, do not specify nonnumeric data for MN or MX.
• If the value of Size is 0, the value of Out is FALSE and the value of Num is 0. InOutPos[] does not
change.
• The correct result is not obtained if the value of Mode is _BIN_ASC or _BIN_DESC and the elements
of In[] are not in ascending or descending order. Place the elements in ascending or descending
order before executing this instruction.
• An error occurs in the following cases. ENO will be FALSE, and Out, InOutPos[], and Num will not
change.
• MN is greater than MX.
• The value of Condition is outside of the valid range.
• The value of Mode is outside of the valid range.
• 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[].

NY-series Instructions Reference Manual (W560)

2 Instruction Descriptions
2
2-517

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents