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


Results 1 to 6 of 6

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

  1. #1
    Member
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    106
    Downloads
    0
    Uploads
    0

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




    Similar Threads:


  2. #2
    Member The Engine Guy's Avatar
    Join Date
    Jun 2008
    Location
    UK
    Posts
    1838
    Downloads
    0
    Uploads
    0

    Default 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

    Attached Files Attached Files


  3. #3
    Member
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default 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 M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing-pp-screenshot-jpg


    adding
    var pFormat = createFormat({prefix:"P", decimals:0});
    Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing-pp-screenshot2-jpg

    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

    Attached Thumbnails Attached Thumbnails Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing-pp-screenshot2-jpg   Adding M11Px/M10Px to a Fusion PP ? I tried to edit with HSM : Visual Studio ,failing-pp-screenshot-jpg  


  5. #5
    Member
    Join Date
    Jan 2018
    Location
    Canada
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default 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 !!

    Last edited by Letomoto; 01-27-2020 at 09:41 PM.


  6. #6
    Member The Engine Guy's Avatar
    Join Date
    Jun 2008
    Location
    UK
    Posts
    1838
    Downloads
    0
    Uploads
    0

    Default 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



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

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

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