Welcome to Our Community

Some features disabled for guests. Register Today.

UGS Exclude T, M and S in NC with regular expression

Discussion in 'CNC Mills/Routers' started by Biglouie, Apr 29, 2018.

?

Did it work for you?

  1. Yup

    0 vote(s)
    0.0%
  2. No

    0 vote(s)
    0.0%
  3. Dont need it.

    0 vote(s)
    0.0%
  1. Biglouie

    Biglouie New
    Builder

    Joined:
    Apr 8, 2017
    Messages:
    11
    Likes Received:
    2
    Hi all.

    I wanted to exclude some code from the NC file that Fusion360 spits out. I searched, I couldnt find anything, so I went and refreshed my brain on regular expressions.

    UGS Platform allows you to ask UGS to ignore lines in your NC file when it runs.

    If you dont ignore these codes and you use UGS and GRBL, you may find that UGS throws an error and you have to go into the NC file and delete the T, M and S codes before the NC file will Send to the GRBL controller.

    Long story short, you can put a regular expression to tell UGS to ignore them..

    This does it [Mm]\d{1,5}|[Ts]\d{1,5}|[Ss]\d{1,5}

    Add that in to UGS Platform - Prefs - UGS - Controller Options.

    Click ADD, then click on the field that it throws up, paste that in.

    You could create 3 different options, [Mm]\d{1,5} add a new one [Ts]\d{1,5}, add a new one [Ss]\d{1,5}

    Hope it helps someone! Its working for me so far, but only a half day of testing. So use at your own risk! :)

    If anyone can simplify it a little more, would love to hear that. I'm no expert!
     
  2. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    2,899
    Likes Received:
    1,613
    I use Fusion 360 gcode with no modifications in GRBL Panel. When I start the Gcode, it pauses due to the code you refer to. I just hit the play button again and it skips over that code continues on until the end of the job.
     
  3. Biglouie

    Biglouie New
    Builder

    Joined:
    Apr 8, 2017
    Messages:
    11
    Likes Received:
    2
    Hey Craig...Sounds good. I hadn't checked to see if I could click Play again each time it happens. But with my gcode having about 5 or 6 T, S or M codes in it, I'd soon get fed up with clicking play again :)

    Which GCode sender are you using? Universal Gcode Sender Platform?
     
  4. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    2,899
    Likes Received:
    1,613
    I have historically used GRBL Panel, but recently I have been using Estlcam on a trial basis so I am saving Fusion projects as DXF and STL files and letting Estlcam generate the gcode.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice