Welcome to Our Community

Some features disabled for guests. Register Today.

Relay-1 Gcode command?

Discussion in 'Control Software' started by Robert Linn, Apr 14, 2024.

Tags:
  1. Robert Linn

    Builder

    Joined:
    Oct 25, 2023
    Messages:
    16
    Likes Received:
    2
    What operates Relay-1 using the Openbuilds Controller Blackbox X32?
    I know M3/M4 operate Relay-2 and M8/M9 operate the coolant.
    Is there specific gcode that operates just Relay-1?
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,871
    Likes Received:
    4,283
    M3/4 = on, M5 = off. Typically used as a Tool Enable / Plasma trigger
     
  3. Robert Linn

    Builder

    Joined:
    Oct 25, 2023
    Messages:
    16
    Likes Received:
    2
    That's pretty much what I thought, M3/M4 and M5 operate both Relays. I'm using Relay-2 for the spindle and was hoping there would be another way to operate just Relay-1.
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,871
    Likes Received:
    4,283
    In stock config tool enable won the vote. But if you have specific need you can compile grblHAL with new pinmap or custom plugin to do your bidding
     
  5. Robert Linn

    Builder

    Joined:
    Oct 25, 2023
    Messages:
    16
    Likes Received:
    2
    Just to be clear for my understanding of the differences between the 2 relays and the Tool Enable and Coolant:
    1. Both relays, Relay-1 and Relay-2, are operated by M3 (On Forward), M4 (On Reverse) and M5 (Off)
      1. Relay-1 offers 2 terminals: COM and Signal (NO)
      2. Relay-2 offers 3 terminals: COM, Signal (NO) and Signal (NC)
    2. Both the Tool Enable and Coolant are operated by M8 (On) and M9 (Off)
      1. Tool Enable provides a 3.3v output.
      2. Coolant provides a 24v output.
    Thanks again for your insight and patience.
     
  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,871
    Likes Received:
    4,283
    Relay 1 - used to arm/disarm VFD ; or trigger Plasma Inverter (turning on the Tools that needs a dry contact)

    Is same logical output as

    Tool Enable (3.3v signal) used to trigger IoT relay (needs a signal, not a dry contact) to turn on Routers

    (on for m3 and m4, off for m5)

    ---

    0-10v analog signal is for VFDs speed controls.

    Is same logical output as

    Pwm output (for lasers power, dc spindles speed, servos position for pen lifts)

    (scales output based on S-value in gcode)

    ---
    Relay 2 by default configured as Direction, also just a dry contact (mainly for VFDs, but almost never used as most folks don't bother wiring up reverse as it's almost never used in conventional tooling)

    (M3 vs M4 / fwd/rev)

    ---
    Coolant is for misting nozzles, dust extractors that sort of thing
    (M8/m9)

    upload_2022-12-12_16-38-37.png
     
    #6 Peter Van Der Walt, Apr 15, 2024
    Last edited: Apr 15, 2024

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