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.

Chapter 17Math Conversion <strong>Instructions</strong>(DEG, RAD, TOD, FRD, TRN, TRUNC)IntroductionThe math conversion instructions convert values.If You Want To Use This Instruction Available In These Languages See PageConvert radians to degrees. DEG relay ladder556structured textfunction blockConvert degrees to radians. RAD relay ladder559structured textfunction blockConvert an integer value to a BCD value. TOD relay ladderfunction blockConvert a BCD value to an integer value. FRD relay ladder562565function blockRemove the fractional part of a valueTRNrelay ladder567TRUNC (1)structured textfunction block(1) Structured text only.You can mix data types, but loss of accuracy and rounding errormight occur and the instruction takes more time to execute. Check theS:V bit to see whether the result was truncated.For relay ladder instructions, bold data types indicate optimal datatypes. An instruction executes faster and requires less memory if allthe operands of the instruction use the same optimal data type,typically DINT or REAL.555 Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!