Allen-Bradley Logix5000 Reference Manual page 557

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

If you want to
Convert radians to degrees
Convert degrees to radians
Convert an integer value to a BCD value
Convert a BCD value to an integer value
Remove the fractional part of a value
(1) Structured text only.
Math Conversion Instructions
(DEG, RAD, TOD, FRD, TRN, TRUNC)
Topic
Degrees (DEG)
Radians (RAD)
Convert to BCD (TOD)
Convert to Integer (FRD)
Truncate (TRN)
The math conversion instructions convert values.
Use this instruction
DEG
RAD
TOD
FRD
TRN
(1)
TRUNC
You can mix data types, but loss of accuracy and rounding error might occur and
the instruction takes more time to execute. Check the S:V bit to see whether the
result was truncated.
For relay ladder instructions, bold data types indicate optimal data types. An
instruction executes faster and requires less memory if all the operands of the
instruction use the same optimal data type, typically DINT or REAL.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Page
558
561
564
567
570
Available in these languages
Relay ladder
Structured text
Function block
Relay ladder
Structured text
Function block
Relay ladder
Function block
Relay ladder
Function block
Relay ladder
Structured text
Function block
16
Chapter
Page
558
561
564
567
570
557

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents