Welcome to Our Community

Some features disabled for guests. Register Today.

[Solved] Laser Offset

Discussion in 'Laser Cutters' started by Benjamin Vg, Dec 7, 2023.

  1. Benjamin Vg

    Benjamin Vg Well-Known
    Builder

    Joined:
    Jan 13, 2016
    Messages:
    136
    Likes Received:
    10
    Hello,

    I have recently added a laser crosshair on my workbee CNC. The CNC is controlled by a duet 2.
    With lightburn, I have been able to use the laser offset functionality but as I have wifi issues in my garage I prefer to still upload the file on my machine in place of controlling it from lightburn directly to avoid disconnections.

    But, when I save the gcode from lightburn it appear that this offset isn't applied.
    How could I do to do the same feature? I guess that I should be able to use my Before / after gcode scripts section of lightburn but I didn't find the correct code to add. (Except if they are an option in lightburn for that?)

    I have tried to something like this
    - G0 X500 Y500 ; move to 500, 500. => Machine coordinate (G55) 750, 750. Tool position (G54): 500, 500
    - G57 ; Switch to the G57 coordinate system => Machine coordinate (G55) 750, 750. Tool position (G57): 500, 500
    - G10 L2 P4 X100 ; set an offset of 100 in X. => Machine coordinate (G55) 750, 750. Tool position (G57): 600, 500

    The two positions Machine/tool are the positions I see in the UI.

    I have also tried to switch to G54 or G55 coordinate before setting the G10 but it always just do an offest from the machine coordinate not from the current position. How could I do that?

    REgards,
     
  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,784
    Likes Received:
    1,364
    Try L20 - see the Duet g-code wiki in the link below

    GCode dictionary

    G10.PNG

    Alex.
     
    Benjamin Vg likes this.
  3. Benjamin Vg

    Benjamin Vg Well-Known
    Builder

    Joined:
    Jan 13, 2016
    Messages:
    136
    Likes Received:
    10
    Once more you are the CNC master.
    Thanks a lot for your help each time you rocks!
     

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