M09 flood off on toolchange usb cnc postprocessor

Having problems with or questions about SheetCam? Post them here.
Post Reply
jacala
Posts: 55
Joined: Thu Jun 20, 2013 6:18 pm

M09 flood off on toolchange usb cnc postprocessor

Post by jacala »

Hello!

I'm a very happy sheetcam user and the proud owner of a pneumatic dualhead router with a vacuum bed.

I switch my vacuumbed on and off with the flood signal so the vacuum shuts automatic off after a job.

The problem is, during a tool change the M09 command is given so the flood/vacuumbed shuts off to start up again after the 5 second tool change. Thats far from ideal and I could remove the M09 command from every gcode that I make but is it possible to adjust the post processor or is there a setting in Sheetcam?

That would be great! I've been reading the post processor but my programming knowledge is negligible.
User avatar
Les Newell
Site Admin
Posts: 3668
Joined: Thu May 11, 2006 8:12 pm

Post by Les Newell »

It is pretty easy to change the post if you are willing to have a go. Go to Options->machine->post processor and click on the 'edit post' button.

Roughly 2/3 of the way through the file you should find this piece of code:

Code: Select all

function OnCoolantOff()
   post.Text(" M09 (Coolant off)\n")
end
Cut this line out (select it then Edit->cut):

Code: Select all

 post.Text(" M09 (Coolant off)\n")
Now look for this line near the start of the file:

Code: Select all

function OnFinish()
After than line paste in the line you cut out from OnCoolantOff().

Now turning the coolant on in SheetCam will start your vacuum and it will only stop at the end of the code.
jacala
Posts: 55
Joined: Thu Jun 20, 2013 6:18 pm

Post by jacala »

Hello!

That worked like a charm.

Thanks!
Post Reply