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.

Chapter 7Compute/Math <strong>Instructions</strong>(CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)IntroductionThe compute/math instructions evaluate arithmetic operations usingan expression or a specific arithmetic instruction.If You Want To Use This Instruction Available In These Languages See Pageevaluate an expression CPT relay ladder249structured text (1)add two values ADD relay ladderstructured text (2)253function blocksubtract two values SUB relay ladder257structured text (2)function blockmultiply two values MUL relay ladder260structured text (2)function blockdivide two values DIV relay ladder263structured text (2)function blockdetermine the remainder after one value isdivided by anotherMODrelay ladderstructured text (2)268function block247 Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!