Welcome to Our Community

Some features disabled for guests. Register Today.

blackbox & Plc

Discussion in 'General Electronics' started by luca pantini, May 15, 2023.

  1. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    Good morning
    Using Acro 1010 and black box 32, I build a transplanting machine, that works perfect.
    In order to use it in my OEM, I need to start, pause, resume and stop the motion of acro system,
    using clean contact (or 24vdc) coming from OEM plc.
    It’s possible?
    (May be with door sensor input….)
     

    Attached Files:

  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Not easily no (custom firmware config, repurpose inputs like door, endstops, probe perhaps), but any chance your PLC can output serial commands? Grbl v1.1 Interface ?
     
  3. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
  4. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    Can i use door sensor to pause and resume ?
     
  5. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Yes, but the gcode feed might no be where you need it / need to start
     
  6. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    • ~ : Cycle Start / Resume
      • Resumes a feed hold, a safety door/parking state when the door is closed, and the M0 program pause states.
      • Command is otherwise ignored.
      • If the parking compile-time option is enabled and the safety door state is ready to resume, Grbl will re-enable the spindle and coolant, move back into position, and then resume.
      • An input pin is available to connect a button or switch.
    • ! : Feed Hold
      • Places Grbl into a suspend or HOLD state. If in motion, the machine will decelerate to a stop and then be suspended.
      • Command executes when Grbl is in an IDLE, RUN, or JOG state. It is otherwise ignored.
      • If jogging, a feed hold will cancel the jog motion and flush all remaining jog motions in the planner buffer. The state will return from JOG to IDLE or DOOR, if was detected as ajar during the active hold.
      • By machine control definition, a feed hold does not disable the spindle or coolant. Only motion.
      • An input pin is available to connect a button or switch.
     
  7. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    ok i will start manually the g-code is not a problem,
    but i need to pause and resume the job
    how can i configure pause and resume with door sensor?
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Wizards and tools > Firmware flashing tool > 3 axis with Door firmware option should do it
    See BlackBox X32 to learn more

    Syncing when to pause with an external controller would be the tough bit - the gcode is going to stream and fill the buffer etc. But looking forward to see how you work around it
     
  9. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
  10. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Please what? Sorry?
     
  11. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    Using door senso the job stop but did not resumed
    It’s possible to use arduino uno connection trough serial port ?
     
  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
  13. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    my plc can use serial connection
    as show in attached file
     

    Attached Files:

  14. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    wiring 2
     

    Attached Files:

  15. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    For support for the PLC and how to use it, you would have to refer to the PLC vendor/reseller for tech support. Some PLCs has gcode modules, some has raw serial (then you need to implement the grbl protocol yourself as described in the Grbl Wiki)
     
  16. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    i need help how can pause and resume ?
    it is impossible that there is no solution !!
    no way to use some pins to do that ....
     
  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Check earlier in the thread, around post #8?
     
  18. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    Sorry it is my fault but
    I need to have a physical button
    NO: pause job
    NC: resume job
    Or vice versa
    The door sensor only pause job; when I close the job didn’t resume !!
     
  19. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    What is the role of the PLC? From the animation I see a conveyor belt, could you not run that from the BlackBox too? Mixing multiple different controllers into one system is always possible, but not without a bit of engineering work. "Hacking" features like the Door input, comes with limitations (it is not its intended use after all)

    You may need to take a step back and do a little planning and engineering on the solution as a whole.

    If it was my project, I'd run CONTROL on a PC, to control the XY moves and grippers. Nice UI in Javascript macro
    If I could integrate the conveyor (spare axis on BlackBox) it would be even easier (move it as a Z or A axis) but if not, I'd use an input on the PLC instead and trigger that with a signal from the BlackBox (Coolant or Spindle for example). What controls where the pot stops on the conveyor?
     
  20. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    The potting machine and its conveyor belt need to be master because of various formats and speed.
    All pots comes out from the machine with the same distance, but they have to became twins for transplanting.
    The acro need to be slave
    So the very simplest thing it’s to pause and resume job every time that pots became twins.
    As I already said it is my fault
    Never mind, multiple inputs, multiple outputs, serial, iot……
    Just like a autonomous vehicle with only hand break

    the potting machine and his conveyor belt
     
  21. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    Well the "right" way to do it, is to create a plugin that does "exactly" what you need it to do: GitHub - grblHAL/plugins: Plugins overview but that is going to take some coding work

    Somewhere you need something to sync the two systems so that transplant happens when the conveyor is in the right location. Something has to be the "boss". If that has to be the PLC, then ideally you want it to be the Serial master, sending commands to the grbl slave controller. Can be full position commands, or stop/go, whatever it needs. For example Motion Control / Positioning Control for PLC using Arduino :
     
  22. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0
    Hello, may I know what are the commands (g-code) to activate or deactivate the two outputs (relays) of the BlackBox32
    Thank you
     
  23. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,047
    Likes Received:
    4,123
    M3/4/5, but can be remapped in grblhal with a custom pin map
     
  24. luca pantini

    Builder

    Joined:
    Mar 21, 2023
    Messages:
    14
    Likes Received:
    0

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