Welcome to Our Community

Some features disabled for guests. Register Today.

Gcode modifications

Discussion in 'General Talk' started by factory, Oct 27, 2024.

Tags:
  1. factory

    factory New
    Builder

    Joined:
    Aug 26, 2024
    Messages:
    11
    Likes Received:
    4
    I have a question about turning the laser head on and off during G0 transitions. My setup is Lead1515, BlackBox x32, OptLasers PLH3D-XT8. The BlackBox is connected to Lightburn where when I want to burn two simple objects during the transition between them the laser continues to work. I understand what the problem is, before each G0 command M5 should be generated and immediately after it M4. However, I wonder if there is any possibility to configure BlackBox so that it pauses the laser on G0? Or maybe there are other possible solutions apart from manual modification of gcode or through a script. I would be grateful for any help.
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,506
    Likes Received:
    4,422
    Normally not like that no: should be M4 right at the start of the job, M5 all the way at the end. In between its G0 moves = off (travel), G1/2/3 moves = laser on (feed moves)

    Have a read (and check that you remembered to enable it) to learn how Grbl/grblHALs laser mode works https://github.com/gnea/grbl/wiki/Grbl-v1.1-Laser-Mode
     
  3. factory

    factory New
    Builder

    Joined:
    Aug 26, 2024
    Messages:
    11
    Likes Received:
    4
    Thank you for your quick reply ... I guess I didn't explain my problem well. When the $32=1 option is enabled and the project is started directly from Lightburn, the head works at maximum power immediately. I understand why it behaves like this - cgode starts with M4 and ends with M5. It ignores G0 as a transition between paths. The head responds well to M4 and M5 commands, turning the laser on and off, but I am unable to manage the head's power with Openbuilds Control (option from UI). It doesn't matter whether I choose 5% or 100%, the head always works at maximum power. Looking at the generated code from Lightburn, I only see commented lines like "; Cut @ 3500 mm/min, 20% power" Instead of M4 S200.Is there anything I can do to make the laser work properly?
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,506
    Likes Received:
    4,422
  5. factory

    factory New
    Builder

    Joined:
    Aug 26, 2024
    Messages:
    11
    Likes Received:
    4
    I messed up at the first point ... I connected the head to Tool and not to PWM. Now everything works fine. Thanks for your help.
     
    Giarc likes this.

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