Spindle starts upon exit of Linuxcnc. How to stop?
- tommylight
- Away
- Moderator
Less
More
- Posts: 19471
- Thank you received: 6530
03 Aug 2022 07:35 #248904
by tommylight
Replied by tommylight on topic Spindle starts upon exit of Linuxcnc. How to stop?
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.
Nothing to do with the kernel, but i forgot what was needed in hal to make it work, so not helping.
The following user(s) said Thank You: x26iclone
Please Log in or Create an account to join the conversation.
- x26iclone
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 4
04 Aug 2022 22:18 #249072
by x26iclone
Replied by x26iclone on topic Spindle starts upon exit of Linuxcnc. How to stop?
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
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 or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17950
- Thank you received: 4817
04 Aug 2022 22:39 - 04 Aug 2022 22:43 #249073
by PCW
Replied by PCW on topic Spindle starts upon exit of Linuxcnc. How to stop?
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.
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.
Last edit: 04 Aug 2022 22:43 by PCW.
Please Log in or Create an account to join the conversation.
- x26iclone
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 4
05 Aug 2022 10:58 #249109
by x26iclone
Replied by x26iclone on topic Spindle starts upon exit of Linuxcnc. How to stop?
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
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 or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17950
- Thank you received: 4817
05 Aug 2022 14:41 #249120
by PCW
Replied by PCW on topic Spindle starts upon exit of Linuxcnc. How to stop?
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.
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 or Create an account to join the conversation.
- x26iclone
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 4
06 Aug 2022 11:39 #249191
by x26iclone
Replied by x26iclone on topic Spindle starts upon exit of Linuxcnc. How to stop?
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
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 or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17950
- Thank you received: 4817
06 Aug 2022 14:49 #249205
by PCW
Replied by PCW on topic Spindle starts upon exit of Linuxcnc. How to stop?
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 or Create an account to join the conversation.
- x26iclone
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 4
07 Aug 2022 01:08 #249237
by x26iclone
Replied by x26iclone on topic Spindle starts upon exit of Linuxcnc. How to stop?
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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19471
- Thank you received: 6530
07 Aug 2022 06:47 #249253
by tommylight
Replied by tommylight on topic Spindle starts upon exit of Linuxcnc. How to stop?
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.
@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 or Create an account to join the conversation.
- x26iclone
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 4
07 Aug 2022 11:33 #249267
by x26iclone
Replied by x26iclone on topic Spindle starts upon exit of Linuxcnc. How to stop?
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?
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 or Create an account to join the conversation.
Time to create page: 0.065 seconds