Tuesday, December 16, 2014

G90 and G91 Positioning gcodes

GCode G90 and G91 Absolute and incremental Positioning

In a CNC Programming the tool movement end point is always positioned by using two positioning G-Codes. They are:
1)      G90 Absolute positioning.
2)      G91 Incremental Positioning.

1)   G90 Absolute Positioning G-Code:

When Using G-code G90 (absolute positioning) Command, The end positioning of the tool movement is always from the absolute point (Absolute Zero) or the fixed point.  All the x y and z co-ordinate movements are calculated from the Zero point or the Axis Point. Absolute zero point is always set on the mid of the center table or the corner of the part or Center of the hole depending on the machines and the complexity of the part. In simple words “Absolute zero” is where the dimensions of the part program are defined from.
When using G90 the end point movement is the machine would go to that exact location from part zero, regardless of where it began, within the travel of the machine tool.

Example for G-Code G90 (Absolute Positioning):

N170 G90 G01 X-3 Y-2 F50;
As shown in the above code line the tool want to move to a position of 3 inches to the left, and 2 inches down from part zero was programmed, suppose if your tool somewhere in X500 Y500 position and when the G90 is called it moves to X-3 and Y-2 compared from absolute Zero.

2)   G91 Incremental Positioning G-Code:

When using G-code G91 (Incremental Positioning) Command, the tool always moves incrementing the last position value i.e., the control thinks that the last position of the tool is zero point and adds up the new position coded.  When using a G-code G91 incremental position command, each measurement or move is the actual distance to the next location is always from the current location. This G-code is modal G-code and is not cancelled until G90 is called. G91 makes all subsequent x y and z incremental throughout the program until it is cancelled.

In general, the G91 Incremental positioning G-code is used when repeating motions within a subprogram, for example, if you have four identical pockets to machine, then you can specify the motions incrementally to machine one pocket. Then just call up the subroutine again to repeat the commands to do another pocket at a new location. By doing this you can save programming effort to all the pockets.

Example for G-Code G91 (Incremental Positioning):

N170 G91 G01 X-3 Y-2 F50;
As shown in the above code line the tool want to move to a position of 3 inches to the left, and 2 inches down from the last tool position, suppose if your tool somewhere in X500 Y500 position and when the G91 is called as above example it moves to X497 and Y498 compared from absolute Zero.



18 comments:

  1. It's very useful to me, because i am beginer of learn the program

    ReplyDelete
  2. Great post!!!
    Sanjay Precision Industries Provide CNC and VMC machine parts. We are manufacturers who bring in use the finest materials like Mild steel, Stainless steel grades, cast iron, investment casting and brass & aluminum.

    Turned machined brush manufacturers

    ReplyDelete
  3. The other day, while I was at work, my sister stole my iPad and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views. I know this is completely off topic but I had to share it with someone!
    CNC Machining edmonton

    ReplyDelete
  4. Your blog is very useful and provide tremendous facts. It is going to change the way one think by a sharp angle. Edge polishing, angle polishing and facet optical polishing.

    ReplyDelete
  5. This is something I ‘ve been searching for for a while.I’m thankful to you for writing this article. Custom Optical Coatings and Thin Film Coatings.

    ReplyDelete
  6. I was very impressed by your article. I hope others feel the same and you continue to share your knowledge with us. Aluminum Nitride Machining Services.

    ReplyDelete
  7. You always write fabulous. This is third time I am reading any of your blog and again finding it inspirational one. http://ceramicsubstrates.com/

    ReplyDelete
  8. Your ideas are very useful. Actually one of my friends is planning to work in this field, so I’ll definitely recommend your post to him. Many thanks to you. Full Service CNC and Manual Ceramic Machining.

    ReplyDelete
  9. Undoubtedly you are a marvelous writer. This post of yours will work as a great resource of information wherefrom one can get rich amount of data. Edge Rounding Deburring Machines and Equipment.

    ReplyDelete
  10. Nothing wrong if I say that you are really a wonderful writer. You always raise the social causes in your article which is respectful and admirable for me as an individual. Glass CNC Machining Service Hard Materials, Glass Cutting Service.

    ReplyDelete
  11. I wonder how you could raise all those points which were there in my mind too. Though it was a tough subject but nice work of articulation has been shown in whole blog. Ceramic Substrates and Technical Ceramics .

    ReplyDelete
  12. I am interested in reading about more of the similar topics and would like to have further information on the same subject. Hope to see the next blog soon. Thanks.
    fused silica polishing service

    ReplyDelete
  13. MAYBE EXPLAIN THE USE OF THE L VARABLE TO REPEAT THE INCREMENT SUCH AS L5 RPEATS THE INCREMENT 5 TIMES SIMILAR TO A FOR NEXT LOOP.

    ReplyDelete
  14. Your blog held my interest right to the very end, which is not always an easy thing to do!! Ceramic CNC Machining Services.

    ReplyDelete
  15. Uratech USA Inc. is renowned for its expertly designed and meticulously manufactured CNC tool storage solutions, engineered to meet the demands of industrial settings. Specializing in a diverse range of CNC tool holders such as CAT, BT, NMTB, DV, and ISO, Uratech’s storage products stand out for their versatility, durability, and top-notch performance.

    ReplyDelete