Spindle starts upon exit of Linuxcnc. How to stop?

More
4 years 2 months ago #248904 by tommylight
Charge pump is/was on pin 16 on G540.
Nothing to do with the kernel, but i forgot what was needed in hal to make it work, so not helping.

Please Log in to join the conversation.

More
4 years 2 months ago #249072 by x26iclone
So I contacted Gecko and they stated that "The charge pump is not typically used (and is actually being designed out in the next G540)".

So I'll run with the charge pump off. Is there a way to keep my router/spindle from running when LCNC is not in control?

Thanks to all for the reply's

Please Log in to join the conversation.

More
4 years 2 months ago #249073 by PCW
What DB25 pin enables the spindle?

You could try adding a say 1K pulldown resistor on that pin
(if you dont want to use the charge pump)

Did you verify that DB25 pin 16 was actually toggling?
If you cannot get the chargepump to work I would expect
a setup error of some kind.

Please Log in to join the conversation.

More
4 years 2 months ago #249109 by x26iclone
PCW,
I'll try adding a 1k resistor to pin 10 and report back.

So I was able to get the charge pump to work via pci parallel port card and stepconf but I couldn't verify a signal when switch over to the 5i25 card.

Thanks

Please Log in to join the conversation.

More
4 years 2 months ago #249120 by PCW
Did you try lowering the charge pump frequency (to say .1 Hz) and then checking
DB25 pin 16 with a voltmeter/LED?

If you get no output toggle then you likely have a chargepump setup error in the hal file.

Please Log in to join the conversation.

More
4 years 2 months ago #249191 by x26iclone
I was able to get output from pin 16. I don't remember what the final setting was but it led to 5v when LCNC was running to .02v when it wasn't running.

I then decided to start a new pncconf with just XYZ and slowly added the spindle then the chargepump. Everything worked until I added the e-stop. With the e-stop added LCNC won't come out of e-stop. If I removed e-stop then everything worked and if LCNC was closed the G540 went into fault mode.

With the e-stop added pin 15(fault to PC) would be 3.8v regardless of the e-stop switch state, but if I turned off the G540 chargepump switch then pin 15 would be 5v or 0v depending on switch state.

I used pncconf for making changes every time to avoid typing errors.

I'm going to verify my wiring when time allows. Any thoughts?
Thanks

Please Log in to join the conversation.

More
4 years 2 months ago #249205 by PCW
I'm not sure what the G540 fault output reports. Have you considered connecting estop to a free input pin (if you have one)?

Please Log in to join the conversation.

More
4 years 2 months ago #249237 by x26iclone
I have the e-stop wired between pins 10 and 12 as gecko recommends. I can give that a try though. Pin 15 is 3.3v or higher when in fault according to an old thread I saw.

Please Log in to join the conversation.

More
4 years 2 months ago #249253 by tommylight
Lobg time since i had G540's, but it had no fault output, e-stop was wired to an input on parallel port.
@x26iclone,
Please clarify what pins are you reffering to as both the G540 and parallel port have pins 10 and 12.
In this case it is the G540 pins.

Please Log in to join the conversation.

More
4 years 2 months ago #249267 by x26iclone
Yes my estop is wired between 10 and 12 of the G540 terminal block.

Sorry for the confusion.

I believe pin 7 of the lpt port is free, so I should be able to jump 10 and 12 of the G540 terminal block together and then put my estop between pin 7 and ground of the lpt, right?

Please Log in to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum