EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-334
NJ-series Instructions Reference Manual (W502)
The following example is for when Size is UINT#2.
Use the MOVE instruction (page 2-318) to assign constants to variables.
Use the MemCopy instruction (page 2-327) to copy the values of variables to other variables.
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.
Additional Information
Precautions for Correct Use
AryExchange(abc[1], def[2], UINT#2);
LD ST
abc[1] abc[1]
def[2]
UINT#2
def[2]
AryExchange
EN ENO
InOut1
InOut2
Size
Exchanged
InOut1[0]=abc[1]
InOut1[1]=abc[2]
InOut2[0]=def[2]
InOut2[1]=def[3]
Size=UINT#2

Table of Contents

Related product manuals