Welcome to Our Community

Some features disabled for guests. Register Today.

(ALARM:2) Soft limit alarm. G-code motion target exceeds machine travel.

Discussion in 'CNC Mills/Routers' started by tcjguitar, Aug 4, 2022.

  1. tcjguitar

    tcjguitar New
    Builder

    Joined:
    Aug 4, 2022
    Messages:
    5
    Likes Received:
    0
    Hello openbuilds cnc forums,

    hope you're all having fun out there.

    i'm brand new to cnc and i have an error message that i can't seem to work around...
    is something wrong with my code? my computer seems to be communicating to the controller - cnc machine pretty well.

    Grbl 1.1i MegaV 4 Axis Router ['$' for help]
    >>> $$
    [MSG:'$H'|'$X' to unlock]
    $0 = 10 (Step pulse time, microseconds)
    $1 = 255 (Step idle delay, milliseconds)
    $2 = 0 (Step pulse invert, mask)
    $3 = 2 (Step direction invert, mask)
    $4 = 0 (Invert step enable pin, boolean)
    $5 = 0 (Invert limit pins, boolean)
    $6 = 0 (Invert probe pin, boolean)
    $10 = 1 (Status report options, mask)
    $11 = 0.020 (Junction deviation, millimeters)
    $12 = 0.002 (Arc tolerance, millimeters)
    $13 = 0 (Report in inches, boolean)
    $20 = 1 (Soft limits enable, boolean)
    $21 = 1 (Hard limits enable, boolean)
    $22 = 1 (Homing cycle enable, boolean)
    $23 = 1 (Homing direction invert, mask)
    $24 = 50.000 (Homing locate feed rate, mm/min)
    $25 = 800.000 (Homing search seek rate, mm/min)
    $26 = 200 (Homing switch debounce delay, milliseconds)
    $27 = 5.000 (Homing switch pull-off distance, millimeters)
    $30 = 100 (Maximum spindle speed, RPM)
    $31 = 0 (Minimum spindle speed, RPM)
    $32 = 1 (Laser-mode enable, boolean)
    $100 = 57.288 (X-axis travel resolution, step/mm)
    $101 = 57.288 (Y-axis travel resolution, step/mm)
    $102 = 200.000 (Z-axis travel resolution, step/mm)
    $103 = 13.333
    $110 = 16510.000 (X-axis maximum rate, mm/min)
    $111 = 16510.000 (Y-axis maximum rate, mm/min)
    $112 = 4570.000 (Z-axis maximum rate, mm/min)
    $113 = 15000.000
    $120 = 1470.000 (X-axis acceleration, mm/sec^2)
    $121 = 1470.000 (Y-axis acceleration, mm/sec^2)
    $122 = 700.000 (Z-axis acceleration, mm/sec^2)
    $123 = 4000.000
    $130 = 480.600 (X-axis maximum travel, millimeters)
    $131 = 487.500 (Y-axis maximum travel, millimeters)
    $132 = 100.000 (Z-axis maximum travel, millimeters)
    $133 = 360.000
    ok

    again, i'm brand new to cnc, so any input would be much appreciated.
     
  2. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,774
    Likes Received:
    1,358
    What size is your machine? In fact can you please give us as much information about your machine as possible - especially what controller you are using.
    Alex.
     
    tcjguitar likes this.
  3. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,922
    Likes Received:
    4,291
    Set $20=0 and Save.

    You can revisit soft limits later when you learn about Machine Coordinates

    CONTROL is for use with Stock standard Grbl - some forks do nonstandard stuff
     
    tcjguitar likes this.
  4. tcjguitar

    tcjguitar New
    Builder

    Joined:
    Aug 4, 2022
    Messages:
    5
    Likes Received:
    0
    Thanks for asking...
    I am using the Millright Mega V... it's dimensions are 27"x33", and it's cutting area is 18.75" x 18.75" x 3.75".
    I am using the controller that came with the machine. I've designed the model in Fusion 360 and am using UGS to send the code to the CNC.
     
  5. tcjguitar

    tcjguitar New
    Builder

    Joined:
    Aug 4, 2022
    Messages:
    5
    Likes Received:
    0
    Fixing the $20 value was my problem... thank you for all of your help, i'm sure that i'll be checking in here often.
     
  6. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,435
    Likes Received:
    1,908
    Do remember to HOME the machine....
    and those max rapid rates? 16+meters a minute for real?

    Set these to the real travel lengths of your machine and then re-enable soft limits, as 16meters/min you are gonna need some protection (-:
    $130 = 480.600 (X-axis maximum travel, millimeters)
    $131 = 487.500 (Y-axis maximum travel, millimeters)
    $132 = 100.000 (Z-axis maximum travel, millimeters)
     
    tcjguitar likes this.
  7. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,922
    Likes Received:
    4,291
    Some vendors recompiles Grbl with FORCE ORIGIN on which messes with how soft limits with continuous is supposed to work. This vendor is one of them, thus my advice to disable it.
     
    David the swarfer likes this.
  8. tcjguitar

    tcjguitar New
    Builder

    Joined:
    Aug 4, 2022
    Messages:
    5
    Likes Received:
    0

    Wow, that's also very helpful. This is day four for me with my millright, haven't broke a bit yet!

    maybe another question that i need answered is..

    What's the difference between homing the machine and setting zero?
     
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,774
    Likes Received:
    1,358
    Homing the machine sets the MACHINE co-ordinate system zero ($130, 131 & 132 in your grbl settings set the other end - max travel - of each axis). That tells your controller where the edges and corners of your machine are.

    Setting XYZ zero sets the WORKPLACE coordinates system zero - this tells your controller where on the machine you put the workpiece - you must set that in the same place on your workpiece as you set the origin in your cam software.
    Alex
     
    David the swarfer likes this.
  10. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,435
    Likes Received:
    1,908
  11. tcjguitar

    tcjguitar New
    Builder

    Joined:
    Aug 4, 2022
    Messages:
    5
    Likes Received:
    0
    Thanks again everyone...

    If I can ask another question.. My X axis seems to be "stalling", or even stuttering, like it cannot return to the same center of the circle when moving in the -X direction.
    Somebody else assembled this machine, so I don't know if it's a user error in the setup, or perhaps one of the motors isn't working?
    There's an image below, as well as a video.
    Here's the video.. recommend turning the volume down first.


    All the best,

    Travis
     

    Attached Files:

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