584,866 active members*
5,091 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Autodesk CAM > Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2018
    Posts
    106

    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...



  2. #2
    Join Date
    Jun 2008
    Posts
    1838

    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 !

    (1051)
    (HC-3375 OP1 REV)
    G90

    (2D Profile1)
    M3
    G54
    G0 X-17. Y11.34
    M10 Q64
    G1 X-22. Y20. F1000
    G3 X-30. Y12. I0. J-8.
    G1 Y-12.
    G3 X-22. Y-20. I8. J0.
    G1 X22.
    G3 X30. Y-12. I0. J8.
    G1 Y12.
    G3 X22. Y20. I-8. J0.
    G1 X-22.
    X-27. Y11.34
    M11
    G0 Y48.66
    M10 Q64
    G1 X-22. Y40. F1000
    X50.
    Y-40.
    X-50.
    Y40.
    X-22.
    X-17. Y48.66
    M11
    M5
    M30

    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.

    Regards
    Rob

  3. #3
    Join Date
    Jan 2018
    Posts
    106

    Re: Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,fai

    does these codes do not need the Px in them ? is Mach3 adding it himself to the M11 ?

    with the .PP i used in Aspire and DotG they are telling the complete M11P1 and M10P1

    G00G21G17G90G40G49G80
    G71G91.1
    G94 M10P1 F2400.0
    X0.000Y0.000
    S100
    M10P1
    G00X9.650Y-28.982
    M11P1
    G1X9.650Y-28.982
    M11P1
    G1X10.786Y-28.982
    G1X10.973Y-28.886
    G1X11.120Y-28.782
    G1X8.717Y-28.782
    G1X8.490Y-28.582





    And does the UCCNC PP is gonna do a right coding for Mach3 ?

  4. #4
    Join Date
    Jan 2018
    Posts
    106

    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 ?

    will try right now your PP and come back

  5. #5
    Join Date
    Jan 2018
    Posts
    106

    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.....

    782 writeBlock(mFormat.format(power ? 11 : 10), conditional(power, qFormat.format(cuttingPower)));


    I am really telling you thanks , it was way more simpler than i thought ..... sorry for that but i am pretty new to this !!

  6. #6
    Join Date
    Jun 2008
    Posts
    1838

    Re: Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,fai

    Glad to see you have it sorted now, some of it is not as complicated as it first seems

    Regards
    Rob

Similar Threads

  1. Fusion 360 Post for NC studio needed thanks
    By asp60 in forum Autodesk Post Processors
    Replies: 7
    Last Post: 04-01-2020, 01:13 AM
  2. Visual Studio 2008 and Plug-Ins
    By Al_The_Man in forum Mach Wizards, Macros, & Addons
    Replies: 5
    Last Post: 10-11-2015, 05:24 AM
  3. Need Working Mach3 SDK for Visual studio 2010
    By ephobb in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 10-09-2015, 02:56 AM
  4. KMotionCNC with newer Visual Studio? (2012,2013,2014,etc)
    By Phy6 in forum Dynomotion/Kflop/Kanalog
    Replies: 1
    Last Post: 03-31-2014, 06:06 PM
  5. Chook coding in Visual studio .net
    By EdOsgood in forum Mastercam
    Replies: 0
    Last Post: 10-01-2005, 09:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •