I hope I am here at the right location. Anyway, today I've taken my first steps in programming CNC. I have an task for school to build a program in wich there also have to be milled a few ellipses.
The problem is... I can't figure out the right code. So I hope you can help me?
This is what i've made from it right now.
BEGIN PGM2005 ELLIPS
BLK FORM 0.1 Z X-100 Y-50 Z-2
BLK FORM 0.2 X+400 Y+50 Z0
TOOL DEF 10 L0 R2
FN0: Q20:+2
FN0: Q21:+0
FN0: Q22:+30
FN0: Q23:+50
TOOL CALL 10 Z S3000
L X+0 Y+0 Ro F5000 M06
LBL 1
FN6: Q24=SIN+Q21
FN7: Q25=COS+21
FN3: Q24=Q24*Q22
FN3: Q25=Q25*Q23
L XQ25 YQ24 RL F500 M03
L Z-2 RL F M
FN1: Q21=Q21+Q20
FN12: IF Q21 LT 360 GOTO LBL 1
L Z+100
L X0 Y0 Ro F5000
L Y100
STOP M02