Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing
Hello group , i am trying to add M11Px/M10Px to a Fusion Post Processor to setup my laser trigger quick , I tried many ways to edit with HSM : Visual Studio and failing ...
I found PPs for other softwares like DotG , Aspire etc and they work fine to add the M10/M11 and it works with Mach3 but i didnt found PPs using the M11/M10 to prepare g-code with Fusion360...
I can see the other CAM softwares are using a .PP format of the PostProcessors but Autodesk is only using .CPS and it is waaaayyyy more complicated to add M11/M10 to every places when it is doing Rapids in between traces.
Am i missing a point? is there a way to add a script in between each moves G1-G0 directly into Fusion360 CAM instead of editing a post processor ? I am wondering why i didnt found any PP using M11/M10 , am i just too dumb ?
I would appreciate some help !
The .PP format is sooooo simple to edit !!
but trying to edit the .CPS post processor is just giving errors , even using the Autodesk HSM system i found to edit them and i followed tutorials ive seen...
Re: Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,fai
Bit baffled by your problem, there are anumber of PP already for Laser use, here is some code as an example, I just did two simple 2D contours and the code is here, is this close to what you need? It does generate an M10 and an M11 for the Laser On/Off and does simple G code for the X and Y moves !
The .cps Post Processor file that was used to generate the above code is attached here in a Zip file, simply open the Zip file and then copy and paste the .cps file into your "Personal" Post Processor Library.
Re: Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,fai
So this is the part that will automatically switch M10 to 11 when power is on ? is there a way have the PP tell the P1 next to the M10 ? could i just replace the qFormat by a pFormat in the "conditional(power, qFormat.format(cuttingPower)));
adding
var pFormat = createFormat({prefix:"P", decimals:0});
i am so really getting confused in these text codings , when i tried to add lines of stuff in them they always reported errors and getting me lost ....
usually the laser power PWM is getting called by S in Mach3 , but on yours is a Q , would just replace the Q variable to a S in the PP ?
Re: Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,fai
i just tried the code from your PP and it turns ON the laser just when traveling
Edit: just inverted the 10 with the 11 in the line 782 and it all works out not needing the P part of the M11/M10 .... jeeeesuuuussss that i lost many hours trying to integrate these things .... but NOT EVEN NEEDED !!! i feel such shamed by myself.....