Search

Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

CNC Programming Examples - Bolt Hole Circle

Fanuc G72.1 G72.2 Figure Copy Program Example (Bolt Hole Circle)





This CNC program example shows how both G72.1 and G72.2 figure copy functions can call one-another in one part program, read Programming Notes below carefully.
Contents

* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

Programming

Fanuc G72.1 Rotational Copy

Using G72.1 Rotational Copy G-code a figure specified by a subprogram can be repeatedly produced with Rotational movement.
Read G72.1 definition with program example Fanuc G72.1 Rotational Copy (Figure Copy Function CNC Mill)

Fanuc G72.2 Linear Copy

Using G72.2 Linear Copy G-code a figure specified by a subprogram can be repeatedly produced with Linear movement.
Read G72.2 definition with program example Fanuc G72.2 Linear Copy (Figure Copy Function CNC Mill)

Fanuc G81 Drilling Cycle

G81 drilling cycle is used for simple drilling/spot drilling operations.
Read G81 drilling cycle definition with program examples Fanuc G81 Drilling Cycle

Programming Notes

Specifying two or more commands to copy a figure
  1. G72.1 cannot be specified more than once in a subprogram for making a rotational copy (If this is attempted, alarm PS0900 will occur).
  2. G72.2 cannot be specified more than once in a subprogram for making a linear copy (If this is attempted, alarm PS0901 will occur).
  3. In a subprogram that specifies rotational copy, however, linear copy can be specified. Similarly, in a subprogram that specifies linear copy, rotational copy can be specified.

Fanuc G71.2 G72.2 Program Example


Main program
        O4000 ;
        N10 G90 G00 G17 X240. Y230. Z100. ; (P0)
        N20 G72.1 P4100 X120. Y120. L8 R45. ;
        N30 G80 G00 X240. Y230. ; (P0)
        N40 M30 ;
Sub program Rotation copy (G72.1)
        O4100 N100 G72.2 P4200 I0 J20. L3 ;
        N200 M99 ;
Sub program Linear copy (G72.2 )
        O4200 N110 G90 G81 X120. Y180. R60. Z10. F200. ; (P1)
        N210 M99 ;

SOLIDWORKS Tutorials


SOLISWORKS Tutorials

* The Best EBOOK: SOLIDWORKS for Designers

More than ninety percent of all design and drafting jobs in today’s market require the use of some computer aided design application.  In some cases that application is Autodesk Inventor or Solidworks, but most commonly it is SolidWorks. With a good market share, SolidWorks is probably the best application a prospective job hunter can learn. Courses in the software can cost several hundred dollars. For someone out of work, that investment can be hard to find. But the money spent my be life changing for those looking for work.

Among the many ways to obtain SOLIDWORKS training is MCAD, which is a top reseller of the program, offers user support and comprehensive instruction. There are also a variety of free SOLIDWORKS tutorials that can be accessed on the internet. It is important to take the time to ensure that individuals who will use the software are properly trained to use its features to their fullest potential.

Globally used by millions of businesses, SolidWorks is a 3D mechanical computer aided design software program. To assist engineers and designers in significantly impacting the productivity of a company, it is necessary to provide professional training. For that reason, SOLIDWORKS tutorials focus on the important concepts and skills that are crucial to successfully using the software.

Table Of Contents:
1. AutoCAD vs Solidworks – Which one do I learn?
2. Create a simple 3D object
3. Easy to follow 3D sketching using Solidworks
4. How to draw a coke bottle
5. Solidworks tutorial: sheet metal
6. Solidworks tutorial: Solidworks equation
7. Solidworks tutorial: How to Create a Sphere in Solidworks
8. Solidworks tutorial: Circular pattern
9. Solidworks tutorial: How to mirror parts
10. Solidworks tutorial: Using the LOFT command
11. Solidworks tutorial: SWEEP
12. Solidworks tutorial: Extrude

100 ebooks for engineers

100 ebooks for engineers

We strive to bring you the most cost-effective book possible. The content of the books is edited from many reliable sources.

Book list on Kobo:



1. Go Programming Language

2. Basic Electronics

3. MongoDB

4. Electronic Transformers

5. Introducing SAP Payroll

6. LISP Programming Language

7. Introducing SAP MM

8. Introducing AWK

9. Computer programming

10. C Standard Library

11. Apex Programming

12. CNC programming

13. Electronics Resistors

14. Electronics Oscillator

15. Boolean Algebra

16. Amplifiers

17. AC Circuits

18. SAP BO Analysis Edition For OLAP

19. Body Language

20. CNC M-Code Tutorial

21. G-Code Reference

22. Euphoria Programming Language

23. Introducing RC Networks

24. F# Programming

25. Job Control Language

26. Binary Numbers

27. LOLCODE Programming Language

28. Electromagnetism

29. Anger Management

30. Introducing Boiler House

31. Counters Electronics

32. CNC Machine Tutorial

33. SAP Business Workflow

34. Attenuator

35. Spring Framework

36. Steam Engineering Principles and Heat Transfer

37. C++ Programming

38. Java 8

39. Electronics Inductors

40. Introducing Hibernate

41. C Programming Langguage

42. KDB+

43. Combinational Logic

44. Operational Amplifiers

45. SAP BW on HANA

46. Input/Output Devices

47. Introducing Arduino

48. Guide To TestNG

49. SAP Business Explorer

50. Logo programming language

51. JavaFX Tutorial

52. Introducing OBIEE

53. Diodes

54. Miscellaneous Circuits

55. Power Electronics

56. Electronic Systems

57. Introducing jMeter

58. Electronics Capacitors

59. WordPress Tutorial

60. Introducing Transistors

61. OAuth 2.0

62. Critical Thinking

63. CNC Programming Basics

64. SAP Advanced Planning and Optimization

65. Assembly Programming

66. Excel Functions & Formulas

67. Programming with MATLAB for Beginners

68. Java BeanUtils

69. G-Code and M-Code

70. Make Money Online Tutorial

71. Business Negotiation Skills

72. Introducing XPath

73. Electronics Filters

74. Introducing Neo4j

75. Waveform Generators

76. Introducing XSLT

77. Advanced Business Application Programming

78. Erlang Programming

79. Computer Fundamentals

80. C++ Programming Standard Library

81. Accounting Basics

82. Sequential Logic

83. Electronics DC Circuit

84. Business Negotiation Skills

85. Dart Programming Language

86. Programming Groovy

87. Power Supplies

88. Guide to Java Persistence API

89. COBOL Programming

90. Crystal Reports

91. Haskell Programming

92. Objective-C Programming Language

93. Node.js

94. Elixir Language

95. Inter Process Communication (IPC)

96. Introducing Clojure

97. Logic Gates

98. SAP Business Planning and Consolidation

99. MySQL

100. Parrot Programming



Good lucky!

CNC Programming Examples - Drilling

Fanuc G72.1 G72.2 Figure Copy Program Example (Bolt Hole Circle)

* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

This CNC program example shows how both G72.1 and G72.2 figure copy functions can call one-another in one part program, read Programming Notes below carefully.

Programming

Fanuc G72.1 Rotational Copy

Using G72.1 Rotational Copy G-code a figure specified by a subprogram can be repeatedly produced with Rotational movement.
Read G72.1 definition with program example Fanuc G72.1 Rotational Copy (Figure Copy Function CNC Mill)

Fanuc G72.2 Linear Copy

Using G72.2 Linear Copy G-code a figure specified by a subprogram can be repeatedly produced with Linear movement.
Read G72.2 definition with program example Fanuc G72.2 Linear Copy (Figure Copy Function CNC Mill)

Fanuc G81 Drilling Cycle

G81 drilling cycle is used for simple drilling/spot drilling operations.
Read G81 drilling cycle definition with program examples Fanuc G81 Drilling Cycle

Programming Notes

Specifying two or more commands to copy a figure
  1. G72.1 cannot be specified more than once in a subprogram for making a rotational copy (If this is attempted, alarm PS0900 will occur).
  2. G72.2 cannot be specified more than once in a subprogram for making a linear copy (If this is attempted, alarm PS0901 will occur).
  3. In a subprogram that specifies rotational copy, however, linear copy can be specified. Similarly, in a subprogram that specifies linear copy, rotational copy can be specified.

Fanuc G71.2 G72.2 Program Example


Main program
O4000 ;
        N10 G90 G00 G17 X240. Y230. Z100. ; (P0)
        N20 G72.1 P4100 X120. Y120. L8 R45. ;
        N30 G80 G00 X240. Y230. ; (P0)
        N40 M30 ;
Sub program Rotation copy (G72.1)
O4100 N100 G72.2 P4200 I0 J20. L3 ;
        N200 M99 ;
Sub program Linear copy (G72.2 )
O4200 N110 G90 G81 X120. Y180. R60. Z10. F200. ; (P1)
        N210 M99 ;

------------------

Fanuc G81 Drilling Cycle

G81 drilling cycle is used for simple drilling/spot drilling operations.

Syntax

G81 X... Y... Z... R... K... F...
Parameter Description
X Hole position in x-axis.
Y Hole position in y-axis.
Z Depth, tool will travel with feed to Z-depth starting from R plane.
R Position of the R plane.
K Number of cycle repetitions (if required) .
F Feedrate.
Once G81 drilling cycle is defined, the canned cycle is repeated at every X-Y position in sequential blocks. So G81 drilling cycle must be cancelled with G80.

Usage

            N30 G81 X10 Y30 Z-17 R2 F75
            N40 Y10
            N50 X30
            N60 Y30
            N70 X90
            N80 Y10
            N90 G80


In the above example drilling will start with G81 drilling cycle at X10 Y30, so first drill will be at X10 Y30, then second at Y10, third at X30, fourth at Y30, fifth at X90 and the last one at Y10, because next block have G80 code, so drilling cycle will no more be repeated.

Working

Here is briefly described how G81 drilling cycle operates,
1- Rapid traverse to the specified x,y axis position (drilling position).
2- Rapid traverse to the R plane position.
3- Drilling with specified Feed from R-plane position to Z-depth position.
4- Rapid traverse to Initial level or R-plane depends on G98, G99 modes.

G81 drilling cycle working

G98 G99 Modes

After completing drilling depth the return is made with Rapid feed, the return height can be controlled through using G98 or G99.
G98 Drill will return to the Initial level
G99 Drill will return to R-plane.
G98, G99 can be used multiple times during G81 drilling cycle.

Example

            N30 G81 X10 Y30 Z-17 R2 F75
            N40 Y10
            N50 G98 X30
            N60 G99 Y30
            N70 X90
            N80 Y10
            N90 G80

Repeat Drilling

With G81 drilling cycle drilling operation can be repeated multiple times. The drilling is repeated K times when that parameter is given with G81 drilling cycle.
Repeat drilling is normally used with G91 Incremental mode, and a good example of repeated drilling is Grid-plate drilling. the example for repeat drilling  is given below.

Working Examples


G81 Drilling Cycle Example
            N10 T1 M06
            N20 G90 G54 G00 X30 Y25
            N30 S1200 M03
            N40 G43 H01 Z5 M08
            N50 G81 Z-10 R2 F75
            N60 X80 Y50
            N70 G80 G00 Z100 M09
            N80 M30

G98 G99 Example


G81 drilling cycle usage with G98 G99
            N10 M06 T1
            N20 G90 G00 X12.5 Y10 Z12 S1000 M03
            N30 G99 G81 X12.5 Y10 Z-17 R2 F75
            N40 Y30
            N50 G98 X57.5
            N60 G99 Y10
            N70 G91 G80 G28 X0 Y0 Z0 M05
            N80 M30

Repeat Drilling Example


Repeat drilling with G81 Drilling Cycle
            T1 M6
            G00 G90 G40 G21 G17 G94
            G54 X0 Y0 S1000 M03
            G43 H1 Z100
            Z3
            G81 G99 G91 X20 Y20 R3 Z-20 K3 F100 M08
            G80
            G00 G90 Z100
            M30
OR
            T1 M6
            G00 G90 G40 G21 G17 G94
            G54 X20 Y20 S1000 M03
            G43 H1 Z100
            Z3
            G81 G99 R3 Z-20 F100 M08
            G91 X20 Y20 K2
            G80
            G00 G90 Z100
            M30
-------------------------------------------------

Fanuc G82 Drilling Cycle

G82 drilling cycle is also called G82 counter boring cycle.
G82 is a normal drilling cycle the only difference is that it dwell for specified time at the bottom of the hole, normally used for accurate depth drilling.

Syntax

G82 X... Y... Z... R... P... F... K...
Parameter Description
X Hole position in x-axis.
Y Hole position in y-axis.
Z Depth, tool will travel with feed to Z-depth starting from R plane.
R Position of the R plane.
P Dwell at the bottom of hole.
K Number of cycle repetitions (if required) .
F Feedrate.

Usage

                N30 G82 X10 Y30 Z-17 R2 P1000 F75
                N40 Y10
                N50 X30
                N60 Y30
                N70 G80


Once G82 drilling cycle is specified with it’s parameters in a program block, this will keep drilling at every axis movement, until cycle is ended with G80

Working

How G82 drilling cycle works
1- Rapid traverse to x, y position
2- Rapid traverse to R-plane position
3- Drilling with feed from R-plane to Z-depth position.
4- Dwell for specified time at hole bottom.
5- Rapid traverse to R-plane or Initial-level depends on G99, G98 mode.

G82 drilling cycle working

G98 G99 Modes

How G82 drilling cycle behaves upon G98 or G99 mode,
G98 Drill will return to the Initial level
G99 Drill will return to R-plane.
For a working example see G81 drilling cycle.

Example

                N30 G82 X10 Y30 Z-17 R2 P2000 F75
                N40 Y10
                N50 G98 X30
                N60 G99 Y30
                N70 X90
                N80 Y10
                N90 G80

Repeat Drilling

If K parameter value is given with G82 drilling cycle, then drilling will repeat the number of times given with K. An effective use of repeat drilling is while drilling multiple same distance holes, this way G82 cycle is used in G91 incremental mode. See G81 drilling cycle for repeat drilling example.

Working Example


G82 drilling cycle example
                N10 T1 M06
                N20 G90 G54 G00 X30 Y25
                N30 S1200 M03
                N40 G43 H01 Z5 M08
                N50 G82 Z-10 R2 P1000 F75
                N60 X80 Y50
                N70 G80 G00 Z100 M09
                N80 M30

------------------------------------------------------

CNC Programming Examples - CNC Milling Machine

CNC Mill Example Program G01 G02 G03 G90 G91


* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

A cnc mill program for cnc machinists programmers, who have started to learning basic cnc programming techniques.
Contents


CNC Mill Example Program




CNC Program

        N40 G90 G00 X0 Y0
        N50 G01 X-10 Y-20 R8         (P1)
        N60 G01 X-50 R10             (P2)
        N70 Y10                      (P3)
        N80 X-19.97 Y25.01           (P4)
        N90 G03 X7.97 Y38.99 R18     (P5)
        N100 G01 X30 Y50             (P6) 
        N110 G91 X10.1 Y-10.1        (P7)
        N120 G90 G02 X59.9 Y20.1 R14 (P8)
        N130 G01 X70 Y10             (P9)
        N140 Y-20 R10                (P10)
        N150 X50                     (P11)
        N160 G03 X30 R10             (P12)
        N170 G01 X10 R8              (P13)
        N180 X0 Y0

G M S T Codes Explanation

Code Description
G00 Rapid traverse
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G90 Absolute command
G91 Increment command

-------------------------------------------------------------------

CNC Mill Programming Example

CNC mill program example for cnc machinists.


CNC Mill Programming Example

CNC Program

            G0 X-60 Y0
            G1 X-70                  (P1)
            G2 X-25.02 Y25.97 R30    (P2)
            G1 X2.46 Y10.13          (P3)
            G3 X8.5 Y10.92 R5        (P4)
            G1 X18.79 Y21.21         (P5)
            G2 X25.13 Y-26.05 I21.21 J-21.21 (P6)
            G1 X-5 Y-8.66            (P7)
            G3 X-12.14 Y-11.13 R5    (P8)
            G2 X-70 Y0 R30           (P1)
            G1 X-60

G M S T Codes Explanation

Code Description
G00 Rapid traverse
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW




I Will Make A Manufacturable 3d Model And A Cnc Program For It 
I Will Do Cnc Program For Molding, Laser Cutting Fusion 360 Cam 
I Will Cnc Programming On Mastercam 
I Will Make G Code Or Cnc Program For Your Design 
I Will Create CNC Programs For You

G02 G03 Example CNC Mill

G02 G03 Circular interpolation CNC mill example program.

G02 G03 Example CNC Mill

CNC Part Program

                G0 X30 Y-30             (P1)
                G1 Y22.67               (P2)
                G3 X24.07 Y26.18 R4     (P3)
                G2 X-18.27 Y23.46 R50   (P4)
                G3 X-23.46 Y18.27 R4    (P5)
                G2 X-23.46 Y-18.27 R50  (P6)
                G3 X-18.27 Y-23.46 R4   (P7)
                G2 X24.07 Y-26.18 R50   (P8)
                G3 X30 Y-24.67 R4       (P9)
                G1 X33

G M S T Codes Explanation

Code Description
G0 Rapid traverse
G1 Linear interpolation
G2 Circular interpolation CW
G3 Circular interpolation CCW
M30 End of program (Reset)

--------------------------------------------------------------------------------------------


Multiple Arc CNC Mill Program G2 G3 I J

CNC milling machine program which combines/joins multiple arcs.

Multiple Arc CNC Mill Program G2 G3 I J

CNC Part Program

                    N10 M6 T1 G43 H1 M3
                    N15 S500 F120
                    N20 G0 X0 Y0              (P1)
                    N25 G1 Y20                (P2)
                    N30 G3 X-15 Y35 I-15 J0   (P3)
                    N35 G2 X-45 Y35 I-15 J0   (P4)
                    N40 G3 X-60 Y20 I0 J-15   (P5)
                    N45 G1 Y0                 (P6)   
                    N50 G1 X0                 (P1) 
                    N55 M30

G M S T Codes Explanation

Code Description
G0 Rapid traverse
G1 Linear interpolation
G2 Circular interpolation CW
G3 Circular interpolation CCW
G43 Tool length compensation + direction
M3 Spindle start forward CW
M6 Tool change
M30 End of program (Reset)
T Tool
S Speed
F Feed

---------------------------------------------------------------------

Haas Corner Rounding and Chamfering Example G01 C R


Haas Corner Rounding and Chamfering

Haas CNC program example to show how Chamfer and Corner Radius can be programmed.

Haas Chamfering

To program Chamfer
N10 G01 X20 Y30 ,C3

Haas Corner Rounding

To program Radius
N10 G01 X20 Y30 ,R3

Haas Corner Rounding and Chamfering Example


Haas CNC Program

                        O1234 (Corner Rounding and Chamfering Example);
                        T1 M6;
                        G00 G90 G54 X0. Y0. S3000 M3; (P1)
                        G43 H01 Z0.1 M08;
                        G01 Z-0.5 F20.;
                        Y40. ,R10.;            (P2)    
                        X50. ,C5.;             (P3) 
                        Y0.;                   (P4)
                        G00 Z0.1 M09;
                        G53 G49 Z0.;
                        G53 Y0.;
                        M30;

Haas G M S T Codes

Code Description
G00 Rapid Motion
G01 Linear Interpolation Motion
G43 Tool Length Compensation +
G49 G43/G44 Cancel
G53 Non-Modal Machine Coordinate Selection
G54 Select Work Coordinate System l
G90 Incremental Programming
M3 Spindle On, Clockwise (S)
M6 Tool Change (T)
M08 Coolant On
M09 Coolant Off
M30 Program End and Reset
S Spindle speed
T Tool


>> Ebooks for CNC Programming