Welcome to Our Community

Some features disabled for guests. Register Today.

Delay after servo move

Discussion in 'DrawBot' started by Adam Haile, Sep 19, 2019.

  1. Adam Haile

    Builder

    Joined:
    Apr 22, 2019
    Messages:
    5
    Likes Received:
    2
    I'm using cprezzi's grbl-servo: cprezzi/grbl-servo
    Works great with only needing to use M3/M5 for servo control but there's very little to no delay between pen down and pen move. I know that I could use something like LaserWeb to inject a G4 dwell but I really am used to LightBurn which is meant for lasers specifically and has no way to add that dwell.
    Anyone able to make this work with *just* M3 commands? even if it requires a firmware mod, that's fine.
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    Aug 6, 2013
    Messages:
    1,299
    Likes Received:
    655
    the right place to do it is in the Gcode.
    does lightburn have a 'postprocessor' section where you can edit the Gcode generation? or is it maybe opensource?
    if not
    a decent text editor like Notepad++ can do a search and replace to add a dwell after the M3 Sxxx lines.

    why do you want a dwell after pen down? maybe there is another way to solve it (-:
     
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    1,919
    Likes Received:
    996
    You need a G4 dwell to give the servo time to move to the correct position

    You could just use a text editor and find-replace instances of "M3" with "M3\nG4 Pxxx"
    Pxxx ie the key, no two systems are the same, more travel distance, faster or slower Servos etc. This allows you to customise the wait so you dont run short, nor waste time.

    Speak to the lightburn devs he'll add it in no time
     
  4. Adam Haile

    Builder

    Joined:
    Apr 22, 2019
    Messages:
    5
    Likes Received:
    2
    Yeah.... I'm just being lazy and was curious if I could get it to work without any gcode hacking and instead just straight for lightburn. Though, I actually figured out how to do it with lightburn last night which is to use a feature meant for thick materials that turns the laser on without moving for a brief amount of time.
     

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