DEG_TO_RAD
This function/function block was added in KAS v4.04
Function - Converts a degree value to a radian value.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
IN |
LREAL |
No range |
Degree |
No default |
Degree value. |
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Q |
LREAL |
No range |
Radian |
Radian value equivalent to the degree input. |
Remarks
None
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







