Numerical control mill machine program give typical examples

  • Time:
  • Click:126
  • source:KAIHER CNC Machining
Through simple numerical control mill machines spare parts and mill of its numerical control the introduction of machine program, understand the implication of the structure of program of numerical control mill, characteristic and commonly used code further. Next graphs are the part drawing of some appearance outline, outline deepness is 5mm, numerical control process designing uses knife heart process designing, the knife that coordinate dot shows to be cutting tool center in the graph dot coordinate value. Example of process designing of mill of graph numerical control (1) numerical control mill machine program (see next tables) program of specification of program of content of machine program program begins mill of watch numerical control name of partial O6666; program builds workpiece coordinate for O6666N1; program N1Gvalue="54" UnitName="g">54Gvalue="90" UnitName="g">90Gvalue="17" UnitName="g">17Gvalue="21" UnitName="g">21Gvalue="94" UnitName="g">94Gvalue="49" UnitName="g">49G40; means of plane of department, absolutely process designing, XY, metric process designing, feed is defined.

0Y300.

0Z300.

0; main shaft moves X300.

0Y300.

0Z300.

The safe place M06 T09; of 0 moves main shaft of M03Svalue="3600" UnitName="F">3600F680; of 9 upright milling cutter to turning, rotate speed is 3600RPM, feed speed is G0 X260 of content of Value="680" UnitName="mm">680mm/m program.

0Y180.

0Z30.

0; cutting tool moves to remove a knife to nod quickly (X260.

0, y180.

0, z30.

0)X20.

Direction of X of edge of 0; cutting tool moves quickly (X20.

0, y180.

0, z30.

0)Y40.

Direction of Y of edge of 0; cutting tool moves quickly (X20.

0, y40.

0, z30.

0)G1Z-5.

The knife below 0; arrives (X20.

0, y40.

0, z-5.

The positional X40 of 0) .

Linear interpolation milling reachs way of X of edge of 0; cutting tool knife dot (X40.

0, y40.

0, z-5.

0)Y100.

Linear interpolation milling reachs way of Y of edge of 0; cutting tool knife dot (X40.

0, y100.

0, z-5.

0)normal Align=center> add expresses program content program to show program content G03 X60.

0Y120.

0R20.

Milling of interpolation of anticlockwise circular arc reachs 0; cutting tool knife dot (X60.

0, y120.

0, z-5.

0) , radius is 20.

0G02 X100.

0R20.

Milling of interpolation of clockwise arc of 0; cutting tool comes knife dot (X100.

0, y120.

0, z-5.

0) , radius is 20.

0G03X110.

0Y110.

0R10.

Milling of interpolation of anticlockwise circular arc reachs 0; cutting tool knife dot (X110.

0, y110.

0, z-5.

0) , radius is 10.

0G01X210.

Linear interpolation milling reachs way of X of edge of 0; cutting tool knife dot (X210.

0, y110.

0, z-5.

0)G03X220.

0Y100.

0R10.

Milling of interpolation of anticlockwise circular arc reachs 0; cutting tool knife dot (X220.

0, y100.

0, z-5.

0) , radius is 10.

0G01Y60.

Linear interpolation milling reachs way of Y of edge of 0; cutting tool knife dot (X220.

0, y60.

0, z-5.

0)G02X200.

0Y40.

0R20.

Milling of interpolation of clockwise arc of 00; cutting tool comes knife dot (X200.

0, y40.

0, z-5.

0) , radius is 20.

0G01X20.

Linear interpolation milling reachs way of Y of edge of 0 cutting tool knife dot (X20.

0, y40.

0, z-5.

G0Z30 of 0) program ending.

0; retreats a knife to leave on the spare parts quickly exterior Y180.

Linear interpolation milling reachs way of Y of edge of 0 cutting tool knife dot (X20.

0, y180.

0, z30.

0)X260.

Linear interpolation milling reachs way of Y of edge of 0 cutting tool knife dot (X260.

0, y180.

0, z30.

0)G0300.

0Y300.

0Z300.

0; main shaft moves X300.

0Y300.

0Z300.

The main shaft of safe place Mvalue="5" UnitName="m">5 M09; of 0 stops, cooling fluid stops M30; program, return a main program (2) numerical control program introduces most code to look very familiar, cent of program of numerical control mill begins for the program, program content and program end 3 parts content. Program of the first share begins partial program to begin to basically define program name partly, v spare parts machines cutting tool of coordinate department, treatment, the main shaft that start, content that opens the field such as cooling fluid. O6666 is definition program name, program name is O6666. Program of mill of N1 numerical control is comprised by many programs, each program is OK only kind, also can be together repeatedly, for easy distinction, this program the definition is N1 program. G54G90G17G21G94G49G40 G54: Fasten an instruction to build workpiece coordinate, choose G54 to regard current treatment as coordinate department; If do not make special demonstrate, acquiescent G54 coordinate is numerical control system. G90: Use means of absolutely process designing. G17: Treatment plane chooses XY plane. G21: Choose metric process designing. G94: Feed means is defined, choose minutely millimeter, the unit is Mm/m. G49: Cancel compensation of cutting tool length. G40: Cancel compensation of cutting tool radius. G0300.

0Y300.

0Z300.

Main shaft of 0 machine tools moves X300.

0Y300.

0Z300.

The safe place of 0. The collision between cutting tool and workpiece or clamping apparatus or interference phenomenon appear to happen in changing knife course to avoid, an effective method is to make machine tool main shaft and the safe distance with machine a spare parts to have certain. M06 T09 chooses cutting tool statement, move 9 upright milling cutter; Buy slants to be worth relative to what Yu Ling nods in deciding 9 cutting tool are machining coordinate to fasten currently at the same time. M03S3600F680 defines the rotate speed coming back of main shaft to spend, include main shaft to turning (M03) , rotate speed is 3600rpm (S3600) , defined feed speed to be 680mm/m at the same time (F680) . Content of program of share of content of program of the 2nd share is the body of whole process, by many block composition. Every block by a certain number of word composition, every word is piled up by the address again and a certain number of digital composition. It is the block that G dictates and M instruction and the coordinate dot of each axes compose commonly. G0 X260.

0Y180.

0Z30.

0 knives nod a definition, cutting tool moves to remove a knife to nod quickly (X260.

0, y180.

0, z30.

0) . G1Z-5.

0 perpendicular next knives arrive (X20.

0, y40.

0, z-5.

The position of 0) . G03 X60.

0Y120.

0R20.

0 cutting tool are anticlockwise outline of milling of circular arc interpolation, outline radius is 20.

0, g03 checks filling instruction for anticlockwise circular arc, milling from the knife dot (X20.

0, y40.

0, z-5.

0) comes knife dot (X60.

0, y120.

0, z-5.

0) . G02 X100.

0R20.

Outline of milling of interpolation of clockwise arc of 0 cutting tool, outline radius is 20.

0, milling from the knife dot (X60.

0, y120.

0, z-5.

0) comes knife dot (X100.

0, z-5.

0) , g02 checks filling instruction for clockwise arc. Other block content is similar. Tail end of program of the 3rd share is divided in program ending, main shaft of need machine tool returns a knife to nod namely position of rest, undertake main shaft stops at the same time, put out cooling fluid, the movement such as program optional stop or end program. G0Z30.

0 retreat a knife to leave on the spare parts quickly the surface. Y180.

0X260.

0 cutting tool first edge Y direction, edge X direction returns knife dot quickly after. X300.

0Y300.

0Z300.

Main shaft of 0 machine tools moves quickly X300.

0Y300.

0Z300.

The safe place of 0. M30 M30 stops for the program, return main program instruction. When carrying out, cooling fluid, feed, main shaft stops entirely, numerical control program and restoration of numerical control equipment return the savagery before treatment, for the next time the program moves and CNC Machining begins to prepare afresh. CNC Milling