Welcome to Our Community

Some features disabled for guests. Register Today.

Message pop-up with G-code

Discussion in 'Control Software' started by Sword, Apr 28, 2023.

  1. Sword

    Sword New
    Builder

    Joined:
    Apr 1, 2023
    Messages:
    22
    Likes Received:
    2
    Hello,

    I know there are ways to do this with g-code on numerous other control systems, but is there a way to have a message window pop up in OB Control using GRBL's g-code? For example, a simple warning to do something, with an OK button to continue. I took a look at this Java Script, but it displays the alert upon opening the file. The desired result is for the message to show only when the line in the g-code is reached.

    Something like... MSG "Do this and hit OK to continue". Been searching the forums, but coming up short.

    Scott
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,507
    Likes Received:
    4,422
    Natively no, will have to be a Javascript Macro
    It CAN do what you need, but you'd have to build it
    Something like parsing the editor content for your marker, splitting the gcode and running the gcode before and after the marker as seperate jobs.
     
  3. Sword

    Sword New
    Builder

    Joined:
    Apr 1, 2023
    Messages:
    22
    Likes Received:
    2
    Thanks for the confirmation Peter. That's kind of what I thought might be the case after trying the LinuxCNC (MSG,) option and seeing it run right past it. It does show in the console though, so as a temporary solution while waiting for the out of stock IOT relay, a M0 could be used after the message.

    A bit odd, but M0 (MSG, TURN ON THE ROUTER AND RESUME JOB) on the same line works to show it on the last line of the console while waiting for "RESUME".

    Scott
     

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