586,635 active members*
3,306 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2005
    Posts
    15

    G21 TO G20 CHANGE

    does anyone know if I can run a Inch sub-program in a machine set up in metric, by only specifying G20 in the program, then G21 to switch back to metric at the end of sub?

  2. #2
    Join Date
    Apr 2005
    Posts
    175

    Inch - Metric

    It would depend on the control, most machines when turned on have a set startup gcode default, this can be change by gcode g20 or g21 (my bridgeport is G70 and G71) from this point on, the units are in which-ever system is applied, to revert back you must Gcode again.

    Which control and machine are we talking about?

  3. #3
    Join Date
    Feb 2009
    Posts
    6028
    You would be asking for a disaster IMO if you did.
    And the G20/G21 Vs G70 and G71 is not truly What control it is on the Fanucs, Its a parameter setting for A,B,C type codes. Found that one the hard way trying to run a G71 cycle on a lathe.

  4. #4
    Join Date
    Feb 2006
    Posts
    1792
    I believe, you cannot switch G20/G21 inside a program.

  5. #5
    Join Date
    Mar 2005
    Posts
    988
    You can change in a program but I would strongly suggest you don't which is why the FANUC manuals say you can't......

    The main problems you will have is with tool compensations, work offset zero points, tool data/comp page function values (which can behave differently be a parameter for G20/21 as a conversion), and some parameters.

    So, you're best to start out one way or the other from the get go...... or reprogram your sub. Not something you'll want to randomly toggle in a program....
    You might be able to a scaling command if you can work out the positional issues (if you have to use this sub) and some arc cutting funks. But this also has a number of rules and some cycle/shape limitations....

    ...... I'd simply program a new sub....
    It's just a part..... cutter still goes round and round....

  6. #6
    Join Date
    May 2011
    Posts
    11

    g20/g21

    I've always had to zero return the machine after a g20/g21 change. as far as I can tell, the controls I've worked on, fanuc 0m, 21, 16, 18, pretty much just move the decimal over one place to the right. I.E. it wont convert your inch or metric height offset or stored work coordinates over to metric or inch. probably wont crash going from inch to metric if your height offsets are positive, not negative, tho i've seen it happen in a program and that resulted in a crash.

  7. #7
    Join Date
    Feb 2006
    Posts
    1792
    Work offsets are not converted, only decimal is shifted.
    However, I have heard, though not tried, that tool offsets (geometry and wear) may/may not be converted depending on a parameter. Somebody may try and report the result for the benefit of all.

Similar Threads

  1. How to change Tool change position(About MAZATROL T1 control)
    By liushuixingyun in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 01-07-2014, 01:33 AM
  2. Change for change sake, can SUCK.
    By MrWild in forum Community Club House
    Replies: 6
    Last Post: 07-11-2010, 07:12 PM
  3. do you want to change your CNC for a new one
    By Nemo1985 in forum Community Club House
    Replies: 14
    Last Post: 12-28-2009, 10:21 AM
  4. change 2d to 3d
    By freezer in forum Uncategorised CAM Discussion
    Replies: 13
    Last Post: 02-17-2004, 09:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •