linuxcnc 'hangs' when using spindle
- Emco2342
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
28 Nov 2023 16:27 #286708
by Emco2342
linuxcnc 'hangs' when using spindle was created by Emco2342
Hi All,
I have come across a very strange system behaviour with my lathe running on LINUXCNC 2.8.4.1
If I run this G code for example below, the axis stops "responding" after the spindel start command (S1000 M3) is exeuted (and the motor is running) or at least NOT executing the G46 command after the spindel start command (S1000 M3).
(example from lathe_pawn.ngc)
G21
G64
G18 G8
G00 X13.5 Z1.0 S1000 M3
Z0.488
G94 G01 X-1.0 F50.0 --> at this command linuxcnc stops running the program
If I remove the "S1000 M3" command from the programm, the program runs flawless.
I have seen a similar behaviour when I manually switch on the spindel (Manual Control tab in AXIS GUI) and then execute a move command like "G01 X20 Y-1 F50" from the MDI tab in the AXIS GUI
If I don't run a program or execute commands in MDI, I can have the spindle running and axis moving in manual control mode.
I have no clue what is going on so any help is very much appreciated
Thanks in advance
I have come across a very strange system behaviour with my lathe running on LINUXCNC 2.8.4.1
If I run this G code for example below, the axis stops "responding" after the spindel start command (S1000 M3) is exeuted (and the motor is running) or at least NOT executing the G46 command after the spindel start command (S1000 M3).
(example from lathe_pawn.ngc)
G21
G64
G18 G8
G00 X13.5 Z1.0 S1000 M3
Z0.488
G94 G01 X-1.0 F50.0 --> at this command linuxcnc stops running the program
If I remove the "S1000 M3" command from the programm, the program runs flawless.
I have seen a similar behaviour when I manually switch on the spindel (Manual Control tab in AXIS GUI) and then execute a move command like "G01 X20 Y-1 F50" from the MDI tab in the AXIS GUI
If I don't run a program or execute commands in MDI, I can have the spindle running and axis moving in manual control mode.
I have no clue what is going on so any help is very much appreciated
Thanks in advance
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19419
- Thank you received: 6512
28 Nov 2023 17:49 #286712
by tommylight
Replied by tommylight on topic linuxcnc 'hangs' when using spindle
See "spindle at speed"
linuxcnc.org/docs/html/examples/spindle.html
linuxcnc.org/docs/html/examples/spindle.html
Please Log in or Create an account to join the conversation.
- Emco2342
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
29 Nov 2023 19:01 #286809
by Emco2342
Replied by Emco2342 on topic linuxcnc 'hangs' when using spindle
Thanks for the hint.
Indeed it seems to be related to "Spindle At Speed" or better said, Spindle not being at speed....
For now I disabled this spindle at speed calculation checkbox and the spindle at speed GUI checkbox in the setup and this seems to 'solve' the problem for the time being...
Problem behind it is that my physical RPM is not really matching the linuxCNC RPM value. This needs to be fixed so I can use the "Spindle At Speed" function again (as I think it is a useful function)
If I ask for a spindle speed in linuxcnc:
S1000 M3 --> I get ~223 RPM
S3000 M3 --> I get ~677 RPM
S4000 M3 --> I get ~900 RPM
Not yet clear how to solve this, but I have more challenges with my spindel to solve
Indeed it seems to be related to "Spindle At Speed" or better said, Spindle not being at speed....
For now I disabled this spindle at speed calculation checkbox and the spindle at speed GUI checkbox in the setup and this seems to 'solve' the problem for the time being...
Problem behind it is that my physical RPM is not really matching the linuxCNC RPM value. This needs to be fixed so I can use the "Spindle At Speed" function again (as I think it is a useful function)
If I ask for a spindle speed in linuxcnc:
S1000 M3 --> I get ~223 RPM
S3000 M3 --> I get ~677 RPM
S4000 M3 --> I get ~900 RPM
Not yet clear how to solve this, but I have more challenges with my spindel to solve
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19419
- Thank you received: 6512
29 Nov 2023 22:56 #286820
by tommylight
Replied by tommylight on topic linuxcnc 'hangs' when using spindle
That seems linear, so scaling is not correct for the spindle.
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.063 seconds