2-327
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
MemCopy
MemCopy
The MemCopy instruction moves one or more array elements. The move source and move destination
must have the same data type.
* If you omit the input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
MemCopy Memory Copy FUN MemCopy(In, AryOut, Size);
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Move
source
array
Input
Move source array
Depends on data type.
---
*
Size Number of
elements
Number of array elements to
move
1
AryOut[]
(array)
Move
destination
array
In-out Move destination 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)
Must be an array with the same data type as In[].
Out OK
(@)MemCopy
EN ENO
In Out
AryOut
Size