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

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

Advertisement

2 Instruction Descriptions
LD
abc[0]
UINT#5
abc[0].m
def[0]
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].
• When you search TIME, DT, or TOD data, adjust the data so that the precision of Member 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
• 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.
2-528
RecMax
EN
ENO
In
ghi
Size
Num
jkl
Member
InOutPos
def[0]
Member=abc[0].m
0000
1234
Member m
0000
0000
2345
0000
0000
3456
0000
0000
1234
0000
0000
3456
0000
ST
ghi:=RecMax(abc[0], UINT#5, abc[0].m, def[0], jkl);
INT#3456
Out = ghi
UINT#2
Num = jkl
UINT#2
InOutPos[0] =
def[0]

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents