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.

Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) 355Valid OperatorsOperator Description Optimal+ add DINT, REAL- subtract/negate DINT, REAL* multiply DINT, REAL/ divide DINT, REAL= equal DINT, REAL< less than DINT, REAL greater than DINT, REAL>= greater than or equal DINT, REAL not equal DINT, REAL** exponent (x to y) DINT, REALABS absolute value DINT, REALACS arc cosine REALAND bitwise AND DINTASN arc sine REALATN arc tangent REALCOS cosine REALOperator Description OptimalDEG radians to degrees DINT, REALFRD BCD to integer DINTLN natural log REALLOG log base 10 REALMOD modulo-divide DINT, REALNOT bitwise complement DINTOR bitwise OR DINTRAD degrees to radians DINT, REALSIN sine REALSQR square root DINT, REALTAN tangent REALTOD integer to BCD DINTTRN truncate DINT, REALXOR bitwise exclusive OR DINTFormat ExpressionsFor each operator that you use in an expression, you have to provideone or two operands (tags or immediate values). Use the followingtable to format operators and operands within an expression:For Operators That Use This FormatExamplesOperate Onone operand operator(operand) ABS(tag_a)two operands operand_a operator operand_b • tag_b + 5• tag_c AND tag_d• (tag_e ** 2) MOD (tag_f /tag_g)Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!