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
The following example is for when Size is UINT#2.
LD
abc[1]
def[2]
UINT#2
InOut1[0]=abc[1]
Size=UINT#2
InOut1[1]=abc[2]
Additional Information
• Use the MOVE instruction (page 2-354) to assign constants to variables.
• Use the MemCopy instruction (page 2-363) to copy the values of variables to other variables.
Precautions for Correct Use
• Use the same data type for the elements of InOut1[] and InOut2[]. If they are different, a building error
will occur.
• If the value of Size is 0, the value of Out will be TRUE and InOut1[] and InOut2[] will not change.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and InOut1[] and InOut2[] will not change.
• The value of Size exceeds the array range of InOut1[] or InOut2[].
• InOut1[] and InOut2[] are STRING arrays and there is an element with a text string that exceeds
the size of the element in the other array.
• InOut1[] and InOut2[] are STRING arrays and there is an element that does not end in a NULL
character.
2-370
AryExchange
EN
ENO
InOut1
abc[1]
InOut2
def[2]
Size
Exchanged
ST
AryExchange(abc[1], def[2], UINT#2);
InOut2[0]=def[2]
InOut2[1]=def[3]

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents