post processor issue

post processor issue

white.kap
Explorer Explorer
2,028 Views
10 Replies
Message 1 of 11

post processor issue

white.kap
Explorer
Explorer

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

0 Likes
2,029 Views
10 Replies
Replies (10)
Message 2 of 11

engineguy
Mentor
Mentor

@white.kap 

 

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 ??

Message 3 of 11

white.kap
Explorer
Explorer

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

 

 

0 Likes
Message 4 of 11

white.kap
Explorer
Explorer

any suggestion?

 

thanks

 

Michelangelo

0 Likes
Message 5 of 11

mattdlr89
Advisor
Advisor

Will enabling the "Safe start all operations" in the post processor help?

 

mattdlr89_0-1640010087819.png

 

0 Likes
Message 6 of 11

white.kap
Explorer
Explorer
Dear mattdlr89,

that is how I got around the main problem (no spindle start line).
By enabling that option the pp writes the correct lines at the start of each toolpath, but with a slash at the beginning of the line.
I edited the PP by deleting the "/" in the line responsible for writing that.
Yes it's a workaround and I do not know if it can cause problems in the long run, works good for now.
Even with that I still have to manually edit (by commenting it) the "G28 G91 Z0" at the start of each rotary toolpath.
It would be great to have a solution for that.
many thanks for your reply
0 Likes
Message 7 of 11

mattdlr89
Advisor
Advisor

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

 

0 Likes
Message 8 of 11

white.kap
Explorer
Explorer

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.

0 Likes
Message 9 of 11

engineguy
Mentor
Mentor

@white.kap 

 

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 🙂

0 Likes
Message 10 of 11

white.kap
Explorer
Explorer

Thanks,

 

I'll try that today and get back to you all

 

 

0 Likes
Message 11 of 11

white.kap
Explorer
Explorer

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

0 Likes