Page 1 of 1

M Code Simultaneous Flood and Mist Coolant

Posted: Sun Jan 07, 2018 1:04 pm
by legacytorch
Trying to run a two solenoid cutting system. One for preheat the other for cut. I have them setup on flood coolant and mist coolant respectively. It works fine with both the VCP and keyboard. The problem I am having is, that although I can operate both at the same time manually, when called for by the M code it seems to only operate one or the other. Flood shuts off as soon as mist is called for, not waiting for the M09 command. Les from SheetCAM got me started with the post code. You can see that here.

https://forum.sheetcam.com/viewtopic.ph ... 372#p24372

Is this an error in the coding or a limitation of the Acorn?

Yes I could use the spindle control to run one solenoid, but I like the layout of the coolant controls on the VCP. Just me being picky but if its possible why not. I could also probably use a diode to run the preheat whenever the cut is called for but not the opposite.

Re: M Code Simultaneous Flood and Mist Coolant

Posted: Sun Jan 07, 2018 1:42 pm
by cnckeith
you can edit the M8 macro to have M8 do what ever you need. or leave M7 and M8 alone and create a new Mcode and write the macro it calls to do what you need. scott can chime in on the details on monday but here is a primer on creating customer macros and Mcodes. http://www.centroidcnc.com/dealersuppor ... ds/300.pdf

Re: M Code Simultaneous Flood and Mist Coolant

Posted: Sun Jan 07, 2018 1:49 pm
by tblough
You don't need to set up a AUX key to do this. M Functions 0-99 are fully customizable - look at your current mfunc7.mac (mist coolant) file in the CNC? directory. It should have something like the following (the 3 and 4 might be different depending on what outputs mist and flood are connected to):

Code: Select all

M95/3
M94/4
M94 turns the output on, M95 turns it off. Just take out the M95 line.

It's all in the manual under Custom M Functions.

Re: M Code Simultaneous Flood and Mist Coolant

Posted: Sun Jan 07, 2018 2:31 pm
by legacytorch
You guys are fast and awesome! I never expected a response on a Sunday morning.

I removed the M95 line and it now works perfectly.

Thanks so much!