Allen-Bradley Logix5000 Reference Manual page 358

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)
358
Example 7:
Each time the FAL instruction is enabled, it adds value_1 to the current value of
array_1 and stores the result in value_2. The FAL instruction uses incremental
mode, so only one array value is added to value_1 each time the instruction is
enabled. The next time the instruction is enabled, the instruction overwrites
value_2.
Example 8:
When enabled, the FAL instruction multiplies the current value of array_1 by the
current value of array_3 and stores the result in value_1. The FAL instruction
uses incremental mode, so only one pair of array values is multiplied each time the
instruction is enabled. The next time the instruction is enabled, the instruction
overwrites value_1.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Arithmetic Operation: (Element + Array) to Element
Expression:
value_1 + array_1[control_1.pos]
Arithmetic Operation: (Array ∗ Array) to Element
Expression:
array_1[control_1.pos] * array_3[control_1.pos]
Destination:
value_2
Destination:
value_1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents