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.

264 Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)Function BlockOperand Type Format DescriptionDIV tag FBD_MATH structure DIV structureFBD_MATH StructureInput Parameter Data Type DescriptionEnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.Source A REAL Value of the dividend.Valid = any floatSource B REAL Value of the divisor.Valid = any floatOutput Parameter Data Type DescriptionEnableOut BOOL The instruction produced a valid result.Dest REAL Result of the math instruction. Arithmetic status flags are set for this output.Description:If the Destination is not a REAL, the instruction handles the fractionalportion of the result as follows:If Source AThen The FractionalPortion Of The ResultExampleand Source B are not truncates Source A DINT 5REALsSource B DINT 3Destination DINT 1or Source B is a REAL rounds Source A REAL 5.0Source B DINT 3Destination DINT 2Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!