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-319
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
MOVE
When moving an array, you can move either one element or all of the elements in the array. To move
only one element, add the subscript to the array variable name. To move the entire array, do not add
the subscript to the array variable name.
When moving a structure, you can move either one member or all of the members in the structure. To
move only one member, specify the member. To move the entire structure, give only the structure
name.
You can use the MemCopy instruction to move an entire array faster than with the MOVE instruction.
The data types of In and Out can be different as long as they are both in one of the following groups.
The valid range of Out must include the valid range of In.
Additional Information
Precautions for Correct Use
Moving All Array Elements
Moving One Array Element
def[5]:=abc[3];
LD ST
abc[3] def[5]
def:=abc;
LD ST
abc def
MOVE
EN ENO
In Out
MOVE
EN ENO
In Out
Moving the Entire Structure
Moving One Member of a Structure
def.n:=abc.m;
LD ST
abc.m
def.n
def:=abc;
LD ST
abc
def
MOVE
EN ENO
In Out
MOVE
EN ENO
In Out

Table of Contents

Related product manuals