10.8.1.1
Parameters for the Array Move Function
Input/ Output
Choices
Description
enable
flow
When the function is enabled, the operation is
performed.
SR
For all: R, AI, AQ
For INT, BIT, BYTE,
WORD: I, Q, M, T, G,
For BIT, BYTE, WORD:
SA, SB, SC
SR contains the starting address of the source
array. For ARRAY_MOVE_ BOOL, any reference
may be used; it does not need to be byte aligned.
SNX
I, Q, M, T, G, R, AI, AQ,
constant
SNX contains the index of the source array.
DNX
I, Q, M, T, G, R, AI, AQ,
constant
DNX contains the index of the destination array.
N
I, Q, M, T, G, R, AI, AQ,
constant
N provides a count indicator.
ok
flow, none
OK is energized whenever enable is energized.
DS
For all: SA, SB, SC, R,
AI, AQ
For INT, BIT, BYTE,
WORD: I, Q, M, T, G
The starting address of the destination array. For
ARRAY_MOVE_ BOOL, any reference may be
used; it does not need to be byte aligned.
length
The number of elements starting at SR and DS
that make up each array. It is defined as the
length of SR+DS.
10.8.1.2
Example 1:
In this example, if %R100=3 then %R0003 - %R0007 of the array %R0001 - %R0016 is
read and is written into %R0104 - %R0108 of the array %R0100 - %R0115. (%R001 and
%R0100 are declared as type WORD of length 16.)
%R0100
%I0001
%R0001
%R0100
CONST
00005
ARRAY
MOVE_
WORD
R
N
SNX
DNX
DS
CONST
00005
10.8.1.3
Example 2:
Using bit memory for SR and DS, %M0011 - %M0017 of the array %M0009 - %M0024
is read and then written to %Q0026 - %Q0032 of the array %Q0022 - %Q0037. (%M009
and %Q0022 are declared as type BOOL of length 16).
180
GFK-1503E
VersaMax PLC User Manual
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......