12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

344 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)Example 1:When enabled, the FAL instruction copies each element of array_2into the same position within array_1.array-to-array copyExpression:Destination:Example 2: When enabled, the FAL instruction copies value_1 into the first 10positions of the second dimension of array_2.element-to-array copyExpression:Destination:Example 3:Each time the FAL instruction is enabled, it copies the current value ofarray_1 to value_1. The FAL instruction uses incremental mode, soonly one array value is copied each time the instruction is enabled.The next time the instruction is enabled, the instruction overwritesvalue_1 with the next value in array_1.array-to-element copyExpression:Destination:Example 4:When enabled, the FAL instruction adds value_1 and value_2 andstores the result in the current position of array_1.arithmetic operation: (element + element) to arrayExpression:Destination:Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!