Turning and Milling G-Code System

Turning and Milling G-Code System

Appendix A Turning and Milling G-code System A.1 Turning Table A.1 G-codes for turning G- Grp. Function Format code G00 1 Rapid traverse [X /U ][Y /V ][Z /W ] G01 1 Linear interpolation [X /U ][Y /V ][Z /W ] G02 1 Circular interpolation [X /U ][Y /V ][Z /W ] in clockwise direction [R /I J K ] G03 1 Circular interpolation [X /U ][Y /V ][Z /W ] in counter-clockwise [R /I K ] direction G04 0 Dwell [X /U /P ] G10 0 Programmable data P [X /U ][Y /V ][Z /W ] input [R /C ]Q G17 16 Selecting XY plane G18 16 Selecting ZX plane G19 16 Selecting YZ plane G20 6 Inch (or SI) system G21 6 Metric system G22 9 Stored stroke check func- [X /U ][Y /V ][Z /W ] tion on I J K G23 9 Stored stroke check func- tion off G25 8 Spindle vibration moni- toring off G26 8 Spindle vibration moni- toring on G27 0 Moving to origin and [X /U ][Y /V ][Z /W ] check 431 432 A Turning and Milling G-code System Table A1 (continued) G28 0 Moving to origin [X /U ][Y /V ][Z /W ] G29 0 Moving from origin [X /U ][Y /V ][Z /W ] G30 0 Moving to 234 origin P [X /U ][Y /V ][Z /W ] G31 0 Skip P [X /U ][Y /V ][Z /W ] G32 1 Thread cutting [X /U ][Y /V ][Z /W ] G34 1 Variable lead thread [X /U ][Y /V ][Z /W ]K cutting G36 0 Tool radius compen- [X /U ][Y /V ][Z /W ] sation on in X-direction G37 0 Tool radius compen- [X /U ][Y /V ][Z /W ] sation on in Z-direction G40 7 Tool radius compen- sation off G41 7 Tool radius compen- sation on left side G42 7 Tool radius compen- sation on right side G50 0 Setting up work coord- [X /U ][Y /V ][Z /W ] inate system G52 0 Setting up local coord- [X /U ][Y /V ][Z /W ] inate system G53 0 Setting up machine coord- [X /U ][Y /V ][Z /W ] inate system G54 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G55 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G56 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G57 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G58 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G59 14 Selecting work coordinate [X /U ][Y /V ][Z /W ] system G65 0 Calling macro P L A B C D E F H M Q R S T U V W X Y Z I I ..J J ..K K .. G66 12 Calling macro modal P L A B C D E F H M Q R S T U V W X Y Z I I ..J J ..K K .. G67 12 Macro call off G68 4 Mirror image on G69 4 Mirror image off G70 0 Finish cut cycle on P Q G71 0 Outer diameter/Internal U R diameter turning cycle P Q U W G72 0 Rough facing cycle W R P Q U W A.1 Turning 433 Table A1 (continued) G73 0 Patten repeating cycle U W R P Q U W G74 0 End face peck drilling R cycle [X /U ][Y /V ][Z /W ] P Q R G75 0 Drilling cycle on external R and internal side [X /U ][Y /V ][Z /W ] P Q R G76 0 Complex threading cycle P Q R [X /U ][Y /V ][Z /W ] P Q R G80 10 Canned cycle cancel G83 10 Cycle for face drilling [X /U ][Y /V ][Z /W ] for drilling R Q K G84 10 Cycle for face tapping [X /U ][Y /V ][Z /W ] R P K G85 10 Cycle for face boring [X /U ][Y /V ][Z /W ] R Q K G87 10 Cycle for side boring [X /U ][Y /V ][Z /W ] R Q K G88 10 Cycle for side tapping [X /U ][Y /V ][Z /W ] R P K G89 10 Cycle for side boring [X /U ][Y /V ][Z /W ]R K G90 1 Outer diameter/internal [X /U ][Y /V ][Z /W ]R diameter cutting cycle G92 1 Threading cycle [X /U ][Y /V ][Z /W ]R G94 1 End face turning cycle [X /U ][Y /V ][Z /W ]R G96 2 Constant surface speed control G97 2 Constant surface speed control cancel G98 5 Feed per minute G99 5 Feed per revolution G107 22 Cylindrical interpolation C G112 20 Polar coordinate interp- olation G113 20 Polar coordinate interp- olation cancel 434 A Turning and Milling G-code System A.2 Milling Table A.2 G-codes for milling G- Grp. Meaning Data elements code G00 1 Rapid traverse X Y Z G01 1 Linear interpolation X Y Z G02 1 Circular interpolation in X Y Z [R /I J K ] clockwise direction G03 1 Circular interpolation in X Y Z [R /I J K ] counter clockwise direction G04 0 Dwell [X /P ] G10 0 Programmable data input L P R G15 17 Polar coordinate command G16 17 Polar coordinate command cancel G17 16 Selecting XY plane G18 16 Selecting ZX plane G19 16 Selecting YZ plane G20 6 Input in inches G21 6 Input in mm G22 9 Stored stroke check X Y Z I J K function on G23 9 Stored stroke check function off G27 0 Reference position X Y Z return check G28 0 Automatic return to X Y Z reference position G29 0 Movement from refer- X Y Z ence position G30 0 2nd, 3rd, and 4th P X Y Z reference position return G31 0 Skip P X Y Z G33 1 Threading X Y Z G39 0 Tool radius compensation: [X Y Z /I J K ] corner circular interpolation G40 7 Tool radius compensation off G41 7 Tool radius compensation on in left side G42 7 Tool radius compensation on in right side G43 13 Tool length compensation + X Y Z H G44 13 Tool length compensation – X Y Z H A.2 Milling 435 Table A2 (continued) G49 13 Tool length compensation off G50 11 Scaling off G51 11 Scaling on X Y Z [P /I J K] G52 0 Setting local coordinate X Y Z system G53 0 Setting machine corrdinate X Y Z system setting G54 14 Selecting work coordinate X Y Z system G55 14 Selecting work coordinate X Y Z system G56 14 Selecting work coordinate X Y Z system G57 14 Selecting work coordinate X Y Z system G58 14 Selecting work coordinate X Y Z system G59 14 Selecting work coordinate X Y Z system G61 15 Exact stop mode on G62 15 Automatic corner override mode on G63 15 Tapping mode G64 15 Cutting mode G65 0 Macro call P L A B C D E F H M Q R S T U V W X Y Z I I ..J J ..K K .. G66 12 Macro modal call P L A B C D E F H M Q R S T U V W X Y Z I I ..J J ..K K .. G67 12 Macro modal call cancel G68 18 Coordinate system rot. X Y Z R G69 18 Coordinate system rotation cancel G73 10 Peck drilling cycle X Y Z R Q K G74 10 Left-handed tapping X Y Z R P K cycle G76 10 Fine boring cycle X Y Z R Q K G80 10 Canned cycle cancel G81 10 Drilling cycle or spot X Y Z R K boring cycle G82 10 Drilling cycle or X Y Z R P K counter boring cycle with dwell G83 10 Peck drilling cycle X Y Z R Q K G84 10 Tapping cycle X Y Z R P K G85 10 Boring cycle X Y Z R K 436 A Turning and Milling G-code System Table A2 (continued) G86 10 Boring cycle X Y Z R K G87 10 Back boring cycle X Y Z R Q K G88 10 Boring cycle with X Y Z R P K dwell G89 10 Boring cycle with dwell X Y Z R P K G90 3 Absolute programming G91 3 Incremental programming G92 0 Setting for workpiece X Y Z coordinate system G94 5 Feed per minute G95 5 Feed per revolution G96 2 Constant surface speed ctl. G97 2 Constant surface speed control cancel G98 19 Canned cycle: return to initial level G99 19 Canned cycle: return to R point level G107 22 Cylindrical interpolation C G112 20 Polar coordinate interpolation mode on G113 20 Polar coordinate interpolation mode off G84.2 10 Rigid tapping cycle X Y Z R P K F G84.3 10 Left-handed rigid X Y Z R P K F tapping cycle A.3 Classification of G-code Groups 437 A.3 Classification of G-code Groups The group of G codes can be divided into two groups; one-shot group and modal group. The modal group consists of a variety of groups. ‘One-shot group’ means the set of G-codes that has an influ- ence on a single block. Unlike one-shot G-codes, the G-codes in the modal group continue to have an influence on the next blocks until the cancel command is called. Table A.3 G-code grouping Group Command 0 One-shot command 1 Feed command 2 Constant surface speed command 3 Absolute/Incremental programming command 4 Mirror image command 5 Feed unit selection command 6 Programming unit selection command 7 Tool radius compensation command 8 Spindle vibration detection command 9 Stroke limit input command 10 Cycle code command 11 Scaling command 12 Macro call command 13 Tool length compensation command 14 Work coordinate system selection command 15 Cutting mode command 16 Plane selection command 17 Polar coordinate command 18 Coordinate system rotation command 19 Return position setting command for drilling cycle 20 Polar coordinate system command 21 High-speed machining command 22 Cylindrical interpolation command 23 Skip command *Note: the group number can vary depending on the CNC makers and is not fixed.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    23 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us