Function - Sets the unit for angles in all trigonometric functions.
IN :
BOOL If
TRUE, turn all trigonometric functions to use
degrees
If FALSE, turn all trigonometric
functions to use radians (default)
Q : BOOL TRUE if functions use degrees before the call
This function sets the working unit for the following functions:
SIN COS TAN ASIN ACOS ATAN ATAN2 |
sine cosine tangent arc-sine arc-cosine arc-tangent arc-tangent of Y / X |
Q := UseDegrees (IN);
(* Input is the rung. The rung
is the output *)
Op1: LD IN
UseDegrees
ST Q