Welcome to Our Community

Some features disabled for guests. Register Today.

Loops in G Code

Discussion in 'Control Software' started by Adrian Tomren, Jun 20, 2023.

  1. Adrian Tomren

    Builder

    Joined:
    Jun 16, 2023
    Messages:
    14
    Likes Received:
    0
    Hi, I have a task where I need to loop between some points and was wondering how I could do that?
    I have an ACRO1515, without a tool (we just need the movement).
    I've been looking at subroutines and "label-jumping" but can't seem to figure it out.
    Is there anyone who could give me an example of how the machine could "loop" between, lets say; (200,200) and (600,600)?

    Thanks
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,430
    Likes Received:
    1,907
    GRBL firmware cannot do this, you have to do it in the GUI software (CONTROL/bCNC/UGS etc).
    In CONTROL, you can write a macro that will do your moves with delays between them.
    or you can write multiple macros that do one move for each click (safer).
    bCNC can do macros too, I don't knwo about other GUI's.
     
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,870
    Likes Received:
    4,283

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