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.

258 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)FBD_MATH StructureInput Parameter: Data Type: Description:EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.SourceA REAL Value from which to subtract SourceB.Valid = any floatSourceB REAL Value to subtract from SourceA.Valid = any floatOutput Parameter: Data Type: Description:EnableOut BOOL The instruction produced a valid result.Dest REAL Result of the math instruction. Arithmetic status flags are set for this output.Description:Arithmetic Status Flags:Fault Conditions:The SUB instruction subtracts Source B from Source A and places theresult in the Destination.Arithmetic status flags are affected.noneExecution:Relay LadderCondition:prescanrung-condition-in is falserung-condition-in is truepostscanAction:The rung-condition-out is set to false.The rung-condition-out is set to false.Destination = Source B - Source AThe rung-condition-out is set to true.The rung-condition-out is set to false.Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!