Spindle starts upon exit of Linuxcnc. How to stop?

More
4 years 3 months ago #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
4 years 2 months ago #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
4 years 2 months ago #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
4 years 2 months ago #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.

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.
The following user(s) said Thank You: x26iclone

Please Log in or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.245 seconds
Powered by Kunena Forum