Table Functions - GE VersaMax PLC User Manual

Table of Contents

Advertisement

10.8 Table Functions

Instruction Set Reference
For public disclosure
The Table functions are used to:
Copy array data: ARRAY MOVE
Search for values in an array
The maximum length allowed for these functions is 32,767 for any type.
Data Types for the Table Functions
Table functions operate on these types of data:
Signed integer
INT
Double precision signed integer
DINT
BOOL †
Bit data type
Byte data type
BYTE
Word data type
WORD
† Applies to Array Move only
10.8.1 Table Functions Array Move
The Array Move function copies a specified number of elements from a source array to a
destination array. When the function receives power flow, it copies the number of
elements specified from the input array, starting at the indexed location. The function then
writes the copied elements to the output array starting with the indexed location.
For bit data, when word-oriented memory is selected for the parameters of the source
array and/or destination array starting address, the least significant bit of the specified
word is the first bit of the array.
The indices in an Array Move instruction are 1-based. In using an Array Move, no
element outside either the source or destination arrays (as specified by their starting
address and length) may be referenced.
The OK output receives power flow unless one of the following occurs:
Enable is OFF
(N + SNX – 1) is greater than (length)
(N + DNX – 1) is greater than (length)
ARRAY
Enable
MOVE_
BOOL
Source array address
DS
SR
Source array index
SNX
DNX
Destination array index
N
(elements to transfer)
OK
Destination array address
GFK-1503E User Manual 179

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents