Welcome to Our Community

Some features disabled for guests. Register Today.

Python-based control GUI

Discussion in 'Control Software' started by prometheus13, Mar 5, 2023.

  1. prometheus13

    Builder

    Joined:
    Mar 5, 2023
    Messages:
    4
    Likes Received:
    0
    Hello everyone,
    This is my first post here and I have a question regarding machine control. As part of a hobby group, we got a C-beam machine to use as a 3-axis motion control system to try out different project ideas. One of these was to create an automated adhesive applicator for bonding objects to a base layer. We were thinking of using a syringe mounted on the Z-axis to push out the adhesive according to predefined bonding patterns (simple squares/rectangles) where the G-code would specify the XY pattern. The OpenBuilds CONTROL software has its own UI but we were wondering if we could make a custom Python-based UI that would allow us to control both the syringe and the CONTROL software (which would run the XY pattern in the background) as the latter can only control standard Z-axis components (router, laser etc.).
    Any suggestions? Many thanks!
     
  2. 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
    prometheus13 likes this.
  3. prometheus13

    Builder

    Joined:
    Mar 5, 2023
    Messages:
    4
    Likes Received:
    0
  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
    also look at bCNC which is entirely Python and accepts Python plugins
     
    prometheus13 likes this.
  5. prometheus13

    Builder

    Joined:
    Mar 5, 2023
    Messages:
    4
    Likes Received:
    0
    Thank you for this suggestion. So I had installed OpenBuilds CONTROL after assembling the system and was using it to test the motion which seems to be okay. For bCNC, would I need to reinstall the firmware on the BlackBox and then use bCNC for motion control? Sorry I'm new to CNC so please pardon any redundant questions.
     
  6. 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
    no reinstall of anything, Blackbox is a grbl /grblHAL system and bCNC is a GUI for grbl and grblHAL.
     
  7. prometheus13

    Builder

    Joined:
    Mar 5, 2023
    Messages:
    4
    Likes Received:
    0
    So I've been trying out bCNC and it has been great to work with but I ran into an issue. The bCNC wiki (Customize Events) says that it can execute some user software when certain events are raised. To test this, I added the path to another Python code in the "onstart" field as I wanted it to run at the same time as the beginning of the gcode execution (as instructed). However, that code did not run but the gcode ran as usual. Am I missing something here?
     
  8. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

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

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