10.8
Table Functions
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:
INT
Signed integer
DINT
Double precision signed integer
BOOL †
Bit data type
BYTE
Byte data type
WORD
Word data type
† 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)
Source array address
OK
Enable ARRAY
MOVE_
BOOL
SR
Source array index
SNX
Destination array index
DNX
Destination array address
DS
(elements to transfer)
N
Instruction Set Reference
GFK-1503E User Manual 179
For public disclosure
Содержание VersaMax PLC
Страница 1: ...GE Intelligent Platforms GFK 1503E VersaMax PLC User Manual September 2015 For public disclosure ...
Страница 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Страница 317: ......
Страница 318: ...GE Intelligent Platforms 1 800 433 2682 1 434 978 5100 www ge ip com GFK 1503E For public disclosure ...