Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: ultra on July 21, 2006, 05:13:02 AM

Title: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: ultra on July 21, 2006, 05:13:02 AM
Some assistance in setting up an estop switch and router relay for an Xylotex 3 axis drive would be appreciated. The control for the spindle will not require anymore than turning on and off with G code and. I have a functioning switch for the estop which is just like the Mach3 manual shows and works off of pin 10. I have had no success in getting a relay for a router to work using pin 1. I want to coordinate the estop and router so that the axis motors and router stop when the estop switch is activated. Also some help setting up Mach3 would be appreciated. I tried to set the software up according to the Mach3 manual but am at the point of trial and error.
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on July 22, 2006, 09:36:25 AM
Setting up the output to run the router is no problem :)

You need to do the following steps:
1 set the Pin for the output and we are going to use Output #1 Look at the pic below
2 Set the output that is going to run the "spindle" Look at the pic below

To test this do to the diagnostics page an see if you can see the LED change when you press the Spindle on button.

The input is done the same way, just set the port number to one and the pin number to 10 and if you have the input hooked up it should work :)


Hope this is a help
Brian
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: ultra on August 22, 2006, 06:32:48 AM
Your response was very helpful and worked. Thanks. What I notice is when Windows boots up the spindle is on by default. This is a very big saftey issue. Is there anyway to control the spindle before and after Mach3 is run?
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on August 23, 2006, 05:48:57 AM
You need to get a break out board :(  This will stop the pins from flashing the output on startup. This is done by the chargepump... it is a 12Khz signal that is used to tell if the control is in a good state. http://cnc4pc.com/Safety_Charge_Pump.htm This should fix the problem :)
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 15, 2007, 02:47:56 PM
Brain I know this is rather old, but have a question about mist relay. Using the above  for spindle relay would I just make the M7 and M8 use output#2 as in what you show for Relay control of spindle,,,ie Number 1
The problem I seem to be having is what pin to hook my SS Relays to on the Xylotex 3 axis board to make it all work.

thanks for any help
Jim
Abbotsford, BC
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 17, 2007, 10:19:29 AM
If anyone uses a Xylotex board and has the two relays working for spindle and mist, might you give me a hint as to which pins you hooked to on the Xylotex board? I still can't seem to get either relays to work with software. I know they are wired correct since if I give either a 5 volt DC they turn on. Just can't seem to get my brain around which pin ,,port and connector I should be using.

thanks
Jim
Abbotsford, BC
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on January 17, 2007, 04:27:11 PM
I had a look at there page and I can't see that there is a relay on there board... could you post what one you have and if you could the pin out for it ?

thanks
Brian
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 17, 2007, 04:40:17 PM
Hi Brain, sorry if I was not clear, the two SS relays are not on the xylotex board, they only have a few pins to aid in hooking extras up. An expample is if you look at their board there is a breakout for say P10.

So I am unclear if I change the mist as you show above  to port 1 pin 10, will this supply the 5 volts the P10 on the xylotex board. I have tried this and there is something I am missing since it does not.

I have figured out most things with mach 3 by playing enough, maybe not always the right way but learning. This just seems to be something I can not quite get my head around.

thanks
jim
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on January 17, 2007, 06:21:32 PM
Hello Jim,
In the pic Pd0 - PD7 should work as an output :) So as you can see if you hook to Pd0 you need to set the pin number to "2"

That is about the best I could find in the docs

Thanks
Brain
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 18, 2007, 09:34:08 AM
Ok, thanks for your time Brain. I guess I am so confused about it that I can't even explain it right. My x, y , z and a axis work fine. Just that my spindle and mist relays will not turn on with commands from mach 3
Thanks again
Jim
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on January 18, 2007, 10:48:45 AM
Okay what is the name of the terminal that you have the relay wired to? Is it PD0 ? PD4?

if you know that you can get the pin number form the Pic I posted

Thanks
Brian (Going to be at a show for a few days so sorry if I don't get back to you fast)
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 26, 2007, 10:23:34 AM
Good morning Brain, and all others.
I took some time to go through everything again to see if I could figure this out, still having problems. First let me say x, y, z axis all work fine.
Now Brain using what you had above, I went to Output Signals and changed output # 1 to enabled , port 1 and pin 1, then to spindle setup and changed output for cw and ccw to # 1. On the Xylotex board there is a pin labled P1, hooked the SS relay to that pin, OK so far so good, my relay kicks in and turns on the spindle. Have not tried it with software yet just using the Diagnostic page to test it.

OK now the next step I am having problems with, I can not seem to understand how to get mist up and working also. Xylotex has number of pins along with the P1,,so if I was to use P14, could you tell me the set up. Now I double checked to make sure the SS relay was working, so it has to be me not getting things right, and have tried different setups in Mach to try.

Thanks for your help,
Jim
Abbotsford, BC
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on January 28, 2007, 10:11:03 PM
You need to set the output#2 too the pin that is going to run your flood. There is not much more that I can do to help you with the Xylotex.


So please check your ports and pins and post your XML

thanks
Brian
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Jim Neifert on January 29, 2007, 10:25:13 AM
Thanks Brain, I am not sure why I could be so dumb with getting that to work, but after going over it a few hundred times it still didn't work. After reading what you put above, realized I was putting port and pin to the same thing. Once I changed to port 1 pin 14, well darn everything works fine.

thanks and sorry for taking your time up Brain

Jim
Abbotsford, BC
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Brian Barker on January 29, 2007, 01:19:06 PM
Great! I knew it was going to be some simple thing :)

Have fun with your machine!
Title: Re: Setup estop, spindle on/off, and Xylotex 3 axis drive
Post by: Kipper on August 12, 2007, 07:30:37 AM
I got mine working by setting the buttons within Mach and then restarting Mach...Works flawlessly :beer: