586,655 active members*
3,742 visitors online*
Register for free
Login
Results 1 to 20 of 20
  1. #1
    Join Date
    Aug 2011
    Posts
    252

    Tool Change - Machine limit reached

    I have another problem, when tool is longer than previous tool used, when it return to work position from tool change position it stop with error Machine limit reached, when is shorter it have no problem.
    The start of changing the tool is from Z0 machine coordinate system because at the end of any toolpath I have a G28 Z0 for safety.

  2. #2
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    The solution is to change Safe Height to -50 and Z position of tool change to -50 too. (to allow the differences from tool to tool)
    But that is not the way it should work, I think.

    Edit: No, this changes not working. It's about Z height when start the tool change. If is Z0 in machine coordinate and the tool is longer than previous it will stop with error.
    If Z is lower it return to that position without error.

  3. #3
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    Machine limit reached error is displayed if machine tries to move outside its limits.

    If your new tool is longer then "previous position" is higher and is probably outside machine limits.

  4. #4
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    Machine limit reached error is displayed if machine tries to move outside its limits.

    If your new tool is longer then "previous position" is higher and is probably outside machine limits.
    I start simulation, Z is at zero, change tool to no.1, measure tool longer than tool no.0, here is a video

    https://www.youtube.com/watch?v=w9FaH06te70

  5. #5
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    Looks like your tool measuring is changing machine position.
    It is possible to handle tool length changes this way but you can not use machine limits in Z direction if you do this.

    You should use tool offset to handle tool lengths.

  6. #6
    Join Date
    Aug 2011
    Posts
    252
    Quote Originally Posted by PlanetCNC View Post
    Looks like your tool measuring is changing machine position.
    It is possible to handle tool length changes this way but you can not use machine limits in Z direction if you do this.

    You should use tool offset to handle tool lengths.
    I did not modify tool change script and I use tool offset.

  7. #7
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    If I disable "AutoReturn" then is moving up from fixed tool sensor (at Z zero in machine coordinate) and at that height if I manually command to go to previous position is no error.
    So I think may be something wrong there. Maybe does not consider the tool offset when is returning to position.
    For now, when I start a g-code I lower Z for first toll measure and for sub tool change I removed the G28 Z0 at the end of every toolpath...

    Edit: Have you tested as I did in the video? It is only on my end this error?

  8. #8
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    I can not test this because I do not have your profile so I can not give you exact answer, what are you doing wrong.

    What I see is, that difference in length between T1 and T0 is 90mm and on auto return machine will try to compensate for this difference but it can't because it is out of machine limits.
    I suspect your fixed sensor is not set correctly. How did you set "Sensor position Z" value?
    https://planet-cnc.com/measure-tool-...-tng-software/

    One other note - auto return should be used with g-codes that do not support tool change. Proper g-code with tool change does not need auto return and should not be enabled.

  9. #9
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    I can not test this because I do not have your profile so I can not give you exact answer, what are you doing wrong.
    You don't need profile folder, just start to measure a tool that is longer than previous from Z0 machine coordinate system with auto return enabled.

    Edit: That will happen on any machine or profile, because the auto return is trying to move the tool tip to previous position and it can't, tool being longer will trigger the limit. In other words can't start measuring a tool length from Z0 absolute if tool is longer than previous with auto return enabled.

    Another edit: Auto return should only move the X and Y back to position, not Z. I will modify the script for that.

  10. #10
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    You are wrong.
    But you can do whatever you want. Just make sure you don't break any tools because tool tip will be too low. If your tool is longer then it should move higher otherwise it will crash into material.

  11. #11
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    You are wrong.
    But you can do whatever you want. Just make sure you don't break any tools because tool tip will be too low. If your tool is longer then it should move higher otherwise it will crash into material.
    No, I'm not wrong. Did you made the test?
    Higher than Z0 machine position doesn't exist.

  12. #12
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    And that is why you get an error then you want to move higher. .

  13. #13
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    And that is why you get an error then you want to move higher. .
    Quote Originally Posted by adidoro View Post
    The start of changing the tool is from Z0 machine coordinate system because at the end of any toolpath I have a G28 Z0 for safety.
    I've said that from the first post. Anyway I've commented the Z move from return in M6 script and problem is solved.

  14. #14
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    You are still wrong.

    Btw, why do you have G28 Z0 code and do you know what it does?

  15. #15
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    You are still wrong.
    No, I'm not. I will ask you again, did you made that simple test?
    Start to measure a tool that is longer than previous from Z0 machine coordinate system with auto return enabled.
    And tell me if you get that error or not.

    Quote Originally Posted by PlanetCNC View Post
    Btw, why do you have G28 Z0 code and do you know what it does?
    Yes, I know.

  16. #16
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    Yes, I get an error. And this is correct. You want machine to go to position that is outside machine limits. If you do this with soft limits turned on you get this error because this is not possible.
    If you change script like you did, you will crash machine into material.

    Perhaps you assume that there is enough room between your start position and material but this is usually not true. Specially not true if you use "return" feature the way it was intended to be used.

  17. #17
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Ok, thank you for confirmation.
    I have no choice and I don't see any trouble with not getting to that Z position before it had, because is happening after X and Y arrived at previous position from tool change, so there will not be any issues.
    Of course I have in settings Safe Height = 0 and Position Z = 0 for Tool Change.
    I talk about this from M6:
    Code:
    o<ar> if [#<_tc_autoreturn>]
      G00 X#<wstartx> Y#<wstarty>
    ;  G00 Z#<wstartz>
    O<ar> endif
    The travel from tool change position X and Y will occur before that Z move which give that error.
    Correct me if I'm wrong.

    Edit: In regard to crushing the tool in material it will happen anyway if it's not enough space. That is not controller software responsibilities but the g-code generated with not enough clearance. If clearance is to large and not fit the machine boundaries, that is controller software responsibilities.

  18. #18
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    I just want to explain that "Return" means that tooltip will return to exact same position where previous tooltip was. And if this move is not possible you get an error.

    Obviously you want "Return" to do something else. That does not mean that existing implementation is incorrect. After all, because it is scriptable you can change it to match your needs.
    Here is video showing how return should work:

  19. #19
    Join Date
    Aug 2011
    Posts
    252

    Re: Tool Change - Machine limit reached

    Quote Originally Posted by PlanetCNC View Post
    I just want to explain that "Return" means that tooltip will return to exact same position where previous tooltip was. And if this move is not possible you get an error.
    I understand that, but I just told you about the fact that that error occur to late anyway if the tool is to long, it is after X and Y will move to previous position from tool change and just after the tool crushed in to material the error will occur when will try to move Z to that position.
    By removing that Z move it does nothing wrong about safety for not crushing the tool in material.

    Edit: If it was like this:
    Code:
    o<ar> if [#<_tc_autoreturn>]
      G00 Z#<wstartz>
      G00 X#<wstartx> Y#<wstarty>
    O<ar> endif
    Then that error will prevent the move of X and Y. But this is not a good implementation, just to understand what I mean.

  20. #20
    Join Date
    Mar 2017
    Posts
    1319

    Re: Tool Change - Machine limit reached

    I've changed default script with this code:

    Code:
    o<ar> if [#<_tc_autoreturn>]
      (print,AutoReturn)
      o<chk> if [#<_z> LT #<wstartz>]
        G00 Z#<wstartz>
      o<chk> endif
      G00 X#<wstartx> Y#<wstarty>
      G00 Z#<wstartz>
    o<ar> endif
    If tool is too long, machine will try to get higher if possible. Crash will be avoided.

Similar Threads

  1. Soft Limit Switch reached on Chevlier Anilam 1200t
    By Cfultz in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 09-29-2021, 08:36 PM
  2. TNGv2 Machine Limit Reached
    By theRat in forum PlanetCNC
    Replies: 1
    Last Post: 11-17-2019, 05:06 PM
  3. X Axis First Negative Software Limit Reached - Syntec 6MA
    By cripk8 in forum Chinese Machines
    Replies: 1
    Last Post: 08-02-2019, 06:26 PM
  4. Change tool number limit--possible?
    By Merlin76 in forum Sharp CNC
    Replies: 5
    Last Post: 09-24-2010, 05:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •