You can write control programs on a computer in a notebook, especially if you are good at mathematics and have a lot of free time. Or you can immediately on the machine, and let the whole shop wait, and you don’t feel sorry for the extra workpiece. There is a third way of writing - they haven’t come up with a better one yet.
The CNC machine processes the workpiece according to the program in G-codes. G-code is a set of standard commands that CNC machines support. These commands contain information about where and how fast to move the cutting tool to machine the part. The movement of the cutting tool is called a path. The tool path in the control program consists of segments. These segments can be straight lines, circular arcs, or curves. The intersection points of such segments are called reference points. The text of the control program displays the coordinates of reference points.
Program example in G-codes
Program text |
Description |
Set parameters: machining plane, zero point number, absolute values |
|
Calling tool number 1 |
|
Turning on the spindle - 8000 rpm |
|
Rapid to point X-19 Y-19 |
|
Accelerated movement to height |
|
Linear movement of the tool to XZ point Y3 with feed F = 600 mm/min |
|
Move the tool along an arc with a radius of 8 mm to the point X8 Y3 |
|
Spindle shutdown |
|
End of the program |
There are three methods for programming CNC machines:
- Manually.
- On the machine, on the CNC stand.
- in the CAM system.
Manually
For manual programming, the coordinates of reference points are calculated and the sequence of movement from one point to another is described. This is how you can describe the processing of simple geometry, mainly for turning: bushings, rings, smooth stepped shafts.
Problems
Here are some problems that are encountered when a program is written to the machine by hand:
- For a long time. The more lines of code in the program, the higher the labor intensity of manufacturing the part, the higher the cost of this part. If the program is more than 70 lines of code, then it is better to choose a different programming method.
- Marriage. We need an extra blank for implementation in order to debug the control program and check for gouges or undercuts.
- Breakage of equipment or tools. Errors in the text of the control program, in addition to marriage, can also lead to breakage of the machine spindle or tool.
Parts for which programs are written by hand have a very high cost.
On a CNC stand
On the CNC stand, the processing of the part is programmed in an interactive mode. The machine setter fills in the table with the processing conditions. Specifies which geometry to process, width and depth of cut, approaches and departures, safe plane, cutting conditions and other parameters that are individual for each type of processing. Based on this data, the CNC rack generates G commands for the tool path. This is how simple body parts can be programmed. To check the program, the installer starts the simulation mode on the CNC stand.
Problems
Here are some of the problems encountered when a program is written on a rack:
- Time. The machine does not work while the installer writes a program for processing the part. Machine downtime is wasted money. If the program gets more than 130 lines of code, then it is better to choose a different programming method. Although on a CNC stand, of course, writing a program is faster than manually.
- Marriage. The CNC stand does not compare the result of the machining with the 3D model of the part, so the simulation on the CNC stand does not show gouges or positive oversize. To debug the program, you need to lay an extra workpiece.
- Not suitable for complex parts. On the CNC stand, you cannot program the processing of complex-profile parts. Sometimes, for specific parts and sizes, manufacturers of CNC racks make special operations on order.
While the program is being created on the rack, the machine does not bring money to production.
In SprutCAM
SprutCAM is a CAM system. CAM is short for Computer-Aided Manufacturing. This is translated as "manufacturing using a computer." A 3D model of a part or a 2D contour is loaded into SprutCAM, then the sequence for manufacturing the part is selected. SprutCAM calculates the cutting tool path and outputs it in G-codes for transfer to the machine. A postprocessor is used to output the toolpath to G-code. The postprocessor translates the internal SprutCAM commands into G-code commands for the CNC machine. It looks like
for translation from a foreign language.
The principle of operation in SprutCAM is presented in this video:
Advantages
Here are the advantages when working with SprutCAM:
- Fast. Reduces time to create programs for CNC machines by 70%.
- Implementation without unnecessary preparation. The program is checked before running on the machine.
- Excludes marriage. According to our users, SprutCAM reduces the occurrence of defects by 60%.
- Collision control. SprutCAM controls collisions with a part or working units of the machine, plunges at rapid feed.
- Processing of complex profile parts. In SprutCAM for multi-axis operations, 13 strategies for moving the tool along the surface of the part and 9 strategies for controlling the tool axis are used. SprutCAM automatically controls the angle of inclination and calculates a safe machining path so that there is no collision of the holder or cutting tool with the workpiece.
Drawing up a control program for your CNC machine is possible in the full-featured version of SprutCAM. It needs to be downloaded and run. After installation, you will need to register. Immediately after registration, SprutCAM will start working.
For those who have just started trying, we provide a 30-day full-featured free version of the program!
SprutCAM is 15 configurations, including two special versions: SprutCAM Practice and SprutCAM Robot. To find out which configuration is suitable for your equipment and how much it costs, call 8-800-302-96-90 or write to [email protected] website.
MINISTRY OF EDUCATION AND SCIENCE OF THE RUSSIAN FEDERATION
MOSCOW STATE TECHNICAL UNIVERSITY MAMI Faculty: "Mechanical and technological" Department: "Automated machine tools and tools" COURSE WORK by discipline Programmed processing on CNC and SAP machines Development of a control program for a machine tool with numerical control Moscow 2011 Doing Technological preparation of the control program 1 Selection of process equipment 2 Selecting the CNC system 3 Sketch of the workpiece, justification of the method for its production 4 Tool selection 5 Technological route part processing 6 Purpose of processing modes Mathematical preparation of the control program 1 Coding 2 Control program Work Conclusions Bibliography coding machine detail software control 2. Introduction
At present, mechanical engineering has been widely developed. Its development is in the direction of a significant increase in product quality, reduction of processing time on new machines due to technical improvements. The modern level of development of mechanical engineering imposes the following requirements on metal-cutting equipment: high level of automation; ensuring high productivity, accuracy and quality manufactured products; reliability of the equipment; high mobility is currently due to the rapid change of production facilities. The first three requirements led to the need to create specialized and special automatic machines, and on their basis automatic lines, workshops, factories. The fourth task, the most typical for pilot and small-scale production, is solved by means of CNC machines. The process of controlling a CNC machine is presented as a process of transferring and converting information from a drawing to a finished part. The main function of the human this process is the transformation of the information contained in the drawing of the part into a control program understandable by the CNC, which will allow you to control the machine directly in such a way as to obtain a finished part corresponding to the drawing. This course project will consider the main stages of the development of a control program: technological preparation of the program, and mathematical preparation. To do this, based on the drawing, the parts will be selected: workpiece, CNC system, technological equipment. 3. Technological preparation of the control program
3.1 Selection of process equipment
To process this part, we select a CNC lathe model 16K20F3T02. This machine is designed for turning parts of bodies of revolution with stepped and curvilinear profiles in one or more working moves in a closed semi-automatic cycle. In addition, depending on the capabilities of the CNC machine, various threads can be cut on the machine. The machine is used for machining parts from piece blanks with clamping in a mechanized chuck and pressing, if necessary, by a center installed in the tailstock quills with mechanized movement of the quill. Specifications machine: Parameter nameParameter valueMaximum diameter of the workpiece: above the bed above the support 400 mm 220 mmDiameter of the bar passing through the hole50 mmNumber of tools6Number of spindle speeds12Spindle speed limits20-2500 min -1Limits of working feeds: longitudinal transverse 3-700 mm/min 3-500 mm/min Rapid travel speed: longitudinal transverse 4800 mm/min 2400 mm/min Movement resolution: longitudinal transverse 0.01 mm 0.005 mm 3.2 Selecting the CNC system
CNC device - part of the CNC system is designed to issue control actions by the executive body of the machine in accordance with the control program. Numerical control (GOST 20523-80) of the machine - control of the processing of the workpiece on the machine according to the control program, in which the data is given in digital form. There are CNC: -contour; -positional; position-contour (combined); adaptive. With positional control (F2), the movement of the working bodies of the machine occurs at given points, and the trajectory of movement is not specified. Such systems allow processing only rectilinear surfaces. With contour control (F3), the movement of the working bodies of the machine occurs along a given trajectory and at a given speed to obtain the required processing contour. Such systems provide work on complex contours, including curvilinear ones. Combined CNC systems work on control points (nodal) and on complex trajectories. Adaptive CNC machine provides automatic adaptation of the processing of the workpiece to changing processing conditions according to certain criteria. The item covered in this term paper, has a curved surface (fillet), therefore, the first CNC system will not be used here. It is possible to use the last three CNC systems. From an economic point of view, it is advisable in this case to use a contour or combined CNC, because. they are less expensive than the others and at the same time provide the necessary processing accuracy. In this course project, the CNC system "Electronics NTs-31" was chosen, which has a modular structure that allows you to increase the number of controlled coordinates and is intended mainly for controlling CNC lathes with feed servo drives and pulse feedback sensors. The device provides contour control with linear-circular interpolation. The control program can be entered either directly from the remote control (keyboard) or from an electronic memory cassette. 3.3 Sketch of the workpiece, justification of the method of its production
In this course work, we conditionally accept the type of production of the part in question as small-scale. Therefore, as a blank for the part, a bar with a diameter of 95 mm of simple general-purpose bar (round profile) made of steel 45 GOST 1050-74 with a hardness of HB=207…215 was chosen. General-purpose simple profiles are used for the manufacture of smooth and stepped shafts, machine tools with a diameter of not more than 50 mm, bushings with a diameter of not more than 25 mm, levers, wedges, flanges. At the harvesting operation, the bushing is cut into a size of 155 mm, then it is cut into a size of 145 mm on a milling and centering machine, and center holes are simultaneously made here. Since when installing the part in the centers, the design and technological base are combined, and the error in the axial direction is small, it can be neglected. The drawing of the workpiece after the milling and centering operation is shown in Figure 1. Figure 1 - drawing of the workpiece 3.4 Tool selection
Tool T1 To process the main surfaces for roughing and finishing, we select the right through cutter with mechanical fastening of the DNMG110408 insert made of GC1525 carbide and a clamp of increased rigidity (Fig. 2). Figure 2 - right through cutter K r b, mmf 1, mmh, mmh 1, mml 1, mml 3, mm γλ s Reference plate93 02025202012530,2-60-70DNMG110408 Tool T2 Picture 3 - prefabricated cutting tool l a , mma r , mmb, mmf 1, mmh, mmh 1, mml 1, mml 3, mm Reference plate4102020,7202012527N151.2-400-30 Tool T3 To drill a given hole, we select a GC1220 carbide drill for drilling for M10 threads with a cylindrical shank (Fig. 4). Figure 4 - drill D c , mmdm m , mmD 21max, mml 2, mml 4, mml 6, mm91211,810228,444 Tool T4 To drill a given hole, we select a GC1220 carbide drill with a cylindrical shank (Fig. 5). D c , mmdm m , mml 2, mml 4, mml 6, mm20201315079 Tool T5 For internal thread M 10×1 choose a tap GOST 3266-81 from high-speed steel with helical grooves (Fig. 5). Figure 5 - Tap 3.5 Technological processing route
The technological route for processing a part must contain the name and sequence of transitions, a list of surfaces processed at the transition, and the number of the tool used. Operation 010
Procurement. Rental. Cut off the workpiece Ø 95 mm to size 155 mm, make center holes up to Ø 8 mm. Operation 020
Milling and centering. Mill the ends to a size of 145 mm. Operation 030
Turning: set the workpiece in the front leading and rear rotary centers. Set A Transition 1 Tool T1 Sharpen in advance: · cone Ø 30 mm to Ø 40 · Ø 40 · cone Ø 40 mm to Ø 6 0 mm from length 60 mm to length 75 mm from the end of the workpiece · Ø 60 · Ø 60 mm to Ø 70 along an arc with a radius of 15 mm from a length of 85 mm from the end of the workpiece · Ø 70 · Ø 70 mm to Ø 80 mm at a length of 120 mm from the end of the workpiece · Ø 80 mm to Ø 90 · Ø 90 Leave a finishing allowance of 0.5 mm per side Transition 2 Tool T1 Sharpen finally on transition 1: · cone Ø 30 mm to Ø 40 mm up to a length of 30 mm from the end of the workpiece · Ø 40 mm from a length of 30 mm to a length of 30 mm from the end of the workpiece · cone Ø 40 mm to Ø 60 mm from length 60 mm to length 75 mm from the end of the workpiece · Ø 60 mm from length 75 mm to length 85 mm from the end of the workpiece · Ø 60 mm to Ø 70 along an arc with a radius of 15 mm from a length of 85 mm from the end of the workpiece · Ø 70 mm from length 100 mm to length 120 mm from the end of the workpiece · Ø 70 mm to Ø 80 mm at a length of 120 mm from the end face of the workpiece · Ø 80 mm to Ø 90 mm along an arc with a radius of 15 mm from the length from the length of 120 mm from the end of the workpiece · Ø 90 mm from length 135 mm to length 145 mm from the end of the workpiece Transition 3 Tool T2 · Sharpen a rectangular groove 10 mm wide from a diameter of 40 to a diameter of 30 mm at a distance of 50 mm from the end of the workpiece. Set B Transition 1 Tool T3 · Drill a hole Ø 9 40 mm deep. Transition 2 Tool T4 · Drill hole with Ø 9 to Ø 20 to a depth of 15 mm. Transition 3 Tool T5 · Cut the thread with an M10 tap ×1 to a depth of 30 mm. Operation 040
Flushing. Operation 050
Thermal. Operation 060
Grinding. Operation 070
Control. 3.6 Purpose of processing modes
Set A Transition 1 - rough turning Tool T1 2.The depth of cut during preliminary turning of steel with a through cutter with a carbide plate is chosen t = 2.5 mm. .When turning steel and cutting depth t = 2.5 mm, we select the feed S = 0.6 mm / rev. . .Cutting speed FROM v To MV = 0.8 (Table 4 p. 263) To PV = 0.8 (Table 5 p. 263) To IV = 1 (Table 6 p. 263) 6.The number of revolutions of the spindle. 7.Cutting force. where: C R (Table 9 p. 264) 8.cutting power. Transition 2 - fine turning Tool T1 .Determining the stroke length L = 145 mm. 2.The depth of cut during the preliminary turning of steel with a through cutter with a hard-alloy plate is chosen t = 0.5 mm. .When turning steel and cutting depth t = 0.5 mm, we select the feed S = 0.3 mm / rev. .Tool life T = 60 min. .Cutting speed FROM v = 350, x = 0.15, y = 0.35, m = 0.2 (Table 17 p. 269) KMV = 0.8 (Table 4 p. 263) To PV = 0.8 (Table 5 p. 263) To IV = 1 (Table 6 p. 263) 6.The number of revolutions of the spindle. 7.Cutting force. where: C R \u003d 300, x \u003d 1, y \u003d 0.75, n \u003d -0.15 (Table 22 p. 273) (Table 9 p. 264) 8.cutting power. Transition 3 - grooving Tool T2 .Determining the stroke length L = 10 mm. 2.When grooving, the depth of cut is equal to the length of the cutter blade .When turning steel and cutting depth t = 4 mm, we select the feed S = 0.1 mm / rev. 4.Tool life T = 45 min. .Cutting speed