Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: G50 Shift?

  1. #1
    Registered
    Join Date
    Feb 2009
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    G50 Shift?

    Hi,

    I am struggling with understanding exactly what is going on when doing a G50 shift. Here is an example of the code I am looking at the beginning of the program:

    $1
    M118
    M9
    G99M52M97M6
    G50Z-.015
    G0Z-.05X.285


    So am I to believe that when G50 Z-.015 is called, that is setting the Z Axis at 0 at -.015 over the part or away from the part?

    Then when I do a Z-.05 move, where is the tool? Where is the steel?

    Thanks a lot, still learning these swiss machines.


  2. #2
    Moderator HuFlungDung's Avatar
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    4,826
    Downloads
    0
    Uploads
    0
    If this is standard usage of G50 and you are running in absolute mode, the line:
    G50 Z-.015
    implies that a new Z0 datum was set .015" in front of the current position.
    So, the next line
    G0 Z-.05
    will cause the tool to move the incremental remaining distance, Z-.035 further towards the chuck. This will satisfy the new Z0 datum that was set with the G50.
    First you get good, then you get fast. Then grouchiness sets in.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Moderator tobyaxis's Avatar
    Join Date
    Jan 2006
    Location
    USA
    Posts
    4,394
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by RC-CNC View Post
    Hi,

    I am struggling with understanding exactly what is going on when doing a G50 shift. Here is an example of the code I am looking at the beginning of the program:

    $1
    M118
    M9
    G99M52M97M6
    G50Z-.015
    G0Z-.05X.285


    So am I to believe that when G50 Z-.015 is called, that is setting the Z Axis at 0 at -.015 over the part or away from the part?

    Then when I do a Z-.05 move, where is the tool? Where is the steel?

    Thanks a lot, still learning these swiss machines.
    All Cuts in the Stock are going to be Z+ while Z- is the opposite, (away from the tool).

    Think about where the Z Axis Spindle is in relationship to the Cartesian Coordinate Table.
    Toby D.
    "Imagination and Memory are but one thing, but for divers considerations have divers names"
    Schwarzwald

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

    www.refractotech.com


  4. #4
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    277
    Downloads
    0
    Uploads
    0
    The G50 in THAT case is defining where the STOCK is as you start the program. There is a "theoretical" ZERO in your machine, the location of the the tool holder in the gang tool plate, and the cutoff tool you have in the machine has an insert that has an edge closer to the guide bushing by .010". You also need to have some material to face off, usually .005", so that is where the -.015" comes from. Now after this is read you will retract the cutoff tool and call the face tool into position. When you command "G0Z0" the stock will move OUT that .015" there by giving you .005" to remove during the facing operation. You should also note that at the END of the program after the cutoff you will see a line of code that sends the Main spindle BACK to that position WITH THE COLLET OPEN, "M6", "G0Z-.015". This is how you are able to run bar stock.


  • #5
    Registered
    Join Date
    Feb 2009
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0
    Thanks for all replies!

    Let me get this straight,

    G50Z-.015 will do a GRID SHIFT (coordinate system set) setting the GRID 0 at .015 in the Z- direction. The machine will think that the end of the part (machine 0) is .015 away from the tool.

    Z+ Z-
    <- ->

    Calling G0Z0 would then move the stock that .015 to make the shifted grid 0 be the same as the machine 0 thereby having the stock actually stick out .015 past the edge of the tool.

    Doing a facing operation at Z0 would face .015 off the end of the part and establish the end of the part at machine 0.

    The G0Z-.05 call moves the stock .050 away from the tool to allow for the tool to be retracted.



    If I were to do a G50Z.015 (positive direction) shift, and then subsequently doing a G0Z0 call, the stock would actually retract .015 away from the tool and establish machine 0 as .015 AWAY from the tool (in space). Correct?


  • #6
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    277
    Downloads
    0
    Uploads
    0
    You are correct. This method although it seems rather insane to a "non" swiss person, allows a much cleaner program result than using offsets for tool geometry.
    Attached is a pdf that explains more.
    Attached Thumbnails Attached Thumbnails G50 Shift?-g50-uses.pdf  


  • #7
    Registered
    Join Date
    Oct 2008
    Location
    UK
    Posts
    31
    Downloads
    0
    Uploads
    0
    Hi

    All the answers regarding your G50 query are correct but in case you were unaware (you did say you were a newbie) the M118 command is cancelling the collision detection at the start of the program. Although you often have to do this on the machines, (particularly when working close to the subspindle nut) you should be aware that you could potentially have a collision as the machine is not checking for this throughout the program.

    I often thinks its best to cancel the alarm only when you need it. I find that depending on tool setup you can run programs on most Citizens (I assume your machine is probably a C16 or L20 machine?) without having to cancel the alarm at all.

    Anyway good luck!


  • #8
    Moderator tobyaxis's Avatar
    Join Date
    Jan 2006
    Location
    USA
    Posts
    4,394
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by RC-CNC View Post
    Thanks for all replies!

    Let me get this straight,

    G50Z-.015 will do a GRID SHIFT (coordinate system set) setting the GRID 0 at .015 in the Z- direction. The machine will think that the end of the part (machine 0) is .015 away from the tool.

    Z+ Z-
    <- ->

    Calling G0Z0 would then move the stock that .015 to make the shifted grid 0 be the same as the machine 0 thereby having the stock actually stick out .015 past the edge of the tool.

    Doing a facing operation at Z0 would face .015 off the end of the part and establish the end of the part at machine 0.

    The G0Z-.05 call moves the stock .050 away from the tool to allow for the tool to be retracted.



    If I were to do a G50Z.015 (positive direction) shift, and then subsequently doing a G0Z0 call, the stock would actually retract .015 away from the tool and establish machine 0 as .015 AWAY from the tool (in space). Correct?
    YES!! Just remember that you can set a G50 (Coordinate Zero Anywhere in the Stroke of an Axis)

    In theory you can set the A or B Axis Gang Slides for End Mills, Drills etc. If you do not want to use the Offset or Geometry Machine Positions.
    You can do this when doubling and tripling operations using the same tool.
    Toby D.
    "Imagination and Memory are but one thing, but for divers considerations have divers names"
    Schwarzwald

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

    www.refractotech.com


  • #9
    Moderator tobyaxis's Avatar
    Join Date
    Jan 2006
    Location
    USA
    Posts
    4,394
    Downloads
    0
    Uploads
    0
    Oh, also remember that it is the Bar Stock your Moving in the Z Axis not a Turret, unless your using one of the newer configurations. They have the Turrets I wanted, but the Boss didn't want to spend the extra $$$.
    Toby D.
    "Imagination and Memory are but one thing, but for divers considerations have divers names"
    Schwarzwald

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

    www.refractotech.com


  • #10
    Registered
    Join Date
    Nov 2009
    Location
    USA
    Posts
    12
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cogsman1 View Post
    The G50 in THAT case is defining where the STOCK is as you start the program. There is a "theoretical" ZERO in your machine, the location of the the tool holder in the gang tool plate, and the cutoff tool you have in the machine has an insert that has an edge closer to the guide bushing by .010". You also need to have some material to face off, usually .005", so that is where the -.015" comes from. Now after this is read you will retract the cutoff tool and call the face tool into position. When you command "G0Z0" the stock will move OUT that .015" there by giving you .005" to remove during the facing operation. You should also note that at the END of the program after the cutoff you will see a line of code that sends the Main spindle BACK to that position WITH THE COLLET OPEN, "M6", "G0Z-.015". This is how you are able to run bar stock.
    Why would you G50 the whole program for the part-off width? Why not Just G50 the part off tool.

    For instance

    T100
    G50 W-.01

    cutoff

    G50 W.01
    M99


  • #11
    Registered
    Join Date
    Jan 2005
    Location
    USA
    Posts
    277
    Downloads
    0
    Uploads
    0
    When you first turn on the machine the "work coordinate" for the "Z" axis would be some huge number like -8.4567 so when you start the cycle and tell the stock to go to "0" it would shoot out 8.4567. You MUST define your starting location which is different depending on the cutoff tool that is in front of the stock at starting.
    FYI, the "G50" does NOT move anything just changes the work coordinate system numbers.


  • #12
    Registered
    Join Date
    Nov 2009
    Location
    USA
    Posts
    12
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by cogsman1 View Post
    When you first turn on the machine the "work coordinate" for the "Z" axis would be some huge number like -8.4567 so when you start the cycle and tell the stock to go to "0" it would shoot out 8.4567. You MUST define your starting location which is different depending on the cutoff tool that is in front of the stock at starting.
    FYI, the "G50" does NOT move anything just changes the work coordinate system numbers.
    understood. So then just put a G121 or a G50Z0 in your header.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. work shift
      By teamus in forum Hardinge Lathes
      Replies: 22
      Last Post: 06-10-2009, 06:32 AM
    2. Newbie- Z-SHIFT RESET?
      By mmussack in forum G-Code Programing
      Replies: 0
      Last Post: 05-07-2008, 06:08 PM
    3. Shift knobs
      By hot knobs in forum Trade Shows and Events
      Replies: 2
      Last Post: 08-12-2007, 08:34 AM
    4. Anyone need help on 3rd shift??
      By AMCjeepCJ in forum Milltronics
      Replies: 0
      Last Post: 12-22-2005, 02:34 AM
    5. Grid Shift
      By scuba in forum General Metal Working Machines
      Replies: 1
      Last Post: 10-13-2004, 04:50 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.