G90 And G91 Positioning Gcodes

Search This Blog

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. UnknownJuly 13, 2015 5:59 am

    Learn Programming with C++

    ReplyDeleteReplies
      Reply
  2. UnknownJuly 19, 2018 5:29 pm

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

    ReplyDeleteReplies
      Reply
  3. hd knowledge.comAugust 07, 2018 11:10 pm

    very use full artical ABSOLUTE CO-ORDINATE SYSTEM G90 II INCRIMENTAL CO-ORDINATE SYSTEM G91 II

    ReplyDeleteReplies
      Reply
  4. Sanjay PrecisionSeptember 11, 2018 10:13 am

    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

    ReplyDeleteReplies
      Reply
  5. Mr.MSRJanuary 27, 2019 2:34 pm

    Thanks Clear explanations

    ReplyDeleteReplies
      Reply
  6. dinowendsOctober 01, 2019 12:29 pm

    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

    ReplyDeleteReplies
      Reply
  7. mandi indarsSeptember 21, 2020 11:29 am

    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.

    ReplyDeleteReplies
      Reply
  8. mandi indarsSeptember 25, 2020 11:14 am

    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.

    ReplyDeleteReplies
      Reply
  9. mandi indarsOctober 06, 2020 3:36 pm

    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.

    ReplyDeleteReplies
      Reply
  10. mandi indarsOctober 08, 2020 11:28 am

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

    ReplyDeleteReplies
      Reply
  11. mandi indarsOctober 12, 2020 10:30 am

    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.

    ReplyDeleteReplies
      Reply
  12. mandi indarsOctober 14, 2020 10:47 am

    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.

    ReplyDeleteReplies
      Reply
  13. mandi indarsOctober 16, 2020 11:21 am

    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.

    ReplyDeleteReplies
      Reply
  14. AdamJanuary 11, 2021 2:47 pm

    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 .

    ReplyDeleteReplies
      Reply
  15. AdamJune 25, 2021 6:43 pm

    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

    ReplyDeleteReplies
      Reply
  16. UnknownMarch 06, 2022 6:33 am

    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.

    ReplyDeleteReplies
      Reply
  17. AnonymousAugust 03, 2023 4:51 pm

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

    ReplyDeleteReplies
      Reply
  18. mikejohnstonNovember 21, 2024 12:18 pm

    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.

    ReplyDeleteReplies
      Reply
Add commentLoad more... Newer Post Older Post Home Subscribe to: Post Comments (Atom)

Total Pageviews

Blog Archive

  • ▼  2014 (25)
    • ▼  December (7)
      • G90 and G91 Positioning gcodes
      • G52 Offset Local Coordinate System
      • G50 and G51 Scaling and Mirroring
      • G43 G44 and G49 tool length compensation
      • G40 G41 and G42 Cuttercompensation
      • G28 Return Home
      • G20 & G21 (Unit Selection Codes)

Từ khóa » G90 G91 Cnc