Chapter 4. Ladder Diagram (LD) Programming
174
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
4.9.1
Array Move
When the Array Move function receives power flow, it
copies a specified number of elements from a source
memory block to a destination memory block. Starting
at the indexed location (SR+SNX-1) of the input
memory block, it copies N elements to the output
memory block, starting at the indexed location
(DS+DNX-1) of the output memory block.
Mnemonics:
ARRAY_MOVE_BOOL
ARRAY_MOVE_BYTE
ARRAY_MOVE_DINT
ARRAY_MOVE_DWORD
ARRAY_MOVE_INT
ARRAY_MOVE_UINT
ARRAY_MOVE_WORD
Note:
For ARRAY_MOVE_BOOL, when 16-bit registers are selected for the operands of the source
memory block and/or destination memory block starting address, the least significant bit of
the specified 16-bit register is the first bit of the memory block. The value displayed contains
16 bits, regardless of the length of the memory block.
The indices in an Array Move instruction are 1-based. In using an Array Move, no element outside
either the source or destination memory blocks (as specified by their starting address and length)
may be referenced.
The function passes power flow unless one of the following conditions occurs:
▪
It receives no power flow.
▪
(N + SNX - 1) is greater than Length.
▪
(N + DNX - 1) is greater than Length.
Note:
For each mnemonic, use the corresponding data type for the SR and DS operands. For
example, ARRAY_MOVE_BYTE requires SR and DS to be BYTE variables.
Operands for Array Move
Parameter
Description
Allowed Operands
Optional
Length (??)
The length of each memory block (source and
destination); the number of elements in each memory
block. 1
Length
32,767.
Constant
No
SR
(must be the
same data type
as DS)
The starting address of the source memory block.
Note:
For an Array Move with the data type BOOL, any
reference may be used; it does not need to be
byte-aligned. Sixteen bits, beginning with the
reference address specified, are displayed online.
All except constants.
%S - %SC allowed only
for BYTE, WORD,
DWORD types.
No
SNX
The index of the source memory block
All except variables in
%S - %SC.
No
DNX
The index of the destination memory block
All except variables in
%S - %SC.
No
N
Count indicator
All except variables in
%S - %SC
No
DS
(must be the
same data type
as SR)
The starting address of the destination memory block.
Note:
For an Array Move with the data type BOOL, any
reference may be used; it does not need to be
byte-aligned. Sixteen bits, beginning with the
reference address specified, are displayed online.
All, except S and
constants. %SA - %SC
allowed only for BYTE,
WORD, DWORD types
No
Summary of Contents for PACSystems RX7i
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451...