- Posts: 158
- Thank you received: 0
Swapping between ModBus or Step/Dir for spindle between normal and tapping?
6 years 1 month ago #182560
by jhandel
I have a spindle servo that takes Modbus commands great (I have that worked out).. However, for rigid tapping I have been warned ModBus may not be a timely enough method.. The Spindle also takes step & direction great (however, at 4096 pulses/rotation and max RPM of 10k I can't run my spindle in step/direction normally as the pulses would be crazy small...
How might I configure/code things (or pointers to docs on this) where I can have essentially two methods for spindle control and flip between them based on if it's normally commanded speed or a rigid tapping operation where I want the servo and encoder to work with the z axis to well, do rigid tapping..
Thanks in advance.
How might I configure/code things (or pointers to docs on this) where I can have essentially two methods for spindle control and flip between them based on if it's normally commanded speed or a rigid tapping operation where I want the servo and encoder to work with the z axis to well, do rigid tapping..
Thanks in advance.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
6 years 1 month ago #182576
by tommylight
Replied by tommylight on topic Swapping between ModBus or Step/Dir for spindle between normal and tapping?
Not sure about this, but since LinuxCNC 2.8 and Master support multiple spindles, maybe it can be set as 2 separate spindles, one through ModBus and the other through step/dir.
In gcode that would end up as
M3 $0 S10000 for the first spindle say through ModBus, and
M3 $1 S500 for the second spindle or rigid tapping through step/dir.
Just an idea ( never said it is a good idea !
)
In gcode that would end up as
M3 $0 S10000 for the first spindle say through ModBus, and
M3 $1 S500 for the second spindle or rigid tapping through step/dir.
Just an idea ( never said it is a good idea !
Please Log in to join the conversation.
6 years 1 month ago #182639
by jhandel
Replied by jhandel on topic Swapping between ModBus or Step/Dir for spindle between normal and tapping?
Hurm... I see what you did there.. so a few "interesting" tweaks to the post processor, and documentation reminding myself what I did for after I have slept a few nights..
No way to do that "switching' between spindles by customizing the S command? like if S < 1000 use $1 if S > 1000 use $0 as a bit of a custom macro?
No way to do that "switching' between spindles by customizing the S command? like if S < 1000 use $1 if S > 1000 use $0 as a bit of a custom macro?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
6 years 1 month ago #182640
by tommylight
I would like to think that by now the new CAM software would have multiple spindle support, but not using them so not sure.
Replied by tommylight on topic Swapping between ModBus or Step/Dir for spindle between normal and tapping?
Most probably could be done, but from what i know that would require digging into the deepest parts of the software and making some serious changes there.jhandel wrote: No way to do that "switching' between spindles by customizing the S command? like if S < 1000 use $1 if S > 1000 use $0 as a bit of a custom macro?
I would like to think that by now the new CAM software would have multiple spindle support, but not using them so not sure.
Please Log in to join the conversation.
6 years 1 month ago #182646
by jhandel
Replied by jhandel on topic Swapping between ModBus or Step/Dir for spindle between normal and tapping?
So its not something that is a command I could muck with like a macro then.. roger.. yah would not want to fork to solve this for sure..
Please Log in to join the conversation.
Time to create page: 0.084 seconds
