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.

272 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)Square Root (SQR)The SQR instruction computes the square root of the Source andplaces the result in the Destination.Operands:Relay LadderOperand Type Format DescriptionSource SINT immediate find the square root of this valueINTtagDINTDestinationREALA SINT or INT tag converts to a DINT value by sign-extension.SINT tag tag to store the resultINTDINTREALStructured Textdest := SQRT(source);Use SQRT as a function. This expression computes the square root ofsource and stores the result in dest.See Appendix B for information on the syntax of expressions withinstructured text.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!