Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:20:10 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  need to close a circuit with g-code
Pages: 1   Go Down
Print
Author Topic: need to close a circuit with g-code  (Read 225 times)
0 Members and 2 Guests are viewing this topic.
widpyro
Active Member

Offline Offline

Posts: 61


View Profile WWW
« on: September 01, 2011, 09: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
Logged
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #1 on: September 02, 2011, 01:09:57 AM »

Probably easiest is to use Flood or Mist coolant outputs to switch a relay.
Hood
Logged
widpyro
Active Member

Offline Offline

Posts: 61


View Profile WWW
« Reply #2 on: September 02, 2011, 05: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
Logged
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #3 on: September 02, 2011, 06: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!