spindle.0.at-speed and s decrease problem.

More
22 Feb 2026 13:07 #343306 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.
g0x0
m3s24000
g1x10f1000
s2400
g1x0
m5
m2
Machine waits after m3s24000, but not waits after s2400.
But code bellow works as expected.
g0x0
m3s24000
g1x10f1000
s2400 g4p0.001
g1x0
m5
m2
The only difference is one milisecond dwell...
Do I something wrong, or it is a bug ?

Please Log in or Create an account to join the conversation.

More
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:
REMAP=S argspec=s ngc=setspeed
2. Make and place in proper folder setspeed.ngc file:
o<setspeed> sub
S#<s> G4P0.001
o<setspeed> endsub
Now LinuxCNC waits at every change of spindle speed.
Tested 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
Powered by Kunena Forum