Hello everyone,
I'd like to start by saying how awesome is this community and how many issues I solved by simply reading the forums.
This is an issue I had for a long time but I've always managed to get around it by editing the code by hand, but now I would like your help to solve this once and for all.
I use the standard FANUC (control is a 0i-mf) for milling post processor modified to work with A axis that revolves around the X.
Yesterday I made a program that includes multiple rotary toolpath.
The first rotary toolpath includes a tool change from the previous toolpath so the spindle starts correctly.
In the first line of the next rotary toolpath I have this line:
G28 G91 Z0.
this cause the Z axis to rectract to 0, the machine then stop the spindle for safety reasons.
The code continues with the correct movements but with the spindle off!
How can I fix this? Is it a PP configuration issue?
Many thanks for your help
I see what you mean, if there is no toolchange and it is just moving position then no spindle start line.
So, are you looking to have a spindle restart something like S*****M3 at the beginning of each operation and removing the G28 G91 Z0 line or keeping that line as well ??
Hello Engineguy,
thanks for your reply.
I guess, for now, it's better if I keep that Z0 line before starting a new toolpath just to avoid any possibile collision.
I forgot to mention that this problem happens also when duplicating the toolpaths using multiple origins, if there is a tool change between the toolpaths the spindle is correctly initialized, other way I have only movements with no spindle rotation.
Thanks for your help
Michelangelo
This is a bit of a guess but if you go to line 332 of your post and change that to true does that help? Line 332 shown below.
var forceSpindleSpeed = false; //<<< Change this to true
I gave it a try now, but it didn't worked.
The spindle speed and spindle on command are written only when a tool change is invoked.
OK, your Fanuc control turns off the spindle/coolant when the G28 G91 Z0 line is commanded and it moves to that position, that is a setting in Fanuc Parameters so you may be able to set that differently.
Does the G53 G0 Z0 command line also turn the spindle off ?? Worth a try if you have not already done so 🙂
Dear Engineguy,
unfortunately with the G53 G0 Z0 command I get the same result, spindle off 😞
I'm a bit lost here, do you have some other suggestion that I could try out?
many thanks
Can't find what you're looking for? Ask the community or share your knowledge.