Welcome to Our Community

Some features disabled for guests. Register Today.

Soft limits error.

Discussion in 'CNC Mills/Routers' started by AntonyUK, May 24, 2022.

Tags:
  1. AntonyUK

    AntonyUK New
    Builder

    Joined:
    May 24, 2022
    Messages:
    4
    Likes Received:
    0
    Hi.

    My Settings are as :-

    $0=10 ;Step pulse time, microseconds
    $1=25 ;Step idle delay, milliseconds
    $2=0 ;Step pulse invert, mask
    $3=5 ;Step direction invert, mask
    $4=0 ;Invert step enable pin, boolean
    $5=1 ;Invert limit pins, boolean
    $6=1 ;Invert probe pin, boolean
    $10=1 ;Status report options, mask
    $11=0.010 ;Junction deviation, millimeters
    $12=0.002 ;Arc tolerance, millimeters
    $13=0 ;Report in inches, boolean
    $20=1 ;Soft limits enable, boolean
    $21=0 ;Hard limits enable, boolean
    $22=1 ;Homing cycle enable, boolean
    $23=3 ;Homing direction invert, mask
    $24=300.000 ;Homing locate feed rate, mm/min
    $25=1000.000 ;Homing search seek rate, mm/min
    $26=250.000 ;Homing switch debounce delay, milliseconds
    $27=2.000 ;Homing switch pull-off distance, millimeters
    $28=1920.000 ;G73 retract distance, in mm
    $30=10000.000 ;Maximum spindle speed, RPM
    $31=0.000 ;Minimum spindle speed, RPM
    $32=0 ;Laser-mode enable, boolean
    $38=1 ;Spindle encoder pulses per revolution
    $40=1 ;Apply soft limits for jog commands
    $100=388.540 ;X-axis steps per millimeter
    $101=77.670 ;Y-axis steps per millimeter
    $102=415.800 ;Z-axis steps per millimeter
    $103=100.000 ;undefined
    $104=100.000 ;undefined
    $105=100.000 ;undefined
    $110=6000.000 ;X-axis maximum rate, mm/min
    $111=6000.000 ;Y-axis maximum rate, mm/min
    $112=6000.000 ;Z-axis maximum rate, mm/min
    $113=1000.000 ;undefined
    $114=1000.000 ;undefined
    $115=1000.000 ;undefined
    $120=500.000 ;X-axis acceleration, mm/sec^2
    $121=500.000 ;Y-axis acceleration, mm/sec^2
    $122=500.000 ;Z-axis acceleration, mm/sec^2
    $123=200.000 ;undefined
    $124=200.000 ;undefined
    $125=200.000 ;undefined
    $130=420.000 ;X-axis maximum travel, millimeters
    $131=490.000 ;Y-axis maximum travel, millimeters
    $132=30.000 ;Z-axis maximum travel, millimeters

    $133=300.000 ;undefined
    $134=300.000 ;undefined
    $135=300.000 ;undefined
    ok


    Ok
    The Router is a self designed on Fusion 360 and built by myself. (I am a retired Engineer)
    The Board I am using is A MKS DLC 32 V2
    Y is forward/Backwards , X is left/Right , Z is Up Down.
    I am using OpenBuild Control software. Version 1.0321.

    Homing is Front Left and Z Up When this is requested All works and the work coordinates all Zero themselves.

    If try to Jog X or Y I get Errors.
    If I jog Y+ it gives a Error Unable to jog towards Y+, Will hit soft limits.
    If I jog Y+ it gives a Error Unable to jog towards X+, Will hit soft limits.
    If I try the jog Y- or X- it gives a Error as expected. (Jog target exceeds machine travel. Command ignored.

    Z works as expected.

    Also Tried the UGS and everything works Great.. But I like the OpenBuild Control.

    So were am I screwing up. ??
    If theirs anymore information required then just ask.

    Regards Antony.
     
  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
    Did you remember to Home prior to jogging?

    CONTROL takes current Machine Position - subtracted from Max Travel - to calculate distance of move command to send. It works perfectly - so the only reason it should error - is if it doesn't know where the machine envelope is, which is set by Homing.

    That's not a standard Grbl parameter though - see Grbl v1.1 Configuration · gnea/grbl Wiki - CONTROL is meant for use with Standard Grbl - so forks may be unpredictable
     
  3. AntonyUK

    AntonyUK New
    Builder

    Joined:
    May 24, 2022
    Messages:
    4
    Likes Received:
    0
    Hi. Thanks for the reply.
    Yes I always home when I switch on.
    I've been chasing tis for a couple of days.
    I will look at that #40=1 and test it.

    Regards
     
  4. 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
    No, I meant the existance of this non standard Grbl parameter - tells me you are not running standard Grbl, which is what CONTROL is of course built for and expecting. As its not official Grbl, that might be why its acting differently - and may not be compatible with CONTROL.
     
  5. AntonyUK

    AntonyUK New
    Builder

    Joined:
    May 24, 2022
    Messages:
    4
    Likes Received:
    0
    You are correct. Its the MKS version that has to be flashed to the board..
    There is no way to change it as its not open source. Just a Bin file.
    I changed it with a text editor to 0 and made no difference. Also deleted it. But dam board replaced it.
    Might just put limit switches in all directions and have done with it. IE X+, X-, Y+ Y-, Z+, Z-

    Thanks for the help.
    Regards.
     
  6. 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
  7. AntonyUK

    AntonyUK New
    Builder

    Joined:
    May 24, 2022
    Messages:
    4
    Likes Received:
    0
    Yea I would love one...

    Regards Antony.
     
  8. Wick

    Wick New
    Builder

    Joined:
    Nov 30, 2021
    Messages:
    4
    Likes Received:
    4
    The blackbox is worth it's weight in gold, along with the control software.
     

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