Post processor help

Post processor help

kratzkemachining
Contributor Contributor
3,212 Views
24 Replies
Message 1 of 25

Post processor help

kratzkemachining
Contributor
Contributor

I was wondering if anyone would be able to help me make some small changes to my post processor, which only needs 3 things to get us going in the shop. A custom post would be upwards of $2500 and I had a professional inspect my code from Fusion and it only needs these three things. I am not new to coding but am unsure of what to actually insert to get the results I want.

 

1. G61.1 after the very first tool change line, with G64 at the end statement of the code to cancel it.
 
2. G05 P2 right after G43.4 (when using 4 or more axis) and before G01 (any movement), with G05 P0  at the end of the unit to cancel G5 P2.
 
3. G49 at the end of the last movement in the unit to cancel G43.4 before moving on the the next unit.
 
I am using the term UNIT as a way of saying (parallel, scallop, adaptive, contour, e t c) 
 
Any help is appreciated!
0 Likes
3,213 Views
24 Replies
Replies (24)
Message 21 of 25

ltomuta
Advisor
Advisor

So here are the changes, within the usual comment blocks for where code was added or [re]moved.
There is also info added on how to enable smoothing right before G1 (you would need to commend three lines of code).

As usual, make sure to test this fully.

Message 22 of 25

kratzkemachining
Contributor
Contributor

I will give this a test right now and see if it is absolutely necessary to put it right before the G1. Thank you again for your time on this I really appreciate your help.

Message 23 of 25

kratzkemachining
Contributor
Contributor

Okay, we are extremely close to getting this perfected. G5 P2 was not needed immediately before G1 ( Just like you thought) and here are the only troubles that we are seeing now. I will attach the image below from our applications guy. Thank you for being so patient with this! Its just unfortunate our control has to be this picky...

0 Likes
Message 24 of 25

ltomuta
Advisor
Advisor

Hmm, are you sure of the order you want the cancellations? 

 

 

G49
G5 P0 (CANCEL HIGH SPEED SMOOTHING OPTION)
G53 G0 Z0.
​

 The original post issues an error code if an attempt is made to issue G49 before the Z0 retract. So to do it in your order we must bypass the error check point by lying about machine's retracted status for a few lines until the actual retract is performed. And then the writeRetract(Z) function call moved from before my earlier changes to somewhere after them. Like so:
ltomuta_0-1677087884813.png

 

 






0 Likes
Message 25 of 25

kratzkemachining
Contributor
Contributor

Yes, It sounds like the control really wants to see G49 only after G43.4 was used, and then these cancel codes in this order:

G5 P0

G49

G53

 

I am really unsure why... but any other order gives us an "Illegal Format" error.

 

Everything else you added works great! (G61, G5 P2 after G43.4, G69)

0 Likes