Welcome to Our Community

Some features disabled for guests. Register Today.

software help

Discussion in 'Control Software' started by Phil Harris, Dec 6, 2023.

Tags:
  1. Phil Harris

    Builder

    Joined:
    Nov 21, 2023
    Messages:
    4
    Likes Received:
    4
    Hello I have built a backstop for my brake press but I'm having problems creating G code program that I can then save for future jobs how do I even start the program off all I have is one axis Y that goes in and out. All I want to do is make programs it for different stops for different parts

    i was thinking
    Y100
    Y20
    Y-20

    etc

    so its moves 100mm then 20mm then back 20mm

    do i need to get certain software to write this for the open builds controller?
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,478
    Likes Received:
    1,920
    you can create Gcode macros for OpenBuildsCONTROL

    you can move in absulute mode (the default)
    G21 G90 G0 Y100
    moves to the position 100mm from the WCS zero position (1)

    similarly
    G21 G90 G0 Y200
    moves to 200mm from the zero position

    You can move incrementally
    G21 G91 G0 Y10
    moves 10mm in the positive direction (like the jog buttons do, do you actually need more than the jogs buttons?)
    G21 G91 G0 Y-10
    moves 10mm back (toward 0)

    note that I am putting the modal commands G21 and G90 or G91 in every macro, this is the safest way to do it as you don't know what the previous command was unless you check it everytime. I cannot remember to do that but I can remember to always put the command I want into the macro and knwo that it will always work. This is how all macro programs should start, setting the modes you need, metric/inch,abs/inc,plane (G17) and so on.


    (1) the WCS zero is wherever YOU set it. search these forums for 'fake the home' for info on howto and making this easy and repeatable.
     
    Phil Harris likes this.
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,126
    Likes Received:
    4,329
  4. Phil Harris

    Builder

    Joined:
    Nov 21, 2023
    Messages:
    4
    Likes Received:
    4
    Thank you very much for the reply I will give it a go.
     

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