Array Move - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
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.
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
Length (??)
The length of each memory block (source and
destination); the number of elements in each memory
block. 1  Length  32,767.
SR
The starting address of the source memory block.
(must be the
Note:
same data type
as DS)
SNX
The index of the source memory block
DNX
The index of the destination memory block
N
Count indicator
DS
The starting address of the destination memory block.
(must be the
Note:
same data type
as SR)
174
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
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.
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.
Mnemonics:
ARRAY_MOVE_BOOL
ARRAY_MOVE_BYTE
ARRAY_MOVE_DINT
ARRAY_MOVE_DWORD
ARRAY_MOVE_INT
ARRAY_MOVE_UINT
ARRAY_MOVE_WORD
Allowed Operands
Optional
Constant
No
All except constants.
No
%S - %SC allowed only
for BYTE, WORD,
DWORD types.
All except variables in
No
%S - %SC.
All except variables in
No
%S - %SC.
All except variables in
No
%S - %SC
All, except S and
No
constants. %SA - %SC
allowed only for BYTE,
WORD, DWORD types
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents