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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) 251Valid operatorsOperator Description Optimal+ add DINT, REAL- subtract/negate DINT, REAL* multiply DINT, REAL/ divide 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 REALDEG radians to degrees DINT, REALFRD BCD to integer DINTLN natural log REALOperator Description OptimalLOG 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 Format:Examples:Operate On:one 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!