GE VersaMax PLC User Manual page 180

Table of Contents

Advertisement

Input/ Output
enable
SR
SNX
DNX
N
ok
DS
length
180
GFK-1503E
For public disclosure
10.8.1.1 Parameters for the Array Move Function
Choices
flow
When the function is enabled, the operation is
performed.
For all: R, AI, AQ
SR contains the starting address of the source
For INT, BIT, BYTE,
array. For ARRAY_MOVE_ BOOL, any reference
WORD: I, Q, M, T, G,
may be used; it does not need to be byte aligned.
For BIT, BYTE, WORD:
SA, SB, SC
I, Q, M, T, G, R, AI, AQ,
SNX contains the index of the source array.
constant
I, Q, M, T, G, R, AI, AQ,
DNX contains the index of the destination array.
constant
I, Q, M, T, G, R, AI, AQ,
N provides a count indicator.
constant
flow, none
OK is energized whenever enable is energized.
For all: SA, SB, SC, R,
The starting address of the destination array. For
AI, AQ
ARRAY_MOVE_ BOOL, any reference may be
For INT, BIT, BYTE,
used; it does not need to be byte aligned.
WORD: I, Q, M, T, G
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.)
%I0001
ARRAY
MOVE_
WORD
R
%R0001
%R0100
SNX
CONST
DNX
00005
CONST
N
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).
Description
DS
%R0100
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents