Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: widpyro on September 01, 2011, 10:51:22 PM

Title: need to close a circuit with g-code
Post by: widpyro on September 01, 2011, 10:51:22 PM
I would like to repeatedly close a circuit  using g-code. What is the best way to accomplish this? I want to activate a pneumatic cylinder during the program.

Thanks,
-jim
Title: Re: need to close a circuit with g-code
Post by: Hood on September 02, 2011, 02:09:57 AM
Probably easiest is to use Flood or Mist coolant outputs to switch a relay.
Hood
Title: Re: need to close a circuit with g-code
Post by: widpyro on September 02, 2011, 06:59:35 AM
Thanks Hood,

So I would use M8 to turn coolant mist on and M9 to turn all coolant off, correct? How do i assign the the pins for this? I do not see "Mist on" and "All coolant off" in the pin outputs section. Thank you!!! -jim
Title: Re: need to close a circuit with g-code
Post by: Hood on September 02, 2011, 07:14:46 AM
Mist is M7, Flood M8 and switch either off is M9.
To set up go to Config, Ports and Pins, OutPuts and choose an output you are not currently using and set the port and pin number, next go to the Spindle Setup tab and enable the Flood/Mist relays option and enter the output number you have just set up into the M7 or M8 (or both if you want) and thats it.
Hood