![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Machines running Mach Software Discuss your set-up and experiences running your machine using Mach software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I have installed some relays with separate 5vdc power supply to basically turn on/off a power receptacle where my spindle and the vacuum cleaner are connected to and this is what it does without any software setup: I started the computer, loaded Mach3, and turned on the control box and it stayed off as it should. I loaded a simple test program that didn’t have any M03 g-code in it and when I clicked on start the machine started running and the relayed turned on, ran the program and it came back to the starting point but the relay never turned off and the program had M05 (Spindle Off) and M02 (End Program). The relay also never turned off after I closed the Mach3 and turned off the control box. If I would disconnect the parallel cable from the computer it will turn off but after plugging the cable back in it would turn on again. The relay is connected to pin #14 so the got the power to turn it on when the program stated running and there was nothing there to shut it off after that and it’s still pumping 5v from the computer only. I have never played with that part of the software and I need to find out how to set it. |
|
#2
| ||||
| ||||
| In the Ports and Pins screen, assign pin 14 to an output in the "Output Signals" tab, then assign that output in the "Spindle Setup" tab.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| ||||
| ||||
| It sounds to me like you are driving the relay direct from the parallel port? If so you should really use a buffer/driver or a BOB, see recent posts here re 2n7000 etc. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#4
| |||
| |||
| Just curious...I am about to create the same scenario and was wondering if there is some way the relay can be triggered erratically...rather then a start and stop....I would like say the vacuum to come on every 200 lines of g-code....does this mean I need to inject mstarts and stops throughout the run. thanks cnc guy toronto |
|
#5
| ||||
| ||||
| You can use Output #1 and Output #2 turned on by M7 and M8, and both turned off by M9. Relays are are on my BOB. Intended for mist and coolant, but I use one for a 1HP monster dust sucker. I put a double power outlet on my machine and plug in whatever I like.
__________________ Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way. |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printer Port relay control | Sieg | General Electronics Discussion | 6 | 12-08-2007 01:39 PM |
| non RF remote relay control? | DennisCNC | General Electronics Discussion | 2 | 07-08-2006 05:15 PM |
| How do I control a relay? | amccoy | General Electronics Discussion | 7 | 05-30-2006 04:00 PM |
| How to set a relay for a spindle motor ON/OFF control | TTaki | TurboCNC | 2 | 03-09-2005 06:26 AM |
| How to control a relay with a PC | NeoMoses | General Electronics Discussion | 5 | 08-06-2003 05:55 PM |