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.

260 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)Multiply (MUL)The MUL instruction multiplies Source A with Source B and places theresult in the Destination.Operands:Relay LadderOperand Type Format DescriptionSource A SINT immediate value of the multiplicandINTtagDINTSource BREALA SINT or INT tag converts to a DINT value by sign-extension.SINT immediate value of the multiplierINTtagDINTDestinationREALA SINT or INT tag converts to a DINT value by sign-extension.SINT tag tag to store the resultINTDINTREALStructured Textdest := sourceA * sourceB;Use the multiply sign “∗” as an operator in an expression. Thisexpression multiplies sourceA by sourceB and stores the result in dest.See Appendix B for information on the syntax of expressions withinstructured text.Function BlockOperand Type Format DescriptionMUL tag FBD_MATH structure MUL structurePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!