Conversion instructions
697
Part III FP Instructions
F337_RAD
Conversion of angle units (Degrees -> Radians)
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F337_RAD (see page 1324)
Variable Data type Function
s REAL source angle data (degrees), 2 words
d REAL destination for storing converted data
For Relay T/C Register Constant
s DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - DWY DWR DWL DSV DEV DDT DLD DFL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the value at input s is not a REAL
number.
R900B %MX0.900.11 to TRUE the result is 0.
R9009 %MX0.900.9 for an instant the result causes an overflow.
Description
The function converts the value of an angle entered at input s from degrees to radians and returns
the result at output d.
Data types
Operands
Error flags