RAD_TO_DEG

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

 Function - Converts a radian value to a degree value.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

IN

LREAL

No range

Radian

No default

Radian value.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

LREAL

No range

Degree

Degree value equivalent to the radian 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_degrees := RAD_TO_DEG(num_radians);

See Also

DEG_TO_RAD