Spindle Control Problem
13 Oct 2018 17:20 #118747
by shedman
Spindle Control Problem was created by shedman
A bit of help please.
After my latest upgrade I find that the spindle speed setting is no longer modal.
For instance, if I issue
S1000
M03
either in the MDI window or in a file, the spindle does not start, however if they are both on the same line,
S1000 M03 or
M03 S1000
it works properly.
In the MDI window it shows S1000 as active.
I've searched the web and this forum an seen no mention of this problem, what am I missing?
LinuxCNC version 2.8.0-pre1-3909-g5e98296
After my latest upgrade I find that the spindle speed setting is no longer modal.
For instance, if I issue
S1000
M03
either in the MDI window or in a file, the spindle does not start, however if they are both on the same line,
S1000 M03 or
M03 S1000
it works properly.
In the MDI window it shows S1000 as active.
I've searched the web and this forum an seen no mention of this problem, what am I missing?
LinuxCNC version 2.8.0-pre1-3909-g5e98296
Please Log in or Create an account to join the conversation.
14 Oct 2018 16:24 #118777
by cmorley
Replied by cmorley on topic Spindle Control Problem
I confirm your findings in MDI. it's the same for m4.
It seems when starting the spindle, the spindle speed must be on the same line,
There was so multi-spindle work pushed to master recently - probably a bug from it.
Chris M
It seems when starting the spindle, the spindle speed must be on the same line,
There was so multi-spindle work pushed to master recently - probably a bug from it.
Chris M
The following user(s) said Thank You: shedman
Please Log in or Create an account to join the conversation.
14 Oct 2018 17:01 #118784
by andypugh
Replied by andypugh on topic Spindle Control Problem
Let me look in to this.
(TBH I am not 100% sure what behaviour is desirable)
(TBH I am not 100% sure what behaviour is desirable)
The following user(s) said Thank You: shedman
Please Log in or Create an account to join the conversation.
14 Oct 2018 23:19 #118807
by andypugh
Replied by andypugh on topic Spindle Control Problem
Well, it's odder than I thought. It seems to be modal in an ngc file but not in MDI...
The following user(s) said Thank You: shedman
Please Log in or Create an account to join the conversation.
15 Oct 2018 08:02 #118826
by shedman
Replied by shedman on topic Spindle Control Problem
I find it's non-modal in ngc files too. When I attempt to drill a pcb, the spindle spins up briefly before the first tool change, then attempts to drill the pcb with the spindle stopped. If I replace all M03 commands with M03 S10000 it works perfectly.
Thanks for your help.
Thanks for your help.
Please Log in or Create an account to join the conversation.
15 Oct 2018 12:20 #118830
by andypugh
Replied by andypugh on topic Spindle Control Problem
It is modal in G-code for me, but I have changed a couple of things already, so might have half-fixed it.
Please Log in or Create an account to join the conversation.
15 Oct 2018 17:41 #118838
by shedman
Replied by shedman on topic Spindle Control Problem
I've just done a few more experiments with a Gcode file, and it appears that S is being set to 0 after a tool change.
Here's a snippet of code:
G00 Z15.0000
G00 X0.0000 Y0.0000
M03
G04 P0.500000
M05
G00 Z50.0000
G00 X2.0000 Y0.0000
M06 T02 (0.5000 )
G01 Z0.0000 F150.00
M00
G00 Z4.0000
M03
G04 P0.500000
The second M03 has no effect unless I comment out the line M06 T1, or add another S command after it.
Also I have just spotted that every time I run a program the value of S in the MDI tab is reset to 0, but maybe this is normal.
Here's a snippet of code:
G00 Z15.0000
G00 X0.0000 Y0.0000
M03
G04 P0.500000
M05
G00 Z50.0000
G00 X2.0000 Y0.0000
M06 T02 (0.5000 )
G01 Z0.0000 F150.00
M00
G00 Z4.0000
M03
G04 P0.500000
The second M03 has no effect unless I comment out the line M06 T1, or add another S command after it.
Also I have just spotted that every time I run a program the value of S in the MDI tab is reset to 0, but maybe this is normal.
Please Log in or Create an account to join the conversation.
16 Oct 2018 00:36 #118857
by andypugh
Replied by andypugh on topic Spindle Control Problem
I think I just pushed a fix.
I tested MDI and G-code with feed-per-rev and they seemed to work.
I tested MDI and G-code with feed-per-rev and they seemed to work.
Please Log in or Create an account to join the conversation.
18 Oct 2018 14:24 #118996
by shedman
Replied by shedman on topic Spindle Control Problem
I'm now on 2.8.0-pre1-3910-gbedc7e5, and I still have the same problem. Speed and M03 have to be on the same line in MDI, and spindle speed appears to be set to 0 every time I issue a tool change. I thought that maybe I should have been setting spindle speed in the tool table, but I can't see where.
I've also just realized that I shouldn't be running the development version anyway! I must have set up the wrong repository.
I've also just realized that I shouldn't be running the development version anyway! I must have set up the wrong repository.
Please Log in or Create an account to join the conversation.
18 Oct 2018 15:55 #118999
by andypugh
Replied by andypugh on topic Spindle Control Problem
It doesn't look like the buildbot has built anything since Sunday evening, so the latest stuff won't be in the debs yet.
Going back to 2.7 if your configs have been updated will be difficult, though. (the conversion tool is one-way)
Going back to 2.7 if your configs have been updated will be difficult, though. (the conversion tool is one-way)
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds