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

Thread: G91 in canned cycles

  1. #1
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Post G91 in canned cycles

    Hi All

    Suppose we have a program -
    G91 G81 G98 X4 Y5 Z-0.6 R1.8 L3

    Than does G91 gets cancelled after completion of the Canned cycle ?


    & G90 is followed thereafter

    Thanks,
    Ash


  2. #2
    Registered Torsten's Avatar
    Join Date
    Nov 2004
    Location
    U.S.A.
    Posts
    260
    Downloads
    0
    Uploads
    0
    G90 and G91 are modal, they stay in effect until changed by the other.
    So is G81, you want to call G80 cycle cancel when done.


  3. #3
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Question But

    But IS generally G91 is used in conjunction with any canned cycle....?

    What is the industry Standard ?


    Ash


  4. #4
    Moderator tobyaxis's Avatar
    Join Date
    Jan 2006
    Location
    USA
    Posts
    4394
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Ashish B View Post
    But IS generally G91 is used in conjunction with any canned cycle....?

    What is the industry Standard ?


    Ash
    No, G91 is Incremental Coordinates and G90 is Absolute Coordinates Programing
    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


  • #5
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Hmm

    Ya, I know that G90 & G91 represents Absolute & Incremental Programming.

    But while writing canned cycle, what is the pattern followed. Is G91 used while writing a canned cycle.

    A example of canned cycle will be a favour....

    Ash


  • #6
    Moderator tobyaxis's Avatar
    Join Date
    Jan 2006
    Location
    USA
    Posts
    4394
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Ashish B View Post
    Ya, I know that G90 & G91 represents Absolute & Incremental Programming.

    But while writing canned cycle, what is the pattern followed. Is G91 used while writing a canned cycle.

    A example of canned cycle will be a favour....

    Ash
    Using G91 in a Canned Cycle is up to the programmer. Personally I do not use G91 in a Drilling or Boring Cycle because I see no point.

    I have however used G91 for Sub-Programs. An example would be if the Stock/Material is too thick and will require many roughing passes because the shell mill only has a max DOC of .15 and I have to remove 1 inch of stock.

    The first rule of CNC Programming is that the only limit is the programmer and their imagination.
    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


  • #7
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Ashish B View Post
    Ya, I know that G90 & G91 represents Absolute & Incremental Programming.

    But while writing canned cycle, what is the pattern followed. Is G91 used while writing a canned cycle.

    A example of canned cycle will be a favour....

    Ash
    If you are writing you own canned cycles one of the first things you would do is store the current state of G90/91 then switch it to what you want to use, do the cycle then put the G90/91 back to what it was before giving control back to the g-code program.


  • #8
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    Hi

    Well i don't fall into experitise category to write a self canned cycle with help of macro programming.....


    I understand that there is no sense to use G91 in canned cycles & G90 is the best & industry standard for any canned cycle.


    Thanks a Lot, FRIENDS

    Ash


  • #9
    Registered Torsten's Avatar
    Join Date
    Nov 2004
    Location
    U.S.A.
    Posts
    260
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Ashish B View Post
    Well i don't fall into experitise category to write a self canned cycle with help of macro programming.....


    I understand that there is no sense to use G91 in canned cycles & G90 is the best & industry standard for any canned cycle.


    Thanks a Lot, FRIENDS

    Ash
    Well I have not used this a lot but there are reasons one may use G91 in a Drill cycle.
    Example:
    G91 G81 X1. Y0. Z-1. R.1 F3. L6

    Would Drill six holes along the X Axis, spaced 1. inch apart.
    I don't know if your control supports this repetition command.
    Even if, CAM processors usually are not setup for this and would use the longer sequence of posting the 6 locations in G90 mode.


  • #10
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0
    Hmmm....

    Getting your point....Lenghty but a must preferred enggineering practice.

    Ash


  • #11
    Flies Superman's Avatar
    Join Date
    Dec 2008
    Location
    Krypton
    Posts
    1772
    Downloads
    0
    Uploads
    0
    The G90/G91 codes switches the machine "state", same as the inch/metric or G94/G95 codes

    It can be used on 1 block ( line of code ), and is executed before any movement occurs, like the feedrate (F) address is executed before moving.
    or
    on a line by itself

    Your manuals should also tell you the protocols of execution, when that address is actually performed, no matter where you have placed it on the line of code.
    ie G1 M9 G91 X5. Y0. Z0. F.01 G95 G40 ( this is a little mixed up, but the control will place and execute it in a set order of priority, ie G91 G1 G95 G40 F will happen before movement, M9 after target is reached )

    as stated earlier- it is modal---( active until another code from the same "group" is run )
    all codes have some sort of "group" policy ( refer to your machine manual )
    ie G0/G1/G2/G3...make-up 1 group
    G94/G95............are another
    G17/G18/G19......are yet another

    Generally, only 1 code from each group can be stated on the same line, but this means it must also fulfil it's own critria. ie G1 G4 X1.Y0. is not permitted as G4 is a time/dwell and X is the address the time value is read from...not an actual co-ordinate you also want to feed to.

    IMO it would be advisable to place the change of machine state on it's own line, instead of "losing it" in amonst other code, and being missed by an operator.

    Also
    Some machine controls do not allow more than 1 G-code per line, this means that your example of G91 G81 G98 would create alarms.


  • #12
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0
    But on my machine, if you command -


    G90 X40.0 G91 Y12.0 ...it will move 40 in absolute mode & 12 in incremental mode

    Also, if you command


    G20 X1.0 G21 Y100.00....will move 1 inch in X axis & 100 mm in Y axis


    WITHOUT ANY INTERRUPTIONS.

    Strange...


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Cimco - canned cycles
      By jcnewbie in forum Mastercam
      Replies: 2
      Last Post: 11-28-2009, 08:54 PM
    2. Fanuc 10t canned cycles
      By evmack48 in forum Fanuc
      Replies: 0
      Last Post: 02-25-2009, 05:05 PM
    3. Need Help!- canned cycles
      By astro cnc in forum G-Code Programing
      Replies: 3
      Last Post: 02-17-2009, 09:40 AM
    4. canned cycles on 16t?
      By DocHod in forum Fanuc
      Replies: 3
      Last Post: 07-08-2007, 08:58 PM
    5. G90/G91 in canned cycles
      By alfalfa in forum CamSoft Products
      Replies: 18
      Last Post: 02-25-2007, 06:20 AM

    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.