Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Post processor help

24 REPLIES 24
Reply
Message 1 of 25
kratzkemachining
623 Views, 24 Replies

Post processor help

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!
24 REPLIES 24
Message 2 of 25
ltomuta
in reply to: kratzkemachining

These sound like trivial changes if you provide: a) the post file and b) a sample project to use as baseline for comparing the before and after output.

Message 3 of 25
kratzkemachining
in reply to: ltomuta

Thank you for the reply, Here is the post I am using and the project file in a .txt files as I cannot send .eia files. If you need anything else just ask. 

Message 4 of 25
kratzkemachining
in reply to: ltomuta

Here is actually a file that was hand corrected if you would like a reference on exactly what it looks like. The changes he made are also in ( ) next to the G codes I listed in the initial post. Thanks!

Message 5 of 25

Hi @kratzkemachining .

 

Can you provide the f3d file?
I believe you have all the data you need, but others don't have it all and can't even consider it.

Message 6 of 25

Yes I can, but it seems to me that it is a f3z file? Is that the same thing or do I need to do something else?

Message 7 of 25
ltomuta
in reply to: kratzkemachining

By project I mean the Fusion design (.f3d or .f3z) from which I can
generate the intermediary file needed for post processor debugging
Message 8 of 25
kratzkemachining
in reply to: ltomuta

Yes okay, here is the f3z file attached

Message 9 of 25
ltomuta
in reply to: kratzkemachining

Should G5 P2 be generated only after G43.4 or also for G43.5 ?

Message 10 of 25
kratzkemachining
in reply to: ltomuta

Only after G43.4 is what I am being told

Message 11 of 25
ltomuta
in reply to: kratzkemachining

Actually, there is already a smoothing implementation in your post. To enable it set the useSmoothing property on. Did you try in and want it modified or is not good for you at all as is?

It comes with matching G49s


Message 12 of 25
kratzkemachining
in reply to: ltomuta

I see I have overlooked that G5 because it was posted as G5 P2 not G05 P2, which is what I was searching for. I will start enabling smoothing to fix that problem. Also the G49 needs to be in the end of each unit rather than the beginning of the next unit. ( I am unsure why but that's what worked ) Thanks!

Message 13 of 25
ltomuta
in reply to: kratzkemachining

Try this one. The changes are between comments like this

// Lucian start
var highAccuracy = false;
// Lucian end
Message 14 of 25
kratzkemachining
in reply to: ltomuta

I will try this right now and let you know!

Message 15 of 25
kratzkemachining
in reply to: ltomuta

I just ran it and right away it gave me an "Illegal format" error, I think the control is very picky and needs the G05 P2 right after the G43.4 and not before it. Other than that everything looks correct! Does this mean I should not use the internal smoothing option?

Message 16 of 25

I asked about G05 P2 and he said it should only be in there when using 4 or more axis, which is why it is erroring us out on adaptive 3 axis milling

Message 17 of 25
kratzkemachining
in reply to: ltomuta

I accidentally replied to my own comment and am unsure if you can see those, so I will type it here as well.

 

"I asked about G05 P2 and he said it should only be in there when using 4 or more axis, which is why it is erroring us out on adaptive 3 axis milling"

Message 18 of 25
ltomuta
in reply to: kratzkemachining

Sounds like the built-in smoothing option needs a bit of tweaking to move it after and only after G43.4 in 5 or more axis operations. I will have a new look see at it tomorrow.

Message 19 of 25
kratzkemachining
in reply to: ltomuta

Yes that would be great, here is the code that worked flawlessly on our machine if you would like a reference to see where G5 P2, G5 P0, G61.1, G64, and G49 are in the program. Thanks again for the help! ( I sent it in a .txt file because I cannot send .EIA )

Message 20 of 25
ltomuta
in reply to: kratzkemachining

Ok, I've got it now to the point where it outputs this sequence: 

ltomuta_0-1676606051119.png

Meaning G5 P2 right after and only after G43.4.
But if you really need it moved right before the G1 line then that would be a bit tricky as I would have to bypass an existing validation point and move the activation of the tool length compensation past a point where the Fusion post guys think it should have happened already.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report