Want to change Haas POST to turn off flood coolant before retract and tool chang

Want to change Haas POST to turn off flood coolant before retract and tool chang

GilmaxCNC
Participant Participant
2,200 Views
7 Replies
Message 1 of 8

Want to change Haas POST to turn off flood coolant before retract and tool chang

GilmaxCNC
Participant
Participant

Hi,

 

I am playing with Fusion 360 and I am finding two things that don't make sense to me with the generic Haas post. The first thing that makes no sense is, the flood turns off after fully retracting and prepping for a tool change. This is a problem because it takes time for the coolant to stop pumping out and your tool holders get covered in coolant during the tool change and end up sticking in the spindle and causing a violent pop. This problem could be solved if the Coolant shuts off before retracting giving it enough time to drain the lines and using the forces generated during retract to help drain the line as well. Number 2 thing that does not make sense to me is the spindle waits to completely stop before retracting. It would save time if the spindle began stopping and immediately retracted and then the machine waits for full stop before tool change. This way the spindle is slowing down on the way up to full retract and less time is wasted. 

 

Can anyone set me in the right direction for modifying my post to do this?

2,201 Views
7 Replies
Replies (7)
Message 2 of 8

randyT9V9C
Collaborator
Collaborator

Turning off the coolant ahead of the spindle stop involves adding setCoolant(COOLANT_OFF); above line 896 in the generic haas post (haas.cps).

    // stop spindle before retract during tool change
    if (insertToolCall && !isFirstSection() && !toolChecked) {
      setCoolant(COOLANT_OFF);
      onCommand(COMMAND_STOP_SPINDLE);
    }

This changes the end of the operation to this:

N120 M9
N125 M5
N130 G53 G0 Z0.

 

I do not know why it would wait for the spindle to stop prior to retract. Do you have a code example or order that works?

Message 3 of 8

GilmaxCNC
Participant
Participant

Thanks for the reply. I will try that.

 

Here is an example of my post before making your reccomended changes. The placement of the M9 seems odd. I have seen a Haas demo machine running a program from F360 and it was doing the same thing as my machine.

 

%
O01001
(Using high feed G1 F500. instead of G0.)
(T8 D=0.116 CR=0. TAPER=118deg - ZMIN=-0.3937 - drill)
(T10 D=0.1572 CR=0. - ZMIN=-0.1378 - reamer)
N10 G90 G94 G17
N15 G20
N20 G53 G0 Z0.

(Drill5 2)
N30 T8 M6
N35 S6000 M3
N40 G54
N45 M8
N60 G0 X0.1575 Y-0.6102
N65 G43 Z0.64 H8
N70 T10
N80 G0 Z0.24
N85 G98 G83 X0.1575 Y-0.6102 Z-0.3937 R0.2 Q0.06 F17.
N90 Y-0.2165
N95 X1.6535 Y-0.374
N100 G80
N105 G0 Z0.64
N110 M5
N115 G53 G0 Z0.

(ream)
N125 M9
N130 M1
N135 T10 M6
N140 S1000 M3
N145 G54
N150 M8
N165 G0 X0.4528 Y-0.374
N170 G43 Z0.64 H10
N175 T8
N185 G0 Z0.24
N190 G98 G85 X0.4528 Y-0.374 Z-0.1378 R0.2 F7.
N195 X1.3583
N200 G80
N205 G0 Z0.64

N210 M5
N215 M9
N220 G53 G0 Z0.
N230 X1.3976
N235 G53 Y0.
N240 M30

%

 

Here is the new one which looks like it should fix my coolant issue. Thanks!

 

%
O01001
(Using high feed G1 F500. instead of G0.)
(T8 D=0.116 CR=0. TAPER=118deg - ZMIN=-0.3937 - drill)
(T10 D=0.1572 CR=0. - ZMIN=-0.1378 - reamer)
N10 G90 G94 G17
N15 G20
N20 G53 G0 Z0.

(Drill5 2)
N30 T8 M6
N35 S6000 M3
N40 G54
N45 M8
N60 G0 X0.1575 Y-0.6102
N65 G43 Z0.64 H8
N70 T10
N80 G0 Z0.24
N85 G98 G83 X0.1575 Y-0.6102 Z-0.3937 R0.2 Q0.06 F17.
N90 Y-0.2165
N95 X1.6535 Y-0.374
N100 G80
N105 G0 Z0.64
N110 M9
N115 M5
N120 G53 G0 Z0.

(ream)
N130 M1
N135 T10 M6
N140 S1000 M3
N145 G54
N150 M8
N165 G0 X0.4528 Y-0.374
N170 G43 Z0.64 H10
N175 T8
N185 G0 Z0.24
N190 G98 G85 X0.4528 Y-0.374 Z-0.1378 R0.2 F7.
N195 X1.3583
N200 G80
N205 G0 Z0.64

N210 M5
N215 M9
N220 G53 G0 Z0.
N230 X1.3976
N235 G53 Y0.
N240 M30

%

0 Likes
Message 4 of 8

randyT9V9C
Collaborator
Collaborator

Yeah, I noticed the order was odd also. The change I suggested will move the coolant stop above the spindle stop. This should fix the dribble issue. Understand, most machines stop flood coolant when stopping the spindle, it's implied. Not sure what Haas does. My machines (not Haas) will retract while the spindle is still coasting to a stop. A G28 retract may behave differently than the G53 but my understanding Haas recommends the G53 retract because it's faster. Maybe someone who runs a Haas will chime in on your not retracting until a complete stop. You might want to test at the MDI a bit and see if you can find the fastest routine/order.

0 Likes
Message 5 of 8

cj.abraham
Alumni
Alumni

@GilmaxCNC

 

First, make sure you have the most up to date post from the Autodesk CAM post library:

http://cam.autodesk.com/posts/?p=haas

 

There is a property in the haas milling post called "fastToolChange" that is visible in the post process dialog. Change this to "yes" and tool changes will happen as fast as the machine will allow, meaning coolant is turned off, the spindle is turned off, and the machine is retracted simultaneously for a tool change without those commands explicitly called in the program. This will address both of the points you made.

fastToolChange.PNG

 

 

 

 

 

Message 6 of 8

GilmaxCNC
Participant
Participant

The latest post says its for pre-next generation control. I'm running the next generation control, are their any significant differences? Thanks for your help.

0 Likes
Message 7 of 8

cj.abraham
Alumni
Alumni

For 3 axis milling, there are no significant differences. The biggest differences are DWO/TCP and the media display feature.

 

Here is the generic Next Gen Control post:

http://cam.autodesk.com/posts/?p=haas_next_generation

0 Likes
Message 8 of 8

GilmaxCNC
Participant
Participant

Thank you very much. I look forward to testing it out in the morning.

0 Likes