2-335
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
AryMove
AryMove
The AryMove instruction moves one or more array elements. The data types of the move source and
move destination can be different.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The AryMove instruction moves Size elements of move source array In[] starting from In[0] to move
result array AryOut[] starting from AryOut[0]. The data types of In[] and AryOut[] can be different.
Instruction Name FB/FUN Graphic expression ST expression
AryMove Array Move FUN AryMove(In, AryOut, Size);
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Move
source
array
Input
Array to move
Depends on data type.
---
*
Size Number of
elements
Number of elements to
move
1
AryOut[]
(array)
Move result
array
In-out Move result array Depends on data type. --- ---
Out Return
value
Output Always TRUE TRUE only --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In[] (array)
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Arrays of enumerations or structures can also be specified.
Size OK
AryOut[]
(array)
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Arrays of enumerations or structures can also be specified.
Out OK
Function
(@)AryMove
EN ENO
In Out
AryOut
Size