Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Register Log in

modifying FIL file

the_real_jat

New member
wasup


I have a question. I am trying to modify the FIL file for my HAAS machine. I have been able to add the safe start and stop. My G-code somehow doesn't write commands for spindle stop and coolant stop before changing to next tool. Can anyone help me on this. Here is what i have in the loadtool section


$$ ****************************************************


$$ * L O A D T L S e c t i o n s *


$$ ****************************************************


CIMFIL/ON,LOADTL


DMY=POSTF(20) $$ save current CL record


INSERT/'G91G28Z0.G49$'


$$SEQNO/ON MODIFIEDDDDDDDDDDDDDDD remove $$ signs


DMY=POSTF(21) $$ restore saved record


$$ Add offset number if not programmed


NBEL=POSTF(5) $$ Number of word


IF (NBEL.EQ.4) THEN


$$ Only the tool number has been programmed


$$ Add ADJUST, Offset number=tool


DMY=POSTF(9,5,(ICODEF(ADJUST)))


DMY=POSTF(10,6,(POSTF(7,4)))


$$ Increase number of word


DMY=POSTF(12,6)


ENDIF


$$ Process record


DMY=POSTF(13)


SEQNO/OFF


CIMFIL/OFF





thanks


~JAT
 

ctarmijo

New member
Good Afternoon,


The first thing I would check is to see if your *.ncl file has the commands to turn off coolant (COOLANT / OFF) and spindle off (SPINDL / OFF). If not these are settings in Pro/NC that you need to turn on in either the sequence, operation, or machine definition (not sure which one! Not using pro now
).


If they are in the *.ncl file then ensure that they are active in the post to get active. This can be set outside of the FIL file. Let me know! Good luck.


Christopher
 

marker4x4

New member
the_real_jat said:
I have a question. I am trying to modify the FIL file for my HAAS
machine. I have been able to add the safe start and stop.
My G-code somehow doesn't write commands for spindle stop and coolant
stop before changing to next tool. Can anyone help me on
this.

~JAT


I wonder why would you like to have spindle stop? Haas will do it automatically upon seeing M06 (toolchange code)

As far as the coolant stop, I just turn COOLANT/ON in the sequence
param. window and add COOLANT/OFF manually in the Customize window
after the actual cut.



MAybe it's not 100% automatic procedure, but I dread writing FIL macros....
 

pronc

New member
How about insert this


INSERT/'M5M9$'


before this


INSERT/'G91G28Z0.G49$'


This is not the best way though.
 

Sponsor

Top