Welcome to Our Community

Some features disabled for guests. Register Today.

BlackBox X32 V1.2 Relays ?

Discussion in 'Controller Boards' started by that-jim, Nov 19, 2022.

  1. that-jim

    that-jim Journeyman
    Builder

    Joined:
    Apr 19, 2020
    Messages:
    143
    Likes Received:
    148
    The relays on the blackbox x32 that I have are not working as I would expect.

    With no power to the box 'relay 1', marked NO has continuity between the com and NO outputs. When you power the unit up the the there is still continuity and the tool light is off until you send a M3S1000 then it opens and the tool light turns on.

    I have tried inverting the pin with the $16 bit mask and this does invert the operation of the relay and light with the box powered up. But the relay still closes when the unit is powered off, so it would enable the tool with the box is powered down.

    Is this the way the relay is intended to work? Is there additional info on how this is to be used as a tool enable relay?
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    Let me double check on Monday :) sorry not near one at the moment
     
  3. that-jim

    that-jim Journeyman
    Builder

    Joined:
    Apr 19, 2020
    Messages:
    143
    Likes Received:
    148
    I am wondering if anyone from openbuilds has been able to verify what I am seeing with these relays? Sure looks to me like the relays are not connected properly to the wiring terminals or maybe the wrong relays were installed.
     
  4. Mark Carew

    Mark Carew OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jun 28, 2013
    Messages:
    2,742
    Likes Received:
    2,407
    Hi Jim, could you please submit a ticket for this relay issue your seeing, so we can be sure this gets in the support que and were able to get back to you quickly.
    Thanks in advance for your help
     
  5. that-jim

    that-jim Journeyman
    Builder

    Joined:
    Apr 19, 2020
    Messages:
    143
    Likes Received:
    148
    Ok, I have submitted a ticket.
     
    Mark Carew likes this.
  6. Mark Carew

    Mark Carew OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jun 28, 2013
    Messages:
    2,742
    Likes Received:
    2,407
    Thank you sir :thumbsup:
     
  7. pcgarret

    pcgarret New
    Builder

    Joined:
    Oct 6, 2021
    Messages:
    2
    Likes Received:
    0
    Hi
    Is there any more info on this?
    I just received the black box 32 and I'm working on setting it up for plasma cutting and I too am seeing relay 1 as normally closed with power on.
    This will trigger the torch the moment it is turned on.
     
  8. that-jim

    that-jim Journeyman
    Builder

    Joined:
    Apr 19, 2020
    Messages:
    143
    Likes Received:
    148
    Contact tech support they can give you instructions on a fix for the incorrectally wired relay.
     
    Peter Van Der Walt likes this.
  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070

    You can do either of the following:
    1) Invert the Pin in software ($16=1) but note that when powering down the BlackBox it might go back to the closed position (always power on Plasma after powering on BlackBox, and off before turning off the BlackBox).

    2) Try out the attached firmware, it swops RELAY1 and RELAY2's control pins, allowing you to use Relay2 as Spindle Enable instead (which has NC and NO available, just opposite of labelled - IE instead of using Relay 1 as per documentation, wire it to Relay 2 instead). You can flash it from CONTROL > Wizards and tools > Firmware flashing tool > BlackBox X32 tab > Select Machine Style: "Custom Firmware .BIN file" > browse for the file using the red "Use custom firmware image" button > Flash

    3) or Modify the muscle board (cut the trace to the wrong relay pin, solder a wire from the Normally Open pin to the Relay back to the terminal) warranty still valid if you do choose to apply the fix
     

    Attached Files:

  10. pcgarret

    pcgarret New
    Builder

    Joined:
    Oct 6, 2021
    Messages:
    2
    Likes Received:
    0
    Thanks Peter
    not sure i will try the fix but maybe, I have inverted the pin ($16=1 for now will try the flash after i get this working.
    After getting it set up Iam noticing when probing after the probe finds the surface and sets Z0 the machine stops, I have to pause the program (hit space bar) and restart it for it to finish.
    Is there something Iam missing as I will be probing after every cut and this will be cumbersome.
    Thanks again
     

    Attached Files:

  11. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    That's also related to outdated firmware so push on with the flash See sections 7.1 and 7.2 of docs:blackbox-x32:start [OpenBuilds Documentation], the swapped relays image I provided you with is up to date too
     
  12. WaltS

    WaltS New
    Builder

    Joined:
    Jan 17, 2023
    Messages:
    1
    Likes Received:
    0
    Well... I updated the and flashed to fix the relay issue BUT now my "Y" axis is not working as I think the update is not for a "dual y" setup so my one Y motor (reverse wired) is not going in the right direction..

    So I went back to the original "dual Y" bios...

    I would like the new BIOS as it fixes the probe issue noted above but then my "y" does not work.
     
  13. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    The firmware inside CONTROL is for Dual Y. Just do make sure you have the latest CONTROL. Motors randomly changing direction is more likely wiring
     
  14. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    Hello, that worked for me. Using relay2 but now my plasma fires during travel. New to this but pretty tech savy, is there a code issue I need to change in the grbl settings? I am using a blackbox32 just got it. I tried the $16=1 no good. I also noticed that when I hit run I can here the relay but the light that shows on the box is tool pwm, and the tool rev. led is always on?
     
    #14 slik rik, Feb 8, 2023
    Last edited: Feb 8, 2023
  15. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    Did you perhaps accidentally enable Laser Mode in grbl settings?
     
  16. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    $32 = disable, Are there any specific setups /preferences for plasma that should be on or off as a first guide?
     
  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    Not much. M3S1000 to turn on the Plasma (If $30=1000), and M5 to turn it off. Make sure your GCODE contains these commands at the right locations (between sections of the cut)
    Does the Tool On menu control the Plasma correctly? (Just as a check to confirm the wiring)
     
  18. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    tool on in control starts the tool, but lites it in travel, I did the relay firmware upgrade and use relay 2 as above

    heres the g code
    ; GCODE Generated by cam.openbuilds.com on 2023-02-08
    G21 ; mm-mode
    G54; Work Coordinates
    G21; mm-mode
    G90; Absolute Positioning
    M3; Constant Power Laser On

    ; Operation 0: Plasma: Vector (path inside)
    ; Plasma Kerf: 1.2

    G0 Z10; move to z-safe height
    G0 F1000 X15.0000 Y95.0000

    G0 Z4; Move to Pierce Height
    M3S1000; Tool On
    G4 P1.5; Pierce Delay
    G1 F300 Z1.5000
    G1 F1000 X19.4000 Y99.4000 Z1.5000 S1000
    G1 F1000 X0.6000 Y99.4000 Z1.5000 S1000
    G1 F1000 X0.6000 Y0.6000 Z1.5000 S1000
    G1 F1000 X19.4000 Y0.6000 Z1.5000 S1000
    G1 F1000 X19.4000 Y99.4000 Z1.5000 S1000
    M5; Tool Off
    ; retracting back to z-safe
    G0 Z10

    M5; Laser Off
     
  19. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    oh and when I run it in control I can hear the relay start when its supposed to, its just a small rectangle
     
  20. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    You added the LASER toolhead in CAM.

    Go to CAM > Settings tab > Settings button and remove the M3 commands from the Start Gcode block
     
  21. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    Done, how about the m5; laser off at end g-code? Gonna go and test it out
     
    #21 slik rik, Feb 8, 2023
    Last edited: Feb 8, 2023
  22. slik rik

    slik rik New
    Builder

    Joined:
    Nov 8, 2022
    Messages:
    11
    Likes Received:
    1
    Yippe kiay.....works great thanks
     
    Peter Van Der Walt likes this.
  23. Mc Fab

    Mc Fab New
    Builder

    Joined:
    May 18, 2021
    Messages:
    13
    Likes Received:
    0
    I’m having the same issue and tried swapping to relay 2 ( plasma won’t turn on)
    $13-1 nada
    Relay 1 $13-1 nada
    Flash failed ( probably because I have tried it a few times)
     
  24. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    You need the above firmware image to swop to relay2. Proceed to get a succesful flash first. Make sure to click on the X32 tab (Bug fixed in V1.0.369 but that will only be available later today or tomorrow)

    But the others symptoms does point to something else. The firmware/$13 etc just inverts the logic.
    If the plasma doesn't turn on at all its rather likely wired incorrectly (does touching your two trigger wires together simulating the closing of the relay, enable the Plasma?)

    Also, how are you testing, manual commands, or using the Tool On menu in CONTROL?

    And check your Grbl Settings (Didn't maybe enable Laser Mode - its a Plasma not a Laser, for example)
     
  25. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    V1.0.369 has been released, saving you the extra click :)
     
  26. Yohyoh

    Yohyoh New
    Builder

    Joined:
    May 22, 2023
    Messages:
    8
    Likes Received:
    0
    Hey all,

    I'd like to use relay2 in place of relay1 so it CLOSES when I issue M3 commands.

    Couple of things not clear to me:
    1. Peter talks about a v1.0.369, but as of today it is not listed on the changelog page (docs:blackbox-x32:firmware_changelog [OpenBuilds Documentation]). Is it a typo or just that this page is not up to date ?
    2. Does this new update have an effect on which relay is triggered upon M3 ? Is it relay2 now ?
    3. I used CONTROL to update the firmware but it doesn't say anything about the version of the firmware that is being flashed. How can I be sure that it points to the latest one ?
    4. Relay2 doesn't seem to respond to M3, is it expected ?
    Thanks !
     
  27. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    - Page is up to date, but 1.0.369 was relevant on the day of the post. Always use the latest: OpenBuilds Software: OpenBuilds CONTROL and OpenBuilds CAM
    - If you want the swopped relays, the BIN above is still relevant, or compile grblHAL yourself
    - Latest CONTROL flashes 20230501 firmware, if you want newer grab from http://svn.io-engineering.com:8080/?driver=ESP32&board=BlackBox X32 - we update every now and then but not always like yesterday's version
    - Yes, Relay2 by default is DIR (M3 vs M4) if you want other behaviour, custom firmware compile, or above (slightly outdated but usable) binary.
     
  28. Yohyoh

    Yohyoh New
    Builder

    Joined:
    May 22, 2023
    Messages:
    8
    Likes Received:
    0
    Thanks for your replies, I still have troubles though.

    I have downloaded the latest version of CONTROL, flashed the firmware from the list in the app, then flashed again with the firmware you shared earlier.
    I've reset and power down/up the controller
    Parameter $16 is set to 0
    My wires are now on Relay2, with a multimeter attached to them.

    I do not have continuity, even after issuing M3 commands.

    What am I missing here ?
     
  29. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    Include a log of the connection (From clicking connect, showing firmware build details, current settings, etc)
     
  30. Yohyoh

    Yohyoh New
    Builder

    Joined:
    May 22, 2023
    Messages:
    8
    Likes Received:
    0
    Output from the console:

    Code:
    [16:21:32] [ usb ports ] Detected a change in available ports: [COM4]
    [16:21:37] [ connect ] PORT INFO: Port is now open: COM4 - Attempting to detect Firmware
    [16:21:37] [ connect ] Checking for firmware on COM4
    [16:21:37] [ connect ] Detecting Firmware: Method 1 (Autoreset)
    [16:21:37] [ M3 S1000 ] ok
    [16:21:39] [ $G ] $0=10.0 ;Step pulse time, microseconds
    [16:21:39] [ $G ] $1=25 ;Step idle delay, milliseconds
    [16:21:39] [ $G ] $2=0 ;Step pulse invert, mask
    [16:21:39] [ $G ] $3=0 ;Step direction invert, mask
    [16:21:39] [ $G ] $4=7 ;Invert step enable pin, boolean
    [16:21:40] [ $G ] $5=0 ;Invert limit pins, boolean/mask
    [16:21:40] [ $G ] $6=0 ;Invert probe pin, boolean
    [16:21:40] [ $G ] $7=0 ;Disable spindle with 0 speed, boolean
    [16:21:40] [ $G ] $8=0 ;Ganged axes direction invert as bitfield
    [16:21:40] [ $G ] $10=511 ;Status report options, mask
    [16:21:40] [ $G ] $11=0.010 ;Junction deviation, millimeters
    [16:21:40] [ $G ] $12=0.002 ;Arc tolerance, millimeters
    [16:21:40] [ $G ] $13=0 ;Report in inches, boolean
    [16:21:40] [ $G ] $14=0 ;Limit pins invert, mask
    [16:21:40] [ $G ] $15=0 ;Coolant pins invert, mask
    [16:21:40] [ $G ] $16=0 ;Spindle pins invert, mask
    [16:21:40] [ $G ] $17=0 ;Control pins pullup disable, mask
    [16:21:40] [ $G ] $18=0 ;Limit pins pullup disable, mask
    [16:21:40] [ $G ] $19=0 ;Probe pin pullup disable, boolean
    [16:21:40] [ $G ] $20=0 ;Soft limits enable, boolean
    [16:21:40] [ $G ] $21=0 ;Hard limits enable, boolean
    [16:21:40] [ $G ] $22=0 ;Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    [16:21:40] [ $G ] $23=0 ;Homing direction invert, mask
    [16:21:40] [ $G ] $24=25.0 ;Homing locate feed rate, mm/min
    [16:21:40] [ $G ] $25=500.0 ;Homing search seek rate, mm/min
    [16:21:40] [ $G ] $26=250 ;Homing switch debounce delay, milliseconds
    [16:21:40] [ $G ] $27=1.000 ;Homing switch pull-off distance, millimeters
    [16:21:40] [ $G ] $28=0.100 ;G73 retract distance, in mm
    [16:21:40] [ $G ] $29=0.0 ;Step pulse delay (ms)
    [16:21:40] [ $G ] $30=1000.000 ;Maximum spindle speed, RPM
    [16:21:40] [ $G ] $31=0.000 ;Minimum spindle speed, RPM
    [16:21:40] [ $G ] $32=0 ;Laser-mode enable, boolean
    [16:21:40] [ $G ] $33=5000.0 ;Spindle PWM frequency
    [16:21:40] [ $G ] $34=0.0 ;Spindle off Value
    [16:21:40] [ $G ] $35=0.0 ;Spindle min value
    [16:21:40] [ $G ] $36=100.0 ;Spindle max value
    [16:21:40] [ $G ] $37=0 ;Stepper deenergize mask
    [16:21:40] [ $G ] $39=1 ;Enable printable realtime command characters, boolean
    [16:21:40] [ $G ] $40=0 ;Apply soft limits for jog commands, boolean
    [16:21:40] [ $G ] $43=1 ;Homing passes
    [16:21:40] [ $G ] $44=4 ;Homing cycle 1
    [16:21:40] [ $G ] $45=3 ;Homing cycle 2
    [16:21:40] [ $G ] $46=0 ;Homing cycle 3
    [16:21:40] [ $G ] $62=0 ;Sleep Enable
    [16:21:40] [ $G ] $63=2 ;Feed Hold Actions
    [16:21:40] [ $G ] $64=0 ;Force Init Alarm
    [16:21:40] [ $G ] $65=0 ;Require homing sequence to be executed at startup
    [16:21:40] [ $G ] $70=7 ;Network Services
    [16:21:40] [ $G ] $73=1 ;Wifi Mode
    [16:21:40] [ $G ] $74= ;Wifi network SSID
    [16:21:40] [ $G ] $75= ;Wifi network PSK
    [16:21:40] [ $G ] $100=250.000 ;X-axis steps per millimeter
    [16:21:40] [ $G ] $101=250.000 ;Y-axis steps per millimeter
    [16:21:40] [ $G ] $102=250.000 ;Z-axis steps per millimeter
    [16:21:40] [ $G ] $110=500.000 ;X-axis maximum rate, mm/min
    [16:21:40] [ $G ] $111=500.000 ;Y-axis maximum rate, mm/min
    [16:21:40] [ $G ] $112=500.000 ;Z-axis maximum rate, mm/min
    [16:21:40] [ $G ] $120=10.000 ;X-axis acceleration, mm/sec^2
    [16:21:40] [ $G ] $121=10.000 ;Y-axis acceleration, mm/sec^2
    [16:21:40] [ $G ] $122=10.000 ;Z-axis acceleration, mm/sec^2
    [16:21:41] [ $G ] $130=200.000 ;X-axis maximum travel, millimeters
    [16:21:41] [ $G ] $131=200.000 ;Y-axis maximum travel, millimeters
    [16:21:41] [ $G ] $132=200.000 ;Z-axis maximum travel, millimeters
    [16:21:41] [ $G ] $300=Grbl ;Hostname
    [16:21:41] [ $G ] $302=192.168.5.1 ;IP Address
    [16:21:41] [ $G ] $303=192.168.5.1 ;Gateway
    [16:21:41] [ $G ] $304=255.255.255.0 ;Netmask
    [16:21:41] [ $G ] $305=23 ;Telnet Port
    [16:21:41] [ $G ] $306=80 ;HTTP Port
    [16:21:41] [ $G ] $307=81 ;Websocket Port
    [16:21:41] [ $G ] $341=0 ;Tool Change Mode
    [16:21:41] [ $G ] $342=30.0 ;Tool Change probing distance
    [16:21:41] [ $G ] $343=25.0 ;Tool Change Locate Feed rate
    [16:21:41] [ $G ] $344=200.0 ;Tool Change Search Seek rate
    [16:21:41] [ $G ] $345=100.0 ;Tool Change Probe Pull Off rate
    [16:21:41] [ $G ] $370=0 ;Invert I/O Port Inputs (mask)
    [16:21:41] [ $G ] $384=0 ;Disable G92 Persistence
    [16:21:41] [ $G ] ok
    [16:21:41] [ connect ] Firmware Detected: grbl version 1.1f on COM4
    [16:21:41] [ $$ ] [VER:1.1f.20220325:]
    [16:21:41] [ $$ ] [OPT:VNSL2,35,1024,3,0]
    [16:21:41] [ $$ ] [NEWOPT:ENUMS,RT+,TC,SED,WIFI,SD]
    [16:21:41] [ $$ ] [FIRMWARE:grblHAL]
    [16:21:41] [ $$ ] [NVS STORAGE:*FLASH]
    [16:21:41] [ $$ ] [DRIVER:ESP32]
    [16:21:41] [ $$ ] [DRIVER VERSION:220327]
    [16:21:41] [ $$ ] [DRIVER OPTIONS:v4.3.2-555-gb4ef1b80a2-dirty]
    [16:21:41] [ $$ ] [BOARD:BlackBox X32]
    [16:21:41] [ $$ ] [AUX IO:1,0,0,0]
    [16:21:41] [ $$ ] [WIFI MAC:94:B5:55:13:BA:20]
    [16:21:41] [ $$ ] [IP:0.0.0.0]
    [16:21:41] [ $$ ] [PLUGIN:SDCARD v1.05]
    [16:21:41] [ $$ ] [PLUGIN:ESP32 WebUI v0.03]
    [16:21:41] [ $$ ] ok
    [16:21:41] [ $I ] [GC:G0 G54 G17 G21 G90 G94 G49 G98 G50 M5 M9 T0 F0 S0.]
    [16:21:41] [ $I ] ok
    [16:21:54] [ $G ] ok
    [16:21:54] [ M3 S1000 ] [GC:G0 G54 G17 G21 G90 G94 G49 G98 G50 M3 M9 T0 F0 S1000.]
    [16:21:54] [ M3 S1000 ] ok
    [16:21:58] [ $G ] ok
    [16:21:58] [ M5 ] [GC:G0 G54 G17 G21 G90 G94 G49 G98 G50 M5 M9 T0 F0 S1000.]
    [16:21:58] [ M5 ] ok
    Do you need anything else ?

    Thanks again :)
     

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