Fusion 360 & post processor

OMG Freaking Beautiful! Wow, I appreciate the work…and the documentation. That is just great.

The one stipulation is that needs to be on the newest Marlin firmware of mine or higher >=301. From the use of sticky feedrates.

1 Like

Guffy, You’re awesome. Almost makes me wish I could use fusion 360 (I’m banned from using windows). The docs and code are much clearer now. Hopefully that translates to lots of people making dust, instead of fighting software battles.

1 Like

ok, so I polished the code (removed some unnecessary spaces, etc)
and improved README on the githib (make properties desriptions as tables)

Also I added Resources section at the end with useful links. So anyone can write a postprocessor too :wink:

And I added coolant code for issue coolant-related g-codes (based on M42, by deafult use pins 11 and 6). So as example you can connect a relay to pin 11 that manage air jet valve and a relay for dust sucker to pin 6. Then define mode “Air” to channel A in the postprocessor properties and “Suction” for channel B. Whenever you will set Coolant in the CAM (Air OR Suction)- postprocessor will inject corresponding g-codes for milling sections.
[attachment file=77524]

I think that it’s not bad for now, haven’t additional ideas at the moment to add features in the nearest future. But pls report bugs and I will try to fix if any

PS. By the way it seems that Fusion 360 got a lot of improvements in the CAM section
https://www.autodesk.com/products/fusion-360/blog/november-28-2018-product-update-whats-new/#CAM

Amazing work, it really seems very thorough and complete.

I changed the PP links to including your version. You really might have sparked my interest into trying basic stuff in Fusion CAM again.

Do you control your duwalt with m3/m5 gcodes and use S for set rpm?

I plan to ensure that rpm commands work properly and can implement “rpm boost” feature - a few coefficients that postprocessor may multiple to current rpm when performs plunge/helux/lead in parts of the cut section

Yes, M3 when I use the PID. Never heard of the boost.

It’s my own term which i invented when you had complained that rpms kicked down for short moment when a tool lead in into iron and the current setting of pid can’t help.

Postprocessor in fusion has an event (onMovement) that notifies kind of moving that it going to do. So despite that you can set rpm to an entire section the postprocessor teoretically can tune it inside the section depend on kind of current movement.

Look at Dumper postprocessor. It really nice shows what fusion sends to a postprocessor

I would say don’t worry about it. Very few actually use RPM control, and the PID just needs the three values set properly. I had tuned in free air and verified in wood. I just need to adjust slightly for metals.

I can’t wait to try out your PP, I can’t imagine there are any other options we need? DO you think it is feature complete? I have looked through the PP guide and I think you got it all. So excited.

Ok )

I don’t know. Instead of programming in milling i’m novice. As example started to study fusion about month ago and cam part of it on the last weekend. So i have implemented it as i think it should be.

So probably it’s better to ask expirienced guys does it complete or something is missed.

One suggestion: add the min and max travel for each axis in the header comment. Might help folks with layout if they know the amount of material they need in each direction.

Fusion 360 CAM is my go to right now. I’m in no means good at it but for what I use it for its good. So thank you very much for continuing to develop the code, can’t wait to use it on the next project.

Done


Date: 01.12.2018 19:43:10
Message:
1. added properties to control over produced comments
2. added tools table and ranges table to job header
3. added support Inches mode
----
Modified: MPCNC_Mill_Laser.cps
Modified: README.md


;Fusion 360 CAM 2.0.4860
; Posts processor: MPCNC_Mill_Laser.cps
; Gcode generated: Saturday, December 1, 2018 5:48:24 PM GMT
; Document: ring1 v7
; Setup: Setup2
; 
; Ranges table:
; X: Min=-52.912 Max=52.912 Size=105.825
; Y: Min=7.587 Max=35.413 Size=27.825
; Z: Min=-8.8 Max=15 Size=23.8
; 
; Tools table:
; T1 D=3.175 CR=0 - ZMIN=-8.8 - flat end mill
; T2 D=1.5 CR=0 - ZMIN=-1.5 - flat end mill
; T3 D=2 CR=0 - ZMIN=-2 - flat end mill
; *======== START begin ==========* 
G90
G21
M84 S0
G92 X0 Y0 Z0
; COMMAND_TOOL_MEASURE
; +------- Probe tool -------+ 
M0 Attach ZProbe
G28 Z
G92 Z0.8
G0 Z50 F300
M0 Detach ZProbe
; +------- Tool probed -------+ 
; COMMAND_START_SPINDLE
; COMMAND_SPINDLE_CLOCKWISE
M0 Turn ON CLOCKWISE
; *======== START end ==========* 
;2D Pocket1 - Milling - Tool: 1 - Flat 3.175 flat end mill
; X Min: -52.912 - X Max: 52.912
; Y Min: 7.587 - Y Max: 35.413
; Z Min: -6.8 - Z Max: 15
M400
M117 2D Pocket1
; COMMAND_COOLANT_ON
G0 Z15
G0 X-12.396 Y10.838 F2500
G0 Z5 F300
; MOVEMENT_LEAD_IN
G1 Z2.813 F300
; MOVEMENT_RAMP_HELIX
G1 X-12.415 Y10.809 Z2.67 F333
G1 X-12.463 Y10.729 Z2.558
G1 X-12.494 Y10.669 Z2.529
G1 X-12.522 Y10.608 Z2.5

2 Likes

fixed bugs:

  • calculation Ranges table
  • properly handle spindle speeds (M3/M4) in onSection and in onSpindleSpeed (when there is different ramp in RPM)

I’m going to ask a few technical questions about post processors on autodesk forum.

Have I ask about add our pp to their pp library http://cam.autodesk.com/hsmposts ?

Or maybe even about are they can add it to set of pp deployed with fusion.

Ryan, how you think?

If you do that. i wouod suggest calling it a Marlin Post Processor, since that’s the general audience.

[quote="jeffeb3,post:296,topic:3573"] If you do that. i wouod suggest calling it a Marlin Post Processor, since that’s the general audience. [/quote]

Formally you right. But mpcnc is only one cnc i know that used marlin.


Many diy small cnc machines use grbl with uno+cnc shield. Diy lasers frequently use cnc nano board and i guess grbl too.

 

Ps. That’s finny, but grbl and linuxcnc pp failed to generate gcode when you set a coolant fir a section. Looks like they just didn’t testes the case.

There are people converting 3d printers to do cnc tasks. Seems more likely to be accepted into the core piggybacking on the success of something like Marlin.

the task resolved the enxpected way. I tried to create new topic on https://forums.autodesk.com/t5/hsm-post-processor-forum/bd-p/218 . twice. and both times them had been closed as spam. first had lint to github, but second one, as for me was pretty innocent:
"

pp for marlin

hi
I have implemented post processor and I have a few questions.

  1. I defined extended property descriptions, but it looks like Fusion sort it sometime in very strange way. Looks like it desn’t respect group id and alphabetical order of titles.
  2. A few of properties of my PP are spatial (positions and speeds). I assigned values to these properties in MM (mm/min) and defined extended attributes as “sptial” with corresponding default_mm and default_in. When I switch units in Fusion UI i had expected that Fusion will replace default values to default_in. But it didn’t happen. So I declared in my documentation that user must set properties in MM. How to properly handle spatial properties?
  3. I installed VSC extention HSM. Great tool. It deaclares that it can help to publish PP, but i didn’t find how."

Marked as spam. If you believe this is an error, submit an abuse report.”
I made “abuse report” but it didn’t help.

it’s some kind of a shame from their side. i didn’t expect

Really? Can you tell if it was a computer or a human that made the decision? I know sometimes forums cam have aggressive anti spam bots. Did you put a link in it? Sometimes that’s what will trigger it.