362 10 Programming: Q Parameters
10.4 Trigonometric Functions
Programming trigonometric functions
Press the TRIGONOMETRY soft key to call the trigonometric
functions. The TNC then displays the soft keys that are listed in the
table below.
Programming: Compare “Example: Programming fundamental
operations.”
Function Soft key
FN6: SINE
Example: FN6: Q20 = SIN–Q5
Calculate the sine of an angle in degrees (°) and
assign it to a parameter.
FN7: COSINE
Example: FN7: Q21 = COS–Q5
Calculate the cosine of an angle in degrees (°) and
assign it to a parameter.
FN8: ROOT SUM OF SQUARES
Example: FN8: Q10 = +5 LEN +4
Calculate and assign length from two values.
FN13: ANGLE
Example: FN13: Q20 = +25 ANG–Q1
Calculate the angle from the arc tangent of two sides
or from the sine and cosine of the angle (0 < angle <
360°) and assign it to a parameter.