Degrees (Deg); Relay Ladder; Structured Text; Function Block - Allen-Bradley Logix5000 Reference Manual

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents