Welcome to Our Community

Some features disabled for guests. Register Today.

ALARM: 2 - G-code motion target exceeds machine travel

Discussion in 'CNC Mills/Routers' started by kyrenia, May 7, 2021.

  1. kyrenia

    kyrenia New
    Builder

    Joined:
    Oct 27, 2020
    Messages:
    14
    Likes Received:
    6
    Hi all,

    My workbee1010 has been unused for a few weeks , i fired it up yesterday and its reporting a problem when trying to run g-code

    ALARM: 2 - G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. [ G0Z20.000 ]

    happing on all g code including the hello world gcode generated by openbuilds cam,


    [22:08:57] [ $$ ] $0=10 ;Step pulse time, microseconds

    [22:08:57] [ $$ ] $1=255 ;Step idle delay, milliseconds

    [22:08:57] [ $$ ] $2=0 ;Step pulse invert, mask

    [22:08:57] [ $$ ] $3=3 ;Step direction invert, mask

    [22:08:57] [ $$ ] $4=1 ;Invert step enable pin, boolean

    [22:08:57] [ $$ ] $5=0 ;Invert limit pins, boolean

    [22:08:57] [ $$ ] $6=0 ;Invert probe pin, boolean

    [22:08:57] [ $$ ] $10=1 ;Status report options, mask

    [22:08:57] [ $$ ] $11=0.020 ;Junction deviation, millimeters

    [22:08:57] [ $$ ] $12=0.002 ;Arc tolerance, millimeters

    [22:08:57] [ $$ ] $13=0 ;Report in inches, boolean

    [22:08:57] [ $$ ] $20=1 ;Soft limits enable, boolean

    [22:08:57] [ $$ ] $21=1 ;Hard limits enable, boolean

    [22:08:57] [ $$ ] $22=1 ;Homing cycle enable, boolean

    [22:08:57] [ $$ ] $23=3 ;Homing direction invert, mask

    [22:08:57] [ $$ ] $24=100.000 ;Homing locate feed rate, mm/min

    [22:08:57] [ $$ ] $25=1000.000 ;Homing search seek rate, mm/min

    [22:08:57] [ $$ ] $26=250 ;Homing switch debounce delay, milliseconds

    [22:08:57] [ $$ ] $27=5.000 ;Homing switch pull-off distance, millimeters

    [22:08:57] [ $$ ] $30=24000 ;Maximum spindle speed, RPM

    [22:08:57] [ $$ ] $31=0 ;Minimum spindle speed, RPM

    [22:08:57] [ $$ ] $32=0 ;Laser-mode enable, boolean

    [22:08:57] [ $$ ] $100=199.100 ;X-axis steps per millimeter

    [22:08:57] [ $$ ] $101=199.100 ;Y-axis steps per millimeter

    [22:08:57] [ $$ ] $102=199.100 ;Z-axis steps per millimeter

    [22:08:57] [ $$ ] $110=2500.000 ;X-axis maximum rate, mm/min

    [22:08:57] [ $$ ] $111=2500.000 ;Y-axis maximum rate, mm/min

    [22:08:57] [ $$ ] $112=2500.000 ;Z-axis maximum rate, mm/min

    [22:08:57] [ $$ ] $120=150.000 ;X-axis acceleration, mm/sec^2

    [22:08:57] [ $$ ] $121=150.000 ;Y-axis acceleration, mm/sec^2

    [22:08:57] [ $$ ] $122=150.000 ;Z-axis acceleration, mm/sec^2

    [22:08:57] [ $$ ] $130=788.000 ;X-axis maximum travel, millimeters

    [22:08:57] [ $$ ] $131=770.000 ;Y-axis maximum travel, millimeters

    [22:08:57] [ $$ ] $132=200.000 ;Z-axis maximum travel, millimeters

    [22:08:57] [ $$ ] ok

    [22:09:39] [ G21 G90 ] ok

    [22:09:39] [ G0 Z5 ] ok

    [22:09:39] [ G0 X0 Y0 ] ok

    [22:09:39] [ G0 Z0 ] ok

    [22:09:52] [ T1 ] ok

    [22:09:52] [ G17 ] ok

    [22:09:52] [ G21 ] ok

    [22:09:52] [ G90 ] ok

    [22:09:52] [ ALARM ] ALARM: 2 - G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. [ G0Z20.000 ]

    [22:09:52] [ ] ALARM: 2 - G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. [ G0Z20.000 ]

    [22:09:52] [ G0Z20.000 ] ALARM:2

    [22:09:53] [ G0Z20.000 ] [MSG:Reset to continue]

    [22:09:53] [ G0Z20.000 ] ok


    anyone have any ideas where to look ?
     

    Attached Files:

  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
  3. kyrenia

    kyrenia New
    Builder

    Joined:
    Oct 27, 2020
    Messages:
    14
    Likes Received:
    6
    Yep homing successfully, can move to and stop at all soft limits . And move to work zero position correctly. It Will run the flattening code generated by the wizard ok , ‍
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    The the file you are trying to run, is larger than

    These dimensions: (relative to stock placement and where you zeroed etc, the move causing the error would exceed the envelope you provided)

    and is thus prevented from running by:


    Read more here: gnea/grbl
     
  5. kyrenia

    kyrenia New
    Builder

    Joined:
    Oct 27, 2020
    Messages:
    14
    Likes Received:
    6
    cheers guys, seems to be related to the travel I have on my z axis , I reduced the The Safe Z or Rapid Clearance Gap and it allowed me to run the gcode.
    great support as all ways. thanks
     
    sharmstr and Peter Van Der Walt like this.
  6. JayJ

    JayJ New
    Builder

    Joined:
    Mar 31, 2018
    Messages:
    17
    Likes Received:
    1
    Where did you make this change? In the control software or in design?
     
  7. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,059
    Likes Received:
    1,448
    You need to make it in your cam software. Potentially your post processor settings too, but hard to guess without knowing what you are using.
     
    Peter Van Der Walt likes this.
  8. JayJ

    JayJ New
    Builder

    Joined:
    Mar 31, 2018
    Messages:
    17
    Likes Received:
    1
    I use Vcarve Desktop and openbuilds control.
     
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,773
    Likes Received:
    1,358
    The changes you need to make are in Vectric when you start creating a toolpath. Not at my PC, so can't give you a screenshot, but at the bottom of the set up screen there are two settings for Z safe/retract/clearance heights (can't remember exactly what they are called) which will need to be reduced.
    Alex.
     
    sharmstr likes this.
  10. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,008
    Likes Received:
    1,676
    I had this issue trying to carve a 59mm thick piece and my Z travel is only 60mm. I change the safe z height in Vcarve to 0.5mm, recalculated the tool paths, and then it worked (with prayers to the CNC gods). Now I scale my carves so they are no thicker than 58mm. I like the extra 1 mm for the safe z height.

    I really need to finish my modifications with a higher Z.
     
    David the swarfer and sharmstr like this.
  11. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0
    Hello there, i experience the same problem like Kyrenia

    ALARM: 2 - G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. [ G0Z20.000 ]

    happing on all g code including the hello world gcode generated by openbuilds cam,

    This is my backupfile from the maschine

    $0=10 ; Step pulse time, microseconds
    $1=255 ; Step idle delay, milliseconds
    $2=0 ; Step pulse invert, mask
    $3=4 ; Step direction invert, mask
    $4=0 ; Invert step enable pin, boolean
    $5=0 ; Invert limit pins, boolean/mask
    $6=0 ; 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=1 ; Hard limits enable, boolean
    $22=1 ; Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    $23=0 ; Homing direction invert, mask
    $24=100.000 ; Homing locate feed rate, mm/min
    $25=500.000 ; Homing search seek rate, mm/min
    $26=100 ; Homing switch debounce delay, milliseconds
    $27=2.000 ; Homing switch pull-off distance, millimeters
    $30=0 ; Maximum spindle speed, RPM
    $31=0 ; Minimum spindle speed, RPM
    $32=0 ; Laser-mode enable, boolean
    $100=319.981 ; X-axis steps per millimeter
    $101=377.013 ; Y-axis steps per millimeter
    $102=755.916 ; Z-axis steps per millimeter
    $110=800.000 ; X-axis maximum rate, mm/min
    $111=500.000 ; Y-axis maximum rate, mm/min
    $112=500.000 ; Z-axis maximum rate, mm/min
    $120=30.000 ; X-axis acceleration, mm/sec^2
    $121=30.000 ; Y-axis acceleration, mm/sec^2
    $122=30.000 ; Z-axis acceleration, mm/sec^2
    $130=994.000 ; X-axis maximum travel, millimeters
    $131=340.000 ; Y-axis maximum travel, millimeters
    $132=92.000 ; Z-axis maximum travel, millimeters
    $I=custom

    I am using Estlcam for mij G-code en set the feed fore the X at 250mm/min and fore the Z and Y at 200mm/min

    even when i try the sufacing wizzard and generated G-code i get the same alarm

    is there anyone who can help me with that?

    greetings Nico



    upload_2023-1-9_20-5-7.png
     

    Attached Files:

  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    Did you remember to HOME before Setting Zero?

    You have inverter axis - make sure your machine follows Cartesian Standards

    According to this your Limits are at Axis Maxima - if any of your switches are not, this needs changing

    1) Make sure it jogs correctly (X+ moves too to right, Y+ moves too to back, Z+ lifts tool up)
    2) Then make sure it Homes correctly
    3) Then HOME
    4) Then SetZero
    5) Then run

    Soft Limits are confusing for beginners though as you need to understand Machine and Work Coordinates
     
  13. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0
    I managed to make a copy of the g-code generated by Estlcam


    the feed for the axes is well below the set max. values for the axes in the CNC router, so I can't understand why I keep getting the error message


    (Project test)
    (Created by Estlcam version 11 build 11,244)
    (Machining time about 00:08:59 hours)
    (Required tools
    (MDF 18mm)
    G21
    G90
    G94
    M03 S0
    G00 Z3.0000
    (No. 1: Uitsnijding 1)
    G00 X-717.5000 Y-229.5000
    G00 Z0.5000
    G01 Z0.0000 F200 S0
    G01 Z-1.0000
    G01 Y-124.5000 F250
    G01 X-462.5000
    G01 Y-229.5000
    G01 X-717.5000
    G01 Z-2.0000 F200
    G01 Y-124.5000 F250
    G01 X-462.5000
    G01 Y-229.5000
    G01 X-717.5000
    G01 Z-3.0000 F200
    G01 Y-124.5000 F250
    G01 X-462.5000
    G01 Y-229.5000
    G01 X-717.5000
    G00 Z3.0000
    M05
    M30
     
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    See above reply - Machine Coordinates come into play too (Disabling soft limits until you have a deeper understanding of the coordinate systems are always an option, otherwise work through the provided steps)
     
  15. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0

    thanks for your response,
    yes i first go to home and then set zero i changed the invert to $3 and all axes now home to + as you describe in your comment
    But i stil get the alarm
    upload_2023-1-9_20-48-0.png
     
  16. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    Bump up your Z by 10mm or so as a test
     
  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    And are you zeroing in the correct spot? Top Right it looks like from the hidden screenshot behind the error
     
  18. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0
    Hi peter, thanks for your help, I turned off the soft limits and the CNC router is now doing a test run and seems to work fine
     
  19. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0
    Yes its homing on the top right spot
     
  20. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    14,921
    Likes Received:
    4,291
    Best for beginners!
     
  21. 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
    looks like your project 0,0 is at top right of the material. is that where you set 0,0 in Control?
    the project 0,0 in Estlcam is where you must set the 0,0 on the material.
    conventionally at bottom left, but can be centered or anywhere else you have a feature you can measure.
    Very important that whatever is used in the drawing must also be used on the machine.
     
  22. NTM Nico

    NTM Nico New
    Builder

    Joined:
    Jan 9, 2023
    Messages:
    6
    Likes Received:
    0

    Yes it is true that standard in Estlcam the 0 point is lower left, but you can also indicate where you want it yourself, I have therefore chosen for upper right
     

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