spindle.0.at-speed and s decrease problem.
- tuxcnc
- Offline
- Premium Member
-
Less
More
- Posts: 139
- Thank you received: 11
22 Feb 2026 13:07 #343306
by tuxcnc
spindle.0.at-speed and s decrease problem. was created by tuxcnc
I'm configuring vfd via modbus and I encountered a strange problem.
My hal configuration is correct, I suppose, the problem is rather in LinuxCNC.
LinuxCNC should wait for spindle.0.at-speed = 1 before making a G1 move, and it waits after the spindle starts, but it doesn't wait after the speed changes.
My English is not good, so instead of explaining, I will give an example.Machine waits after m3s24000, but not waits after s2400.
But code bellow works as expected.The only difference is one milisecond dwell...
Do I something wrong, or it is a bug ?
My hal configuration is correct, I suppose, the problem is rather in LinuxCNC.
LinuxCNC should wait for spindle.0.at-speed = 1 before making a G1 move, and it waits after the spindle starts, but it doesn't wait after the speed changes.
My English is not good, so instead of explaining, I will give an example.
g0x0
m3s24000
g1x10f1000
s2400
g1x0
m5
m2But code bellow works as expected.
g0x0
m3s24000
g1x10f1000
s2400 g4p0.001
g1x0
m5
m2Do I something wrong, or it is a bug ?
Please Log in or Create an account to join the conversation.
- tuxcnc
- Offline
- Premium Member
-
Less
More
- Posts: 139
- Thank you received: 11
22 Feb 2026 15:24 #343314
by tuxcnc
Replied by tuxcnc on topic spindle.0.at-speed and s decrease problem.
Temporary solution:
1. Add to your ini file line bellow in [RS274NGC] section:2. Make and place in proper folder setspeed.ngc file:Now LinuxCNC waits at every change of spindle speed.
Tested by code bellow:
1. Add to your ini file line bellow in [RS274NGC] section:
REMAP=S argspec=s ngc=setspeedo<setspeed> sub
S#<s> G4P0.001
o<setspeed> endsubTested by code bellow:
g0x0
m3s24000f1000
g1x10
s2400
g1x0
s24000
g1x10
s2400
g1x0
m5
m2
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds