Welcome to Our Community

Some features disabled for guests. Register Today.

WiFi \ Hard limit error

Discussion in 'OpenBuilds Bug Report' started by liquidblack, Feb 27, 2023.

  1. liquidblack

    Builder

    Joined:
    Feb 27, 2023
    Messages:
    3
    Likes Received:
    3
    Hi everyone,

    I'm new at both this very forum and as a CNC hobbyist. I have purchased a custom version of Lead 1010 which is as long as model 1515 but wide as 1010. Machine came to with blackbox x32 and I'm using my whole available time to get to know it.

    During my learning, tests, configurations I have came into a trouble. I have everything configured and machine works as it should however when I'm adding WiFi config it triggers:

    A ALARM: 1 - Hard limit triggered. Machine position is likely lost due to sudden and immediate halt. Re-homing is highly recommended. [ undefined ]

    And it loops. I can't home, can't move. Only cancel error message but the alarm stays on.

    It seems that either I can have hard limits turned on or WiFi. As soon as I delete settings for SSID and PSK the problem goes away.

    I have tried to reset blackbox using reset button with or without USB attached but it does not matter. I tried also changing SSID and PSK on my access point and made it as short as possible without special characters but that didn't helped.

    Steps:
    1. Machine configured and working properly
    2. Adding SSID and PSK
    3. Allowing for reboot
    4. Manually resetting machine with a button
    5. WiFi is working and I'm able to connect
    6. Alarm is triggered on both USB and WiFi connection
    7. Clearing out SSID and PSK
    8. Allowing for reboot
    9. Manually resetting machine with a button
    10. Issue is gone
    Config below that I'm using is the default for 1515 plus some minor changes for spindle (VFD) and calibration:

    $0=10.0 ; Step pulse time, microseconds
    $1=255 ; Step idle delay, milliseconds
    $2=0 ; Step pulse invert, mask
    $3=0 ; Step direction invert, mask
    $4=0 ; Invert step enable pin, boolean
    $5=7 ; Invert limit pins, boolean/mask
    $6=1 ; Invert probe pin, boolean
    $7=0 ; Disable spindle with 0 speed, boolean
    $8=0 ; Ganged axes direction invert as bitfield
    $10=511 ; Status report options, mask
    $11=0.010 ; Junction deviation, millimeters
    $12=0.002 ; Arc tolerance, millimeters
    $13=0 ; Report in inches, boolean
    $14=0 ; Limit pins invert, mask
    $15=0 ; Coolant pins invert, mask
    $16=0 ; Spindle pins invert, mask
    $17=0 ; Control pins pullup disable, mask
    $18=0 ; Limit pins pullup disable, mask
    $19=0 ; Probe pin pullup disable, boolean
    $20=0 ; Soft limits enable, boolean
    $21=1 ; Hard limits enable, boolean
    $22=1 ; Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    $23=7 ; Homing direction invert, mask
    $24=100.0 ; Homing locate feed rate, mm/min
    $25=2000.0 ; Homing search seek rate, mm/min
    $26=250 ; Homing switch debounce delay, milliseconds
    $27=1.000 ; Homing switch pull-off distance, millimeters
    $28=0.100 ; G73 retract distance, in mm
    $29=0.0 ; Step pulse delay (ms)
    $30=24000.000 ; Maximum spindle speed, RPM
    $31=0.000 ; Minimum spindle speed, RPM
    $32=0 ; Laser-mode enable, boolean
    $33=400.0 ; Spindle PWM frequency
    $34=0.0 ; Spindle off Value
    $35=0.0 ; Spindle min value
    $36=100.0 ; Spindle max value
    $37=0 ; Stepper deenergize mask
    $39=1 ; Enable printable realtime command characters, boolean
    $40=0 ; Apply soft limits for jog commands, boolean
    $43=1 ; Homing passes
    $44=4 ; Homing cycle 1
    $45=3 ; Homing cycle 2
    $46=0 ; Homing cycle 3
    $62=0 ; Sleep Enable
    $63=2 ; Feed Hold Actions
    $64=0 ; Force Init Alarm
    $65=0 ; Require homing sequence to be executed at startup
    $70=7 ; Network Services
    $73=1 ; Wifi Mode
    $74= ; Wifi network SSID
    $75= ; Wifi network PSK
    $100=200.040 ; X-axis steps per millimeter
    $101=200.000 ; Y-axis steps per millimeter
    $102=200.770 ; Z-axis steps per millimeter
    $110=3500.000 ; X-axis maximum rate, mm/min
    $111=3500.000 ; Y-axis maximum rate, mm/min
    $112=1000.000 ; Z-axis maximum rate, mm/min
    $120=350.000 ; X-axis acceleration, mm/sec^2
    $121=350.000 ; Y-axis acceleration, mm/sec^2
    $122=350.000 ; Z-axis acceleration, mm/sec^2
    $130=752.000 ; X-axis maximum travel, millimeters
    $131=1302.000 ; Y-axis maximum travel, millimeters
    $132=122.000 ; Z-axis maximum travel, millimeters
    $300=GRBL ; Hostname
    $302=192.168.5.1 ; IP Address
    $303=192.168.5.1 ; Gateway
    $304=255.255.255.0 ; Netmask
    $305=23 ; Telnet Port
    $306=80 ; HTTP Port
    $307=81 ; Websocket Port
    $341=0 ; Tool Change Mode
    $342=30.0 ; Tool Change probing distance
    $343=25.0 ; Tool Change Locate Feed rate
    $344=200.0 ; Tool Change Search Seek rate
    $345=100.0 ; Tool Change Probe Pull Off rate
    $370=0 ; Invert I/O Port Inputs (mask)
    $384=0 ; Disable G92 Persistence
    $I=leadmachine1515
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,193
    Likes Received:
    4,346
  3. liquidblack

    Builder

    Joined:
    Feb 27, 2023
    Messages:
    3
    Likes Received:
    3
    Will do. Thanks for directions :)
     
    sharmstr and Peter Van Der Walt like this.
  4. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,449
    Ran into this today. Thank you for opening an issue on github. Very helpful.
     
    Peter Van Der Walt likes this.
  5. liquidblack

    Builder

    Joined:
    Feb 27, 2023
    Messages:
    3
    Likes Received:
    3
    I'm glad that it helped.

    Just in case anyone would have some difficulties in finding it on github here is a link:

    WiFi \ Hard limit error · Issue #61 · grblHAL/ESP32
     
    Peter Van Der Walt likes this.
  6. tim walter

    Builder

    Joined:
    Feb 16, 2017
    Messages:
    5
    Likes Received:
    1
    I
    am having the same issue
    Is there going to be a firmware fix for this soon ?
     
  7. tim walter

    Builder

    Joined:
    Feb 16, 2017
    Messages:
    5
    Likes Received:
    1
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,193
    Likes Received:
    4,346
    Been available for months via grblHAL Web Builder, but coincidentally, see section 7.2 of the BlackBox X32 documentation (and 7.1 for Instructions) as another option
     
  9. tim walter

    Builder

    Joined:
    Feb 16, 2017
    Messages:
    5
    Likes Received:
    1
    I don't seem to be able to flash the firmware
    I get:
    [13:25:38] [ Firmware Upgrade ] [Starting...]

    [13:25:38] [ disconnect ] PORT INFO: Port closed

    [13:25:38] [ Firmware Upgrade ] env: python: No such file or directory

    [13:25:38] [ Firmware Upgrade ] [exit:127]

    [13:25:38] [ Firmware Upgrade ] Firmware Update FAILED! Please review the logs above, or try again

    I am selecting X32, usb, custom firmware.bin which I then select using the red box
     
  10. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,193
    Likes Received:
    4,346
    Your computer doesn't have a working python install. Try a different PC (Windows a little easier, doesn't need python)
     
  11. tim walter

    Builder

    Joined:
    Feb 16, 2017
    Messages:
    5
    Likes Received:
    1
    borrowed a windows laptop and refreshed, that fixed it !
    thanks
     
    Peter Van Der Walt likes this.

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