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

More
8 months 1 week ago #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.
Code:
g0x0 m3s24000 g1x10f1000 s2400 g1x0 m5 m2
Machine waits after m3s24000, but not waits after s2400.
But code bellow works as expected.
Code:
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 to join the conversation.

More
8 months 1 week ago #343314 by tuxcnc
Temporary solution:
1. Add to your ini file line bellow in [RS274NGC] section:
Code:
REMAP=S argspec=s ngc=setspeed
2. Make and place in proper folder setspeed.ngc file:
Code:
o<setspeed> sub S#<s> G4P0.001 o<setspeed> endsub
Now LinuxCNC waits at every change of spindle speed.
Tested by code bellow:
Code:
g0x0 m3s24000f1000 g1x10 s2400 g1x0 s24000 g1x10 s2400 g1x0 m5 m2

Please Log in to join the conversation.

Time to create page: 0.206 seconds
Powered by Kunena Forum