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.

Chapter 9Array (File)/Misc. <strong>Instructions</strong>(FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)IntroductionThe file/miscellaneous instructions operate on arrays of data.If You Want To Use This Instruction Available In These Languages See Pageperform arithmetic, logic, shift, and functionoperations on values in arraysFALrelay ladderstructured text (1) 337search for and compare values in arrays FSC relay ladder 349copy the contents of one array intoanother arrayCOPrelay ladder358structured textcopy the contents of one array intoanother array without interruptionCPSrelay ladderstructured textfill an array with specific data FLL relay ladder364structured text (1)calculate the average of an array of values AVE relay ladder368structured text (1)sort one dimension of array data intoascending ordercalculate the standard deviation of an arrayof valuesSRTrelay ladderstructured textfind the size of a dimension of an array SIZE relay ladderSTD358373relay ladder378structured text (1)structured text384(1)There is no equivalent structured text instruction. Use other structured text programming to achieve the same result. See the description for the instruction.You can mix data types, but loss of accuracy and rounding errormight occur and the instruction takes more time to execute. Check theS:V bit to see whether the result was truncated.For relay ladder instructions, bold data types indicate optimal datatypes. An instruction executes faster and requires less memory if allthe operands of the instruction use the same optimal data type,typically DINT or REAL.331 Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!