DEG_TO_RAD

PLCopen motion icon This function/function block was added in KAS v4.04

 Function - Converts a degree value to a radian value.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

IN

LREAL

No range

Degree

No default

Degree value.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

LREAL

No range

Radian

Radian value equivalent to the degree input.

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the operation is executed only if the input rung (EN) is TRUE. 
    • The output rung (ENO) keeps the same value as the input rung.

IL Language Example

Not available.

ST Language Example

num_radians := DEG_TO_RAD(num_degrees);

See Also

RAD_TO_DEG