Welcome to Our Community

Some features disabled for guests. Register Today.

Teach mode

Discussion in 'Control Software' started by StigLindberg_, Aug 11, 2022.

  1. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Hey Openbuilds.

    Is it possible or is there a plugin for the Openbuilds controller which allows manual programming, just like teach mode on industrial robots.

    It would facilitate my work with the way we use our CNC milling machine in the company I work for, We mill plastic items that are not always the same in size, so a teach mode would be great.

    So far I have just manually taken the coordinates and made my own gcode file with tool path.
    I would wish there was a plugin or a way to jog the router and save the position to the gcode in the controller, like step by step.

    Best Regards
    Stig.
     
  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
    You can do that with bCNC
    GitHub - vlachoudis/bCNC: GRBL CNC command sender, autoleveler and g-code editor

    I mapped some function keys to the save point functions, cant recall exactly how to do that, once set it just works (for some years now). I use it with the camera function for digitizing drawings (-:

    Looks like the relevant buttons are not documented (yet, I will try to edit the wiki)
    I have F7 as RRAPID and
    F8 as RFEED in the shortcuts setup.
    These keys then save the current position as a 'rapid to here' or 'feed to here' respectively.
     
    #2 David the swarfer, Aug 11, 2022
    Last edited: Aug 11, 2022
  3. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Thank you I will look at it.
     
  4. 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
    note that bCNC also has a bunch of buttons for adding drilling, pocketing etc, so you can digitize an outline and then add a pocket or flatten operation to that outline.
    upload_2022-8-11_10-55-13.png
     
  5. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Thank you again for showing me this software.

    But it still not do what I want, I want a Coordinate recorder, I want to jog my cnc router to a position and press on a button to log the position to af sheet, and go to another point and again log the position.
    I think its some like a macro recorder I looking for, it will do the manual programming much faster for me.
     
  6. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    I found a plugin for Mach3 are what I´m searching for. Mach3 have a plugin called Jcode, it do that I want. You can jog around and record the coordinates. Some like that for Openbuilds controller I want ->
     

    Attached Files:

  7. 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
    hehe, technically it does log the position, just in Gcode (-:
    (I convert the Gcode to a DXF then modify that in Sketchup before generating new Gcode)

    It is possible to write (or have written for you) a plugin for bCNC that does the logging to a CSV file, it is all open source Python so it is quite doable. Even hacking the core source to do it can be done, just change the target of the point save from the internal editor to an external file.

    Another way to do it is by thinking about the reference surfaces and splitting the code into chunks that run on different WCSs. You can then 'probe' and set the different WCS off the actual part without having to redraw for each one.
    So if you need machining on the left side and right side that are relative to the (left/right) edges of the part but not relative to each other, then the left can be G54 and the right G55 and the actual length of the part no longer matters. (just be very careful about setting the WCS when you probe and make sure you are doing the correct one!)

    Watch this for details on doing this on a steel casting, all the castings are different so require special care.
     
  8. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    It doesnt exist in Control, but it can be done with a javascript macro and the gcode editor. If I have time today, I'll take a look at it.
     
    Peter Van Der Walt likes this.
  9. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Simple proof of concept using the capture point method. It obviously would need to be more robust, but a working starting point for sure.



    Need to think about this, but might make the simple version free on my website and the more advanced tracing available at a small cost.
     
    Mark Carew, StigLindberg_ and Giarc like this.
  10. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Oh man that is perfect and all I want.

    Is it something you want to go ahead with or is it something I can be instructed on how to set up in the openbuilds controller software?

    I open for make a payment for that :)

    Best Regards Stig.
     
  11. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    I worked on it a bit more yesterday and today. I'll post a link when its done.
     
  12. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Thank you so much for your work :)
     
  13. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Hey sharmstr.

    Are there any new updates on the project :)

    Best Regards
     
  14. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    Its close. I went out of town last week and just returned last night. I'll have something soon.
     
  15. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    I think I got it now. I need to test on the machine tomorrow. There were a lot of little things that had to be programmed in which wouldnt have to be if I were the only one who would be using it. The big ones were support for mm or inches and dont record the coordinates if the machine it still moving. Anyhow, I should have something posted tomorrow.

    upload_2022-8-23_16-50-7.png
     
  16. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    That sounds really good, many thanks for your work. I will look forward to see your project. Many Thanks.
     
  17. Memed

    Memed New
    Builder

    Joined:
    Jun 1, 2023
    Messages:
    1
    Likes Received:
    0
    I need this macro can you help me
     
  18. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    @sharmstr can you help this man ? :) Thanks.

    Best Regards Stig.
     
    sharmstr and Peter Van Der Walt like this.
  19. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
  20. StigLindberg_

    Builder

    Joined:
    Jun 21, 2022
    Messages:
    23
    Likes Received:
    7
    Thank you very much :)
     

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