356 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 8 Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Example 1: When enabled, the FAL instruction copies each element of array_2 into the same
position within array_1.
Example 2: When enabled, the FAL instruction copies value_1 into the first 10 positions of
the second dimension of array_2.
Example 3: Each time the FAL instruction is enabled, it copies the current value of array_1 to
value_1. The FAL instruction uses incremental mode, so only one array value is
copied each time the instruction is enabled. The next time the instruction is
enabled, the instruction overwrites value_1 with the next value in array_1.
Array-to-Array Copy
Expression:
array_2[control_2.pos]
Destination:
array_1[control_2.pos]
Element-to-Array Copy
Expression:
value_1
Destination:
array_2[0,control_2.pos]
Array-to-Element Copy
Expression:
array_1[control_1.pos]
Destination:
value_1