Allen-Bradley Logix5000 Reference Manual page 356

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 8
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
356
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.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Array-to-Array Copy
Expression:
Destination:
array_2[control_2.pos]
array_1[control_2.pos]
Element-to-Array Copy
Expression:
value_1
Array-to-Element Copy
Expression:
array_1[control_1.pos]
Destination:
array_2[0,control_2.pos]
Destination:
value_1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents