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.

552 Advanced Math <strong>Instructions</strong> (LN, LOG, XPY)X to the Power of Y (XPY)The XPY instruction takes Source A (X) to the power of Source B (Y)and stores the result in the Destination.Operands:Relay LadderOperand Type Format DescriptionSource X SINT immediate base valueINTtagDINTREALSource YSINTimmediateexponentINTtagDINTREALDestinationSINTtagtag to store the resultINTDINTREALStructured Textdest := sourceX ** sourceY;Use two, adjacent multiply signs “∗∗” as an operator within anexpression. This expression takes sourceX to the power of sourceYand stores the result in dest.See Appendix B for information on the syntax of expressions withinstructured text.Function BlockOperand Type Format DescriptionXPY tag FBD_MATH structure XPY structurePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!