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.

522 Trigonometric <strong>Instructions</strong> (SIN, COS, TAN, ASN, ASIN, ACS, ACOS, ATN, ATAN)You can mix data types, but loss of accuracy and rounding errormight occur and the instruction takes more time to execute. Check theoverflow status bit (S:V) 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.Sine (SIN)The SIN instruction takes the sine of the Source value (in radians) andstores the result in the Destination.Operands:Relay LadderOperand Type Format DescriptionSource SINT immediate find the sine of this valueINTtagDINTREALDestinationSINTtagtag to store the resultINTDINTREALStructured Textdest := SIN(source);Use SIN as a function. This function computes the sine of source andstores 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!