Spindle speed wacky
03 Oct 2022 15:23 #253353
by jlm123
Spindle speed wacky was created by jlm123
Hey all:
(LinuxCNC 2.8.4, Debian 10, Probe Basic, Mesa 7i76e card)
I just redid my LinuxCNC computer in order to switch to the Probe Basic interface. Almost everything is working as expected, except the spindle controls. As i move the spindle speed slider going forward, the speed is all over the place (i.e when the slider is at 10%, the speed is 400rpm, at 30% its at max speed, at 50% it's down to 1000rpm, etc)
Also I have no speed control in reverse. Note that the spindle control was working on the old box in the QTDragon interface.
Thanks.
(LinuxCNC 2.8.4, Debian 10, Probe Basic, Mesa 7i76e card)
I just redid my LinuxCNC computer in order to switch to the Probe Basic interface. Almost everything is working as expected, except the spindle controls. As i move the spindle speed slider going forward, the speed is all over the place (i.e when the slider is at 10%, the speed is 400rpm, at 30% its at max speed, at 50% it's down to 1000rpm, etc)
Also I have no speed control in reverse. Note that the spindle control was working on the old box in the QTDragon interface.
Thanks.
Please Log in or Create an account to join the conversation.
03 Oct 2022 15:47 #253355
by PCW
Replied by PCW on topic Spindle speed wacky
Did you change the hal file?
Please Log in or Create an account to join the conversation.
03 Oct 2022 17:33 #253360
by jlm123
Replied by jlm123 on topic Spindle speed wacky
I copied the values over from the old hal and ini files.
Please Log in or Create an account to join the conversation.
03 Oct 2022 17:43 #253362
by PCW
Replied by PCW on topic Spindle speed wacky
Can you post you current hal/ini files?
Please Log in or Create an account to join the conversation.
03 Oct 2022 17:47 #253363
by jlm123
Replied by jlm123 on topic Spindle speed wacky
Here you go.
Ini file:
Ini file:
Attachments:
Please Log in or Create an account to join the conversation.
03 Oct 2022 17:56 - 03 Oct 2022 17:56 #253364
by PCW
Replied by PCW on topic Spindle speed wacky
I see at least one issue:
net spindle-vel-cmd-rpm => pid.s.command
should be
net spindle-vel-cmd-rpm-abs => pid.s.command
net spindle-vel-cmd-rpm => pid.s.command
should be
net spindle-vel-cmd-rpm-abs => pid.s.command
Last edit: 03 Oct 2022 17:56 by PCW.
Please Log in or Create an account to join the conversation.
03 Oct 2022 19:06 #253368
by jlm123
Replied by jlm123 on topic Spindle speed wacky
Tried that. If fixed the reverse speed control, so now both forward and reverse have the wackiness with the slider.
Moving the slider down from 100%, the spindle slows as it approaches arounf 65%, then goes to full speed and repeats the process at around 35%.
Moving the slider down from 100%, the spindle slows as it approaches arounf 65%, then goes to full speed and repeats the process at around 35%.
Please Log in or Create an account to join the conversation.
03 Oct 2022 19:16 #253370
by PCW
Replied by PCW on topic Spindle speed wacky
In addition to the -abs change, these items in the ini file should be changed
OUTPUT_SCALE = 5000
(was 100)
OUTPUT_MIN_LIMIT = 0
(was -5000)
OUTPUT_SCALE = 5000
(was 100)
OUTPUT_MIN_LIMIT = 0
(was -5000)
Please Log in or Create an account to join the conversation.
03 Oct 2022 19:31 #253372
by jlm123
Replied by jlm123 on topic Spindle speed wacky
Thanks PCW - that fixed the wackiness with the slider. However, the spindle is now truning at 300rpm at 100% (it should be running at 5000)
Please Log in or Create an account to join the conversation.
03 Oct 2022 20:07 #253377
by PCW
Replied by PCW on topic Spindle speed wacky
I would check (with halshow)
hm2_7i76e.0.7i76.0.0.spinout-scalemax
hm2_7i76e.0.7i76.0.0.spinout
And check (with a voltmeter)
The spindle 10V supply (TB4 pin 3)
and output voltage (TB4 pin 2),
both relative to TB4 pin1
hm2_7i76e.0.7i76.0.0.spinout-scalemax
hm2_7i76e.0.7i76.0.0.spinout
And check (with a voltmeter)
The spindle 10V supply (TB4 pin 3)
and output voltage (TB4 pin 2),
both relative to TB4 pin1
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds