Hey guys, I was told/volunteered to run an Fadal at our shop. All I know about running VMCs is what i read in the manual, and learned from building my own home brewed stepper mill. So please have mercy and don't laugh at me too hard.
Simple job drill some holes, 20 on X and 25 on Y, with .236" spacing between them. I can do it no problem when I program in absolute or incremental. Thing is programs tend to get long and I need to keep them in the control with very limited memory. I wanted to use macros but ran into some issues. My first hole gets drilled where I want, but all other rows are one hole short and shifted .236" on the X.
Can anyone tell me what am I doing wrong? I just need it to be all square,
Thanks in advance,
KOzOK
Heres the code,
G90 G80 G40 G0 Z0
M6 T4
S2000 M3 M8
G0 X0 Y0 E48
Z.1 H4
G81 X0 Y0 Z-0.025 R0.1 G98 F20.
R9+0.0 R8+0.0
#CLEAR
#:LOOP
#V1=V1+1
#R9=R9+.236
X+R9 Y+R8
#IF V1<=19 THEN GOTO :LOOP
#V1=0
#V2=V2+1
#R9=0
#R8=R8+.236
#IF V2<=24 THEN GOTO :LOOP