- Posts: 295
- Thank you received: 0
spindle.0.at-speed and s decrease problem.
8 months 1 week ago #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.
Code:
g0x0
m3s24000
g1x10f1000
s2400
g1x0
m5
m2
But code bellow works as expected.
Code:
g0x0
m3s24000
g1x10f1000
s2400 g4p0.001
g1x0
m5
m2
Do I something wrong, or it is a bug ?
Please Log in to join the conversation.
8 months 1 week ago #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:
Code:
REMAP=S argspec=s ngc=setspeed
Code:
o<setspeed> sub
S#<s> G4P0.001
o<setspeed> endsub
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
