spindle rpm
- carpa1970
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
26 Dec 2021 08:29 - 27 Dec 2021 01:00 #230008
by carpa1970
spindle rpm was created by carpa1970
hello and happy holidays to the whole forum!
would anyone be kind to help me with my problem?
I'm just starting out with linux and I don't understand how to fix it.
i have a small lathe that i converted to cnc with a 200w, 24v dc motor and encoder on the spindle.
my problems are:
1. maximum speed set in stepconf and pyvcp panel is 3500 rpm but, if for example, I give the M3 / S 1400 command everything works fine, if then, if I give S2000, the motor slows down to 800 rpm instead of increasing the rpm to 2000
2. if I give, for example, the M3 / s1000 all right, instead of M4 / s1000 I have 1300 rpm
what am I doing wrong?
I am attaching my hal, ini and custompanel xml files.
Thank you in advance!
p.s. any advice on documentation to study to learn Linuxcnc is well accepted
would anyone be kind to help me with my problem?
I'm just starting out with linux and I don't understand how to fix it.
i have a small lathe that i converted to cnc with a 200w, 24v dc motor and encoder on the spindle.
my problems are:
1. maximum speed set in stepconf and pyvcp panel is 3500 rpm but, if for example, I give the M3 / S 1400 command everything works fine, if then, if I give S2000, the motor slows down to 800 rpm instead of increasing the rpm to 2000
2. if I give, for example, the M3 / s1000 all right, instead of M4 / s1000 I have 1300 rpm
what am I doing wrong?
I am attaching my hal, ini and custompanel xml files.
Thank you in advance!
p.s. any advice on documentation to study to learn Linuxcnc is well accepted
Attachments:
Last edit: 27 Dec 2021 01:00 by carpa1970.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
26 Dec 2021 14:29 #230012
by Todd Zuercher
Replied by Todd Zuercher on topic spindle rpm
Can you fill in some details about how you have your spindle drive connected. What kind of drive? How is the velocity signal wired? What kind of breakout board? It is almost certainly a configuration issue.
Please Log in or Create an account to join the conversation.
- carpa1970
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
26 Dec 2021 15:35 #230015
by carpa1970
Replied by carpa1970 on topic spindle rpm
thanks Todd Zuercher!
then, the card is this:
www.ebmia.pl/plyty-glowne/1476-plyta-glo...nia-cnc-ssk-mb2.html , along with a spindle control module which would be this: www.ebmia.pl/moduly -dodatkowe / 42774-spindlecontrol-sterownik-falownika-do-mach3.html , which controls engine rpm via this coltroller: www.ebay.com/itm/222901278584?_ul=CO
then, the card is this:
www.ebmia.pl/plyty-glowne/1476-plyta-glo...nia-cnc-ssk-mb2.html , along with a spindle control module which would be this: www.ebmia.pl/moduly -dodatkowe / 42774-spindlecontrol-sterownik-falownika-do-mach3.html , which controls engine rpm via this coltroller: www.ebay.com/itm/222901278584?_ul=CO
Please Log in or Create an account to join the conversation.
- carpa1970
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
26 Dec 2021 15:39 #230016
by carpa1970
Replied by carpa1970 on topic spindle rpm
I put back the link of the spindle module:
www.ebmia.pl/moduly-dodatkowe/42774-spin...ownika-do-mach3.html
www.ebmia.pl/moduly-dodatkowe/42774-spin...ownika-do-mach3.html
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
28 Dec 2021 14:17 #230144
by Todd Zuercher
Replied by Todd Zuercher on topic spindle rpm
I can't be certain because of language translation issues, but it looks like the spindle board you linked to above probably should be fed a step/dir signal instead of a PWM/dir signal. You would need to replace the software PWM component in your config with a stepgen, then configure the stepgen to velocity mode.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
28 Dec 2021 14:26 - 28 Dec 2021 14:29 #230146
by Todd Zuercher
Replied by Todd Zuercher on topic spindle rpm
Another possibility is that you might need to invert the PWM signal, by simply adding this line to your 5cina.hal file.
setp parport.0.pin-08-out-invert true
Last edit: 28 Dec 2021 14:29 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
- carpa1970
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
31 Dec 2021 09:10 #230381
by carpa1970
Replied by carpa1970 on topic spindle rpm
thank you! the seller had indicated as the only precaution, to make the spindle module work in Linux, to put 0-10000hz in the pwm.
happy new year to you and the whole forum!
happy new year to you and the whole forum!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds