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.

Compare <strong>Instructions</strong> (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ) 209CMP expressionsYou program expressions in CMP instructions the same as expressionsin FSC instructions. Use the following sections for information on validoperators, format, and order of operation, which are common toboth instructions.Valid 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 DINTPublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!