TimPaterson / Fusion360-Batch-Post

Fusion add-in to post all CAM setups at once, optionally dividing them into folders.
The Unlicense
132 stars 26 forks source link

Files are not getting joined #30

Closed Coregas closed 2 years ago

Coregas commented 3 years ago

I am using pikocnc post processor and I have this issue where different operations in one setup are not getting joined.

if I dont check the "use individual operations" the operations are joined but no tool change codes are added.

If I check "use individual operations" only the very first operation is present in the finished file. I can provide the post processor file via email. Please ping me.

I am using the free personal version of Fusion.

I don't get any error messages or anything.

TimPaterson commented 3 years ago

With individual operations unchecked, you're just doing Fusion 360's normal post processing on each setup. (The purpose of PostProcessAll in this case is just to do multiple setups.) You should be getting exactly the same output as running the native Fusion 360 post process command.

When individual operations is selected, it would be interesting to compare the G-code output with PostProcessAll against the output from Fusion 360. You may have to zip them or change the extension to .txt.

Coregas commented 3 years ago

ok so this is weird, after starting up my pc next day, I can't generate g-code without individual operations. Down below I show you that I expect to have a boring operation with one tool and then a flat operation with another tool. operations

These are the configs that I use, as far as I understand M6 is the needed code to do the tool change so I added it here as showed by the screen shot. config This is the file generated for this setup, it only contains the boring operation, and one tool change. It does not contain the second flat operation. with individual operations.txt

This is the error that I get if I uncheck the individual operations setting. without individual operations error

I want to generate one file for multiple operations with multiple tools for one setup so I do not need to run multiple files. As this is the free version of Fusion, I can only generate files which contain multiple operations that are done by the same tool.

below I am attaching the same boring operation generated with fusion using my post processor. generic fusion operation file.txt

TimPaterson commented 3 years ago

I think you just need to change "ending sequence" G-code list to only be G30. The M9 is messing it up because the post is putting one in just before the tool change. It does mean there will not be an M9 at the end when it's done, so you may have to add it or turn off coolant manually.

Coregas commented 3 years ago

Ok I did some testing (only on generating the G code, I haven't ran it on my machine yet) If I remove everything from Tool change sequence and only add M30, the G-code for my novice eyes looks perfect, as the tool changes are not duplicated and the generated two operations are concatenated together. The M30 at the first operation end is being removed and only the one at the end of the last operation is left. I'll try it out on my machine and see how it works. Thanks so much for this software!

Oh and btw I am adding the g-code generated with the parameters mentioned. Maybe you could see that there is something wrong. Fusion it self adds the tool changing sequences and turns the coolant off. new code.txt