Hello Guest it is March 28, 2024, 03:01:13 PM

Author Topic: need to close a circuit with g-code  (Read 2380 times)

0 Members and 1 Guest are viewing this topic.

need to close a circuit with g-code
« 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: need to close a circuit with g-code
« Reply #1 on: September 02, 2011, 02:09:57 AM »
Probably easiest is to use Flood or Mist coolant outputs to switch a relay.
Hood
Re: need to close a circuit with g-code
« Reply #2 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

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: need to close a circuit with g-code
« Reply #3 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