DEG_TO_RAD

DEG_TO_RAD 1:

Converts degrees to radiants.

FUNCTION DEG_TO_RAD : LREAL

VAR_INPUT
    ANGLE       : LREAL;
END_VAR

ANGLE:: Value to convert.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.7.0

PC or CX (x86)

Standard.Lib; PLCSystem.Lib; TcPLCAds.Lib; PLCHelper.Lib; TcPlcUtilities.Lib

TwinCAT v2.8.0

PC or CX (x86)

TcUtilities.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)