Array File-Misc Instructions

The file/miscellaneous instructions operate on arrays of data.
Available Instructions
Ladder Diagram
NOTE:
Function Block
Not available
Structured Text
If you want to:
Use this instruction:
Perform arithmetic, logic, shift, and function operations on values in arrays
FAL
Search for and compare values in arrays
FSC
Copy the contents of one array into another array
COP
Copy the value(s) in the Source to the Destination
CPS
Fill an array with specific data
FLL
Calculate the average of an array of values
AVE
Sort one dimension of array data into ascending order
SRT
Calculate the standard deviation of an array of values
STD
Find the size of a dimension of an array
SIZE
You can mix data types, but loss of accuracy and rounding error might occur and the instruction takes more time to execute. Check the S:V bit to see whether the result was truncated.
The
bold
data types indicate optimal data types. An instruction executes faster and requires less memory if all the operands of the instruction use the same optimal data type, typically DINT or REAL.
Selecting Mode of Operation
For FAL and FSC instructions, the mode tells the controller how to distribute the array operation.
If you want to:
Select this mode:
operate on all of the specified elements in an array before continuing on to the next instruction
All Mode
distribute array operation over a number of scans
enter the number of elements to operate on per scan (1-2147483647)
Numerical Mode
manipulate one element of the array each time the rung-condition-in goes from false to true
Incremental Mode
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.