- Posts: 52
- Thank you received: 0
Gearchange help controlling a BLDC motor
- tacklem60
- Offline
- Senior Member
-
Less
More
7 years 4 weeks ago #146953
by tacklem60
Replied by tacklem60 on topic Gearchange help controlling a BLDC motor
I don't have any system to tell the control which belt speed it is in and didn't plan on adding one because I seldom use low range.
The way I hoped to do it was similar to a toolchange in Linux where there was maybe a pop-up if a speed below 1300RPM is requested and it waits until I click ok to continue. I know that is basically what Pathpilot does for Tormach and it is LinuxCNC based. I just don't know how they accomplish it
The way I hoped to do it was similar to a toolchange in Linux where there was maybe a pop-up if a speed below 1300RPM is requested and it waits until I click ok to continue. I know that is basically what Pathpilot does for Tormach and it is LinuxCNC based. I just don't know how they accomplish it
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
-
Less
More
- Posts: 1872
- Thank you received: 358
7 years 4 weeks ago #146961
by pl7i92
Replied by pl7i92 on topic Gearchange help controlling a BLDC motor
you also need a parameter VAR at the startup loaded to tell the last known state
but it is as no feedback always a problem of the user
and it needs not to be that hard coded only the use of the mux shoudt give you a clear value
but it is as no feedback always a problem of the user
and it needs not to be that hard coded only the use of the mux shoudt give you a clear value
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
7 years 4 weeks ago #147062
by andypugh
Replied by andypugh on topic Gearchange help controlling a BLDC motor
You can set up the message component to ask for a gear change.
Use wcomp to set a bit that is true for a range from (say) 5 rpm to 500, and then use the "over" to set a bit to ask for high gear.
linuxcnc.org/docs/2.7/html/man/man9/wcomp.9.html
linuxcnc.org/docs/2.7/html/man/man9/message.9.html
(It's probably worth having a quick scan through all the HAL components at: linuxcnc.org/docs/2.7/html/ ("Realtime components and kernel modules")
Use wcomp to set a bit that is true for a range from (say) 5 rpm to 500, and then use the "over" to set a bit to ask for high gear.
linuxcnc.org/docs/2.7/html/man/man9/wcomp.9.html
linuxcnc.org/docs/2.7/html/man/man9/message.9.html
(It's probably worth having a quick scan through all the HAL components at: linuxcnc.org/docs/2.7/html/ ("Realtime components and kernel modules")
Please Log in or Create an account to join the conversation.
Time to create page: 0.402 seconds