Chapter 16
Math Conversion Instructions (DEG, RAD, TOD, FRD, TRN, TRUNC)
Degrees (DEG)
dest := DEG(source);
558
The DEG instruction converts the Source (in radians) to degrees and stores the
result in the Destination.
Operands:
Relay Ladder
Operand
Source
Destination
Structured Text
Use DEG as a function. This function converts source to degrees and stores the
result in dest.
See
Structured Text Programming
within structured text.
Function Block
Operand
DEG tag
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate
INT
Tag
DINT
REAL
SINT
Tag
INT
DINT
REAL
for information on the syntax of expressions
Type
FBD_MATH_ADVANCED
Description
Value to convert to degrees
Tag to store the result
Format
Description
Structure
DEG structure