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.

Compute/Math <strong>Instructions</strong> (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) 273Function BlockOperand Type Format DescriptionSQR tag FBD_MATH_ADVANCED structure SQR structureFBD_MATH_ADVANCED StructureInput Parameter Data Type DescriptionEnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.Default is set.Source REAL Find the square root of this value.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 The Source Is Then The Fractional ExamplePortion Of The Resultnot a REAL truncates Source DINT 3Destination DINT 1a REAL rounds Source REAL 3.0Destination DINT 2If the Source is negative, the instruction takes the absolute value ofthe Source before calculating the square root.Arithmetic Status Flags:Fault Conditions:Arithmetic status flags are affected.nonePublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!