XY but no Z movement from G01


Results 1 to 14 of 14

Thread: XY but no Z movement from G01

  1. #1
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default XY but no Z movement from G01

    Hello, I am a novice with CAM and gcodes. I am trying out Fusion 360 for my Chinese JCUT wood router and created my first test 3D pocketing post (Fanuc). Previously I had used Rhino Cam and I remember having to modify the parameters of the Fanuc post but can't recall why or how, just that I do believe the standard FANUC did not work quite right with my machine.

    Anyway, when I run the program, the machine rapids to the correct XYZ with the G00 command (there is Z movement). After this (with the G01 command) however, the path movement is limited to the XY plane in spite of there being Z coordinates in the line. There is no G18 or G19 in the set up lines but I don't think that could be the problem? Any help is greatly appreciated. The first bit of lines are here:


    %
    O1001
    (T1 D=31.75 CR=0. - ZMIN=-109.531 - FLAT END MILL)
    N10 G90 G94 G17 G49 G40 G80
    N15 G21
    N20 G28 G91 Z0.
    N25 G90

    (POCKET2)
    N30 T1 M06
    N35 S5000 M03
    N40 G54
    N45 G00 X130.859 Y128.661
    N50 G43 Z35. H01
    N55 G00 Z12.623 - this part seems to work
    N60 G01 X130.841 Y128.667 Z12.275 F333. - no apparent Z movement here or beyond (I let it run for about 3000 lines before stopping it)
    N65 X130.786 Y128.682 Z11.932
    N70 X130.695 Y128.708 Z11.597
    N75 X130.57 Y128.742 Z11.274
    N80 X130.41 Y128.784 Z10.968
    N85 X130.218 Y128.831 Z10.681
    N90 X129.996 Y128.883 Z10.418
    N95 G03 X129.747 Y128.937 Z10.181 I-3.319 J-14.712
    N100 X129.473 Y128.991 Z9.973 I-3.069 J-14.766
    N105 X129.177 Y129.044 Z9.798 I-2.795 J-14.82
    N110 X128.863 Y129.094 Z9.656 I-2.499 J-14.873
    N115 X128.534 Y129.138 Z9.55 I-2.185 J-14.922
    N120 X128.195 Y129.176 Z9.481 I-1.856 J-14.967

    Similar Threads:


  2. #2
    Member coherent's Avatar
    Join Date
    Apr 2003
    Location
    Arizona, USA
    Posts
    540
    Downloads
    2
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Sounds more like a hardware issue than your code. Can you jog your Z? If so and it is a code problem, it may be as simple as using a different post processor that is known to work with your setup. Try using one of the generic post processors and see if you can find one that works.



  3. #3
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by coherent View Post
    Sounds more like a hardware issue than your code. Can you jog your Z? If so and it is a code problem, it may be as simple as using a different post processor that is known to work with your setup. Try using one of the generic post processors and see if you can find one that works.
    I am novice enough that I don't know what the generic post processors are called. There are several dozen to choose from. Can you let me know an example?

    And, yes, the machine does move/jog in the Z axis without any problem



  4. #4
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Does G01 only in Z work (G91 G01 Z10 F--)



  5. #5
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by sinha_nsit View Post
    Does G01 only in Z work (G91 G01 Z10 F--)
    G01 only makes X and Y move. G00 makes XYZ move. Z will not move with G01.



  6. #6
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by danielcoyle View Post
    G01 only makes X and Y move. G00 makes XYZ move. Z will not move with G01.
    Does G91 G01 Z10 F-- work ?



  7. #7
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by sinha_nsit View Post
    Does G91 G01 Z10 F-- work ?
    i do not know since that line isn't in the file. should i write it in? if so, where?
    in the past the fanuc post processor did not generate a g91 command with rhino cam 1.0. i am using fusion 360 now and it seems to generate more commands from a fanuc post



  8. #8
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    1943
    Downloads
    2
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Is tool 1 defined in the tool table? If not the controller won't know where to go because it has no tool length defined. Most controllers default to a tool length of zero, but yours may be different.



  9. #9
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by danielcoyle View Post
    Hello, I am a novice with CAM and gcodes. I am trying out Fusion 360 for my Chinese JCUT wood router and created my first test 3D pocketing post (Fanuc). Previously I had used Rhino Cam and I remember having to modify the parameters of the Fanuc post but can't recall why or how, just that I do believe the standard FANUC did not work quite right with my machine.

    Anyway, when I run the program, the machine rapids to the correct XYZ with the G00 command (there is Z movement). After this (with the G01 command) however, the path movement is limited to the XY plane in spite of there being Z coordinates in the line. There is no G18 or G19 in the set up lines but I don't think that could be the problem? Any help is greatly appreciated. The first bit of lines are here:


    %
    O1001
    (T1 D=31.75 CR=0. - ZMIN=-109.531 - FLAT END MILL)
    N10 G90 G94 G17 G49 G40 G80
    N15 G21
    N20 G28 G91 Z0.
    N25 G90

    (POCKET2)
    N30 T1 M06
    N35 S5000 M03
    N40 G54
    N45 G00 X130.859 Y128.661
    N50 G43 Z35. H01
    N55 G00 Z12.623 - this part seems to work
    N60 G01 X130.841 Y128.667 Z12.275 F333. - no apparent Z movement here or beyond (I let it run for about 3000 lines before stopping it)
    N65 X130.786 Y128.682 Z11.932
    N70 X130.695 Y128.708 Z11.597
    N75 X130.57 Y128.742 Z11.274
    N80 X130.41 Y128.784 Z10.968
    N85 X130.218 Y128.831 Z10.681
    N90 X129.996 Y128.883 Z10.418
    N95 G03 X129.747 Y128.937 Z10.181 I-3.319 J-14.712
    N100 X129.473 Y128.991 Z9.973 I-3.069 J-14.766
    N105 X129.177 Y129.044 Z9.798 I-2.795 J-14.82
    N110 X128.863 Y129.094 Z9.656 I-2.499 J-14.873
    N115 X128.534 Y129.138 Z9.55 I-2.185 J-14.922
    N120 X128.195 Y129.176 Z9.481 I-1.856 J-14.967
    Kind of strange way to program something like this Z down is negative Z up is positive

    All your moves are positive and they should be negative from the top of your part

    Mactec54


  10. #10
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by mactec54 View Post
    Kind of strange way to program something like this Z down is negative Z up is positive

    All your moves are positive and they should be negative from the top of your part
    yes. i see what you are saying MacTec. the Z values in the lines are absolute values and not relative/incremental (could this be the problem?). if i had posted the entirety of the lines you would see the Z values trend to 0 and then to negative values as the tool path passed into the stock surface. the values you are seeing are happening above the Z=0 point and represent retraction and clearance levels.



  11. #11
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by danielcoyle View Post
    yes. i see what you are saying MacTec. the Z values in the lines are absolute values and not relative/incremental (could this be the problem?). if i had posted the entirety of the lines you would see the Z values trend to 0 and then to negative values as the tool path passed into the stock surface. the values you are seeing are happening above the Z=0 point and represent retraction and clearance levels.
    No Absolute G90 is what you should be working with, canned cycles are normally G91 incremental is the only time it is normally used or if someone is programing by hand

    I would say your drawing is not correct and cam is not working how it should the top of your work should be zero so when you output the program it is going to start from the top of the part and work down, and all the Z moves will be Z-

    Remove the G49 top line this cancels tool offsets which you would never need to do

    Line N20 G0Z0 if you need it to go to Z0 remove the G28G91

    None of this will change how this program will run unless the G49 is causing a problem which I doubt it is at this point, it's just that this code should never be there

    Mactec54


  12. #12
    Flies Fast Superman's Avatar
    Join Date
    Dec 2008
    Location
    Antarctica
    Posts
    3110
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by mactec54 View Post
    Line N20 G0Z0 if you need it to go to Z0 remove the G28G91
    G91 G28 Z0 is reference return to machine Z home (Fanuc)...
    why would he want the spindle origin on his work Z origin.... even if je had a tool in the spindle...CRUNCH

    What I'm not seeing is G94/G95 .... G94 for feed per minute... oops on safety line.
    looks like work Z origin is bottom of the part.... would explain Z+ decreasing to zero

    Try single stepping through program with feedrate override knob at zero & see if each line shows a relative move & when override is increased... that that move is executed according to the nc code.

    Last edited by Superman; 12-12-2018 at 04:49 AM.


  13. #13
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Quote Originally Posted by Superman View Post
    G91 G28 Z0 is reference return to machine Z home (Fanuc)...
    why would he want the spindle origin on his work Z origin.... even if je had a tool in the spindle...CRUNCH

    What I'm not seeing is G94/G95 .... G94 for feed per minute... oops on safety line.
    looks like work Z origin is bottom of the part.... would explain Z+ decreasing to zero

    Try single stepping through program with feedrate override knob at zero & see if each line shows a relative move & when override is increased... that that move is executed according to the nc code.
    He is not using a Fanuc control or a machining center he is running a CNC Router

    Mactec54


  14. #14
    Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    171
    Downloads
    0
    Uploads
    0

    Default Re: XY but no Z movement from G01

    Thanks guys. I rewrote the lines and will try them tomorrow. The model/drawing seems good and simulates just fine so if that is the problem I will need to dig into that further that my current understanding allows. Will let you know how it goes.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

XY but no Z movement from G01

XY but no Z movement from G01