585,975 active members*
4,537 visitors online*
Register for free
Login
IndustryArena Forum > Manufacturing Processes > Milling > Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or other?
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2014
    Posts
    9

    Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or other?

    Hi all,
    I'm using a 4.25" long 3/8" end mill for clearing thick stock. At the beginning of the job when the rapid movement to the start position happens, the z drops down below stock 0 and cuts it's way to the start point. At the end of the job it does the same when it returns to home. I fixed the issue at the beginning by adding a G1 Z0.5 command before the move to the starting point, but at the end of the job, adding the same command before the move to home doesn't work and the tool moves down below 0 and cuts it's way home. I'm using a Chinese 3 axis 1325 cnc router with Xulifeng Mach3 motion control card, Mach3 on Windows 10, generating toolpaths in Fusion 360. This is the only tool that I have this problem with. I'm milling 3" foam and I set z0 using the paper method since the probe won't fit under the tool. About 3" from collet to end of tool. It's dropping down about .8" below stock 0. Does this have something to do with tool offset compensation? Does Mach3 have a limit to how long a tool it can compensate for? It runs the rest of the program fine with appropriate retract and clearance heights. Anyone have any ideas?

    End of program:
    X16.6695 Y23.3403 Z-0.4923
    X16.669 Y23.3397 Z-0.4878
    X16.6688 Y23.3395 Z-0.4833
    Z0.6

    G28 G91
    G90
    G1 Z0.5
    G28 G91 X0. Y0.
    G90
    M30

  2. #2
    Join Date
    Jan 2018
    Posts
    1516
    Quote Originally Posted by AmplifiedLight View Post
    Hi all,
    I'm using a 4.25" long 3/8" end mill for clearing thick stock. At the beginning of the job when the rapid movement to the start position happens, the z drops down below stock 0 and cuts it's way to the start point. At the end of the job it does the same when it returns to home. I fixed the issue at the beginning by adding a G1 Z0.5 command before the move to the starting point, but at the end of the job, adding the same command before the move to home doesn't work and the tool moves down below 0 and cuts it's way home. I'm using a Chinese 3 axis 1325 cnc router with Xulifeng Mach3 motion control card, Mach3 on Windows 10, generating toolpaths in Fusion 360. This is the only tool that I have this problem with. I'm milling 3" foam and I set z0 using the paper method since the probe won't fit under the tool. About 3" from collet to end of tool. It's dropping down about .8" below stock 0. Does this have something to do with tool offset compensation? Does Mach3 have a limit to how long a tool it can compensate for? It runs the rest of the program fine with appropriate retract and clearance heights. Anyone have any ideas?

    End of program:
    X16.6695 Y23.3403 Z-0.4923
    X16.669 Y23.3397 Z-0.4878
    X16.6688 Y23.3395 Z-0.4833
    Z0.6

    G28 G91
    G90
    G1 Z0.5
    G28 G91 X0. Y0.
    G90
    M30

    Your issue could be the G28
    That tells the machine to go to its MACHINE coordinate home position. This is completely different to your WORK coordinate 0 position.
    If this had not been set properly (or at all) it will go to wherever it thinks it is.

  3. #3
    Join Date
    May 2014
    Posts
    9

    Re: Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or oth

    Quote Originally Posted by dazp1976 View Post
    Your issue could be the G28
    That tells the machine to go to its MACHINE coordinate home position. This is completely different to your WORK coordinate 0 position.
    If this had not been set properly (or at all) it will go to wherever it thinks it is.
    The machine coordinates have been set correctly. I guess that could be it, but I wonder why this issue doesn't show with any other tool. Every other tool goes to safe retract height before travelling.

  4. #4
    Join Date
    Feb 2006
    Posts
    992

    Re: Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or oth

    Quote Originally Posted by AmplifiedLight View Post
    Hi all,
    I'm using a 4.25" long 3/8" end mill for clearing thick stock. At the beginning of the job when the rapid movement to the start position happens, the z drops down below stock 0 and cuts it's way to the start point. At the end of the job it does the same when it returns to home. I fixed the issue at the beginning by adding a G1 Z0.5 command before the move to the starting point, but at the end of the job, adding the same command before the move to home doesn't work and the tool moves down below 0 and cuts it's way home. I'm using a Chinese 3 axis 1325 cnc router with Xulifeng Mach3 motion control card, Mach3 on Windows 10, generating toolpaths in Fusion 360. This is the only tool that I have this problem with. I'm milling 3" foam and I set z0 using the paper method since the probe won't fit under the tool. About 3" from collet to end of tool. It's dropping down about .8" below stock 0. Does this have something to do with tool offset compensation? Does Mach3 have a limit to how long a tool it can compensate for? It runs the rest of the program fine with appropriate retract and clearance heights. Anyone have any ideas?

    End of program:
    X16.6695 Y23.3403 Z-0.4923
    X16.669 Y23.3397 Z-0.4878
    X16.6688 Y23.3395 Z-0.4833
    Z0.6

    G28 G91 <<<<< G28G91Z0
    G90 <<<Remove this
    G1 Z0.5 <<<Remove this
    G28 G91 X0. Y0. <<<<<< X0 Y0
    G90 <<<Remove this
    M30
    Switch back and forth with the absolute and increment mode, in this case is unnecessary. I like to kept program in absolute so at the begin of the problem, the safe line is G20G17G90G80G40 to cancel pretty much everything out.

    - - - Updated - - -

    Quote Originally Posted by AmplifiedLight View Post
    Hi all,
    I'm using a 4.25" long 3/8" end mill for clearing thick stock. At the beginning of the job when the rapid movement to the start position happens, the z drops down below stock 0 and cuts it's way to the start point. At the end of the job it does the same when it returns to home. I fixed the issue at the beginning by adding a G1 Z0.5 command before the move to the starting point, but at the end of the job, adding the same command before the move to home doesn't work and the tool moves down below 0 and cuts it's way home. I'm using a Chinese 3 axis 1325 cnc router with Xulifeng Mach3 motion control card, Mach3 on Windows 10, generating toolpaths in Fusion 360. This is the only tool that I have this problem with. I'm milling 3" foam and I set z0 using the paper method since the probe won't fit under the tool. About 3" from collet to end of tool. It's dropping down about .8" below stock 0. Does this have something to do with tool offset compensation? Does Mach3 have a limit to how long a tool it can compensate for? It runs the rest of the program fine with appropriate retract and clearance heights. Anyone have any ideas?

    End of program:
    X16.6695 Y23.3403 Z-0.4923
    X16.669 Y23.3397 Z-0.4878
    X16.6688 Y23.3395 Z-0.4833
    Z0.6

    G28 G91 <<<<< G28G91Z0
    G90 <<<Remove this
    G1 Z0.5 <<<Remove this
    G28 G91 X0. Y0. <<<<<< X0 Y0
    G90 <<<Remove this
    M30
    Switch back and forth with the absolute and increment mode, in this case is unnecessary. I like to kept program in absolute so at the begin of the problem, the safe line is G20G17G90G80G40 to cancel pretty much everything out.
    The best way to learn is trial error.

  5. #5
    Join Date
    Aug 2009
    Posts
    1573

    Re: Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or oth

    ...sub-programs in inc---to rinse and repeat...tictactoe and thx moe and joe

  6. #6
    Join Date
    Jan 2005
    Posts
    15362

    Re: Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or oth

    Quote Originally Posted by AmplifiedLight View Post
    Hi all,
    I'm using a 4.25" long 3/8" end mill for clearing thick stock. At the beginning of the job when the rapid movement to the start position happens, the z drops down below stock 0 and cuts it's way to the start point. At the end of the job it does the same when it returns to home. I fixed the issue at the beginning by adding a G1 Z0.5 command before the move to the starting point, but at the end of the job, adding the same command before the move to home doesn't work and the tool moves down below 0 and cuts it's way home. I'm using a Chinese 3 axis 1325 cnc router with Xulifeng Mach3 motion control card, Mach3 on Windows 10, generating toolpaths in Fusion 360. This is the only tool that I have this problem with. I'm milling 3" foam and I set z0 using the paper method since the probe won't fit under the tool. About 3" from collet to end of tool. It's dropping down about .8" below stock 0. Does this have something to do with tool offset compensation? Does Mach3 have a limit to how long a tool it can compensate for? It runs the rest of the program fine with appropriate retract and clearance heights. Anyone have any ideas?

    End of program:
    X16.6695 Y23.3403 Z-0.4923
    X16.669 Y23.3397 Z-0.4878
    X16.6688 Y23.3395 Z-0.4833
    Z0.6

    G28 G91
    G90
    G1 Z0.5
    G28 G91 X0. Y0.
    G90
    M30
    In your program you move the Z0.6 and then you move it down to Z0.5 the whole end of the program is kind of messed up

    End of program:
    Z0.6

    G28 G91
    G90
    G1 Z0.5
    G28 G91 X0. Y0.
    G90
    M30

    Check what settings you have for the G28 in Mach3 this is in the Config Tab under Homing / Limits these G28 positions can be set to where you want the machine to go if they are 0.0 then they have not been activated, if this is setup you just need to use a G28 by itself and the machine will move to whatever you have set in the G28 Boxes

    You can test this out in MDI with just using G28

    G28 is not ideal to use in a program so try this below

    This is all you need at the end of your program
    G0Z.6 The last Z move this can be any number you need to park to clear your work or do a Tool Change
    G53X0Y0.
    M30
    Mactec54

  7. #7
    Join Date
    May 2014
    Posts
    9

    Re: Z drops below 0 when return to X0 Y0 at end of job. Is this a Mach3 issue, or oth

    Thanks, the code is generated by Fusion 360's mach3 post processor. I'll give your suggestion a try. But I still don't know why this is an issue in the first place since it's only with this tool. Is there a length limit that Mach3 can handle?
    Quote Originally Posted by mactec54 View Post
    In your program you move the Z0.6 and then you move it down to Z0.5 the whole end of the program is kind of messed up

    End of program:
    Z0.6

    G28 G91
    G90
    G1 Z0.5
    G28 G91 X0. Y0.
    G90
    M30

    Check what settings you have for the G28 in Mach3 this is in the Config Tab under Homing / Limits these G28 positions can be set to where you want the machine to go if they are 0.0 then they have not been activated, if this is setup you just need to use a G28 by itself and the machine will move to whatever you have set in the G28 Boxes

    You can test this out in MDI with just using G28

    G28 is not ideal to use in a program so try this below

    This is all you need at the end of your program
    G0Z.6 The last Z move this can be any number you need to park to clear your work or do a Tool Change
    G53X0Y0.
    M30

Similar Threads

  1. HELP difficulty setting end of travel and return home
    By Patfrs in forum UCCNC Control Software
    Replies: 2
    Last Post: 07-08-2020, 07:18 AM
  2. mach 3 does not return to x0y0 at end of cycle
    By sn0wchyld in forum Machines running Mach Software
    Replies: 2
    Last Post: 01-24-2014, 07:15 PM
  3. End of Job, Return to Mazhine Zero?
    By JohnToner in forum Tormach Personal CNC Mill
    Replies: 3
    Last Post: 12-10-2013, 09:24 AM
  4. Citizen L20 Zero Return issue
    By Superfly33 in forum CNC Swiss Screw Machines
    Replies: 5
    Last Post: 02-25-2010, 02:14 PM

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
  •