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.

248 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)If You Want To Use This Instruction Available In These Languages See Pagecalculate the square root of a valueSQRrelay ladder272SQRT (3)structured textfunction blocktake the opposite sign of a value NEG relay ladder276structured text (2)function blocktake the absolute value of a value ABS relay ladder279structured textfunction block(1)There is no equivalent structured text instruction. Use other structured text programming to achieve the same result. See the description for the instruction.(2) There is no equivalent structured text instruction. Use the operator in an expression.(3) Structured text only.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.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!