Spindle starts upon exit of Linuxcnc. How to stop?

More
31 Jul 2022 12:23 - 31 Jul 2022 12:26 #248728 by x26iclone
Hoping for some help.

I don't have my mill 100% yet, but noticed during some spindle calibrating that the router/spindle would turn on when I would exit out of Linuxcnc if I forgot to mash the e-stop. Is there a way to stop this?

I'm using a Mesa 5i25 card, Gecko G540 and a SuperPID. Everything seems to work as expected except for that safety concern.

I have it wired like this
Last edit: 31 Jul 2022 12:26 by x26iclone.

Please Log in or Create an account to join the conversation.

More
31 Jul 2022 14:14 #248731 by PCW
Are you using the G540s chargepump feature?
I would think that would disable the G540s outputs
when not driven.

Also it's strange that the estop state before exiting makes
any difference as the 6I25 outputs will all be in the same state (high)
when linuxCNC exits.

Please Log in or Create an account to join the conversation.

More
31 Jul 2022 18:50 #248744 by x26iclone
Thanks for the reply PCW.
Yes I am using the G540 Chargepump. Although maybe not the proper way?

This is what I have in my cutom.hal...
# ---estop signals---
net estop-ext <= hm2_5i25.0.gpio.003.in_not
net estop-ext => iocontrol.0.emc-enable-in
net estop-out <= iocontrol.0.user-enable-out
net estop-out => hm2_5i25.0.stepgen.04.enable

It does seem to work. The Emergency and Machine power buttons are both greyed out until I reset the E-Stop button.

Please Log in or Create an account to join the conversation.

More
31 Jul 2022 21:38 #248759 by tommylight
Gecko G540 has a small switch on the front, recessed, what side is it on? And what is written on the side the switch is on?

Please Log in or Create an account to join the conversation.

More
01 Aug 2022 02:05 #248764 by x26iclone
tommylight, you were on to something. The chargepump switch was in the on position. Just for verification purposes I turned it off and then back on. Now the fault light stays on with the e-stop active or not or LCNC running or not.

Thanks for the hint. Where do I go from here? I'll see about making changes to get the chargepump working. Thanks

Please Log in or Create an account to join the conversation.

More
01 Aug 2022 10:11 #248782 by tommylight
Been long since i used charge pump, so better wait for more experinced users.

Please Log in or Create an account to join the conversation.

More
01 Aug 2022 15:50 #248795 by PCW
If you used pncconf to create the configuration, you can have it setup the chargepump

Stepgen 4 is used as the chargepump signal generator on the G540 firmware
pncconf does have a bug where it set the wrong frequency but that is easily fixed
in the hal file.

You could also just add this code to your hal file:

# ---Chargepump StepGen: 1.00 velocity = 10Khz square wave output---

setp [HMOT](CARD0).stepgen.04.dirsetup 100
setp [HMOT](CARD0).stepgen.04.dirhold 100
setp [HMOT](CARD0).stepgen.04.steplen 100
setp [HMOT](CARD0).stepgen.04.stepspace 100
setp [HMOT](CARD0).stepgen.04.position-scale 10000
setp [HMOT](CARD0).stepgen.04.step_type 2
setp [HMOT](CARD0).stepgen.04.control-type 1
setp [HMOT](CARD0).stepgen.04.maxaccel 0
setp [HMOT](CARD0).stepgen.04.maxvel 0
setp [HMOT](CARD0).stepgen.04.velocity-cmd 1.0

net x-enable => [HMOT](CARD0).stepgen.04.enable
The following user(s) said Thank You: tommylight, JT

Please Log in or Create an account to join the conversation.

More
02 Aug 2022 01:11 #248815 by x26iclone
I'm beginnig to think I may have done something to my G540. The only difference that I saw between what you shared was velocity-cmd which was set to 0.25. I changed it to 1.0 but that did'nt make a difference. I then replaced what I had with all that you shared, still the G540 had a red fault light. If I turn the charge pump off everything seems to work. Chargepump on and it stays in fault mode.

Is there a way to check the signal on pin 16(Gecko) without a scope?

Thanks again for the help.

Please Log in or Create an account to join the conversation.

More
02 Aug 2022 01:22 #248816 by PCW
You could set the frequency really low (say .1 Hz) and check with a voltmeter

Please Log in or Create an account to join the conversation.

More
02 Aug 2022 23:39 #248882 by x26iclone
So I was unable to get it to work with any settings. I decided to see if it would work from a pci parallel port card. After running stepconf it responded the same. Works with chargepump off, but won't come out of error state when pump is on.

I then decided to boot an old install (Debian stretch(9) with 4.9.0-7-rt-amd64) and everything works properly with pump on. So I rebooted into the new install and copied that config over. It didn't work if pump was on.

I'll try sometime tomorrow to see if I get the same response from the 5i25 card.

So I'm not a kernel person but seems like something is missing in the new kernel?

Any thoughts?

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum