I recently was asked to create a variable program for are old fadal vmc4020.
It has an 88hs fadal control and is using format2.
In the program the operator has to set a couple variable such as the size of the stock and finish size needed.
The stock is a plate that is mounted to an indexer and the tools move to fixed position and mill the plate diameter to the disired diameter as the plate rotates.
The plates are very large and otherwise wouldnt be able to be machined on the this machine.
I haven't dealt with this machine in atleast 10 years and have written a number of variable programs for this machine back then with no problems.
The problem I have now is I am getting an illegal address alarm when the operator starts up the program.
Any help would be appreciated on what could be the problem with the syntext or format that could be causing the program to fail. Im sure its a simple issue that I just am not seeing.
%
O1000(vAR 0D MAIN)
(T8 7DEG TAPER)
(T9 750 RGH ENDMILL)
(T7 DOVETAIL CHMF TOOL)
()
L100(VARIABLE ROUTINE)
(THESE ARE THE VARIABLES YOU WILL CHANGE)
(FOR DIF SIZE dia plates)
(INSERT VALUES FOR V1,V2 IN **DIA VALUES**)
#V1=0(ENTER **DIA** OF COVER BLANK)
#V2=0(ENTER FIN **DIA** OF COVER)
()
()
()
(VARIABLE CONSTANTS)
(ONCE THESE VALUES ARE SET CORRECTLY)
(DO NOT CHANGE THEM WHEN RUNNING DIF DIA COVERS)
#V2=V2/2
#V3=.375(RAD OF .75 EM)
#V4=.375(PROGRAM RAD OF 7DG EM)
#V5=.375(PROGRAM RAD OF CHAMF TOOL)
#V6=.500(ST PT CLEARANCE OFF PART 7DG TOOL)
#V7=.500(ST PT CLEARANCE OFF PART CHMF TOOL)
#V8=.0553(7DG TOOL ADJ AT .45 DPTH INCR)
()
()
(***PROGRAM CALCULATIONS DO NOT CHANGE****)
()
(RGH OD CALCS)
#R1=V2+V3 (X OD FIN SIZE PLUNGE ST POINT)
()
(7DG CALCS)
#R2=V2+V4+V6(START PT 7DG TOOL W/ V6 CLEAR)
#R3=V3+V4 (1ST FIN X FEED TO PT 7DG TOOL )
#R4=V3+V4-V8 (2ND FIN X)
#R5=V3+V4-V8-V8 (3RD FIN X)
()
(CHMF CALCS)
#R6=V2+V5+V7(START PT CHMF TOOL W/ V7 CLEAR)
#R7=V2+V5 (FIN X FEED TO PT CHMF TOOL )
()
()
M17
M30
(MAIN)
G0G17G40G49G69G80G90
L101 (READ VARIABLES)
T9M6 (ROUGH OD CYCLE)
S1125M3
E1G0X+R1Y0
Z1.0H9
G1Z.5F25.
Z-1.25F10.
M66(START INDEXER ROTATION)
G0Z1.0
G80M5M9
G0Z10.0
M01
(7DG ANGLE)
T8M6
S875M3
G0X+R2Y0 (RAP TO X CLEAR PT)
Z1.0H8
Z-.45
G1X+R3F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
Z-.9
G1X+R4F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
Z-1.35
G1X+R5F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
G0Z1.0
G80M5M9
G0Z10.0
M01
(BOTTOM CHAMFER)
T7M6
S1000M3
G0X+R6Y0 (RAP TO CLEAR PT)
G0Z1.0H7
Z-1.14 (DEPTH ADJ IF NEEDED)
G1X+R7F8.0 (FEED IN TO PT)
M66(START INDEXER ROTATION)
G0X+R6 (RAPID OUT PT)
G0Z1.0
G80M5M9
G0Z10.0
X0.0Y0.0
M6T9
M0
G53Y9.90
M30
%
thanks
Caddisfly