Radians (RAD)
dest := RAD(source);
The RAD instruction converts the Source (in degrees) to radians and stores the
result in the Destination.
Operands:
Relay Ladder
Operand
Source
Destination
Structured Text
Use RAD as a function. This function converts source to radians and stores the
result in dest.
See
Structured Text Programming
within structured text.
Function Block
Operand
RAD tag
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Math Conversion Instructions (DEG, RAD, TOD, FRD, TRN, TRUNC)
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 radians
Tag to store the result
Format
Description
structure
RAD structure
Chapter 16
561