Arithmetic & Trig
Do trigonometry in Klartext and know the control works in degrees.
Klartext applies a function to whatever follows it — COS Q4, no brackets needed — and trig is in degrees. COS 30 is 0.866, not the radian answer a calculator would give.
Your turn
The machine hands you a radius in Q1 and an angle in degrees in Q2. Compute the point on the circle at that angle: Q10 = the X distance, Q11 = the Y distance.
The machine gives you
40 mm radius at 30°:
Q1 = 40Q2 = 3025 mm radius at 60°:
Q1 = 25Q2 = 60Your program is run once for each set of conditions. It has to work for all of them.
Loading...
This is a learning simulation — always prove out a program on the actual control before you cut metal.