Typical programming of machining centers

1. Preparation of drilling procedures

As in Figure 1, drill equidistant holes along any straight line. If you use a vertical machining center equipped with a FANUC-6M system, the machining procedure is as follows:

1

Figure 1 Drilling isometric holes along a straight line

O1000

N10 G92 X400.0 Y300.0 Z320.0 Create machining coordinate system

N20 M06 T00 put on center drill

N30 G90 G00 X0 Y0 X and Y directions

N40 Z0 Z Positioning

N50 M03 S500 F30 Spindle start

N60 G81 G99 R-4.0 Z-10.0 Drilling depth 5mm center hole

N70 G91 G00 X20.0 Y10.0 L03 Repeat 3 times to drill 3 center hole

N80 M05 Spindle rotation stopped

N90 G28 Z0 Processed origin return to machine origin

N100 M06 T01 drilling cutter, return to machining point

NIl0 M03 G90 G00 G44 H01 G81 G99 R-5.0 Z-30.0 Drill the first hole and add tool compensation

N120 G91 X-20.0 Y-10.0 L03 Drill 3 holes repeatedly

N130 M05 G28 G49 Z320.0 Undo tool length compensation back to Z axis

N140 M01 reference point

N150 M99 P20 Return to N20 block

Program features:

1) Use G92 to establish a machining coordinate system. The offset of the coordinate system is set in the program, and it is more convenient to modify and adjust.

2) There are two automatic tool change, and use tool length compensation to reflect the machining center's automatic processing function. After the start of the machine tool, the spindle is loaded with F10 drill tool, and the center drill should be installed on the zero position of the tool magazine. Since only two knives are used for the entire program, the magazine does not need to be turned and the tool change can be done in place.

3) Pre-drill the positioning hole using the center drill (N60 block) to make the hole positioning accurate.

4) Use the relative value command (N70, N120) to give the position of the hole so that the canned cycle function can be used repeatedly until all holes are drilled. L03 is the number of repetitions.

5) Pause using M01 (N140) program. Note: When using M01, the program pause switch on the operation panel should be placed in the ON position. In this way, the indicator on the panel will light up when the program is executed to M01, telling the operator that the program is in optional stop, and the parts can be loaded and unloaded. Press the cycle start button at the end and the program will execute.

6) The end of the program using M99 P20 This is also a way to end the program, it allows the program to automatically return to the N20 program to continue execution, the operation does not stop.

2. Preparation of borehole programs

Figure 2 shows the bearing support part. The process is: clamping in a horizontal machining center, using anti-twist fixed cycle and other functions, do not rotate the table to ensure the coaxiality requirements.

1

Figure 2 Bearing Support

O1001
N10 M06 T01
N20 G00 G90 G55 X0 Y0 Z0
N30 M03 S350 M08
N40 G76 G99 Z-85.0 R-5.0 Q0.3 F40 with fine-bore circulation é•—f 35H9 hole
N50 M05 M09
N60 G30 Y0 M06 T02
N70 M03 M08
N80 G43 H02 G00 Z0

N90 G76 G99 Z-25.0 R-5.0 Q0.3 Using the right-hand hole of the fine-turn cycle 45f 45H7
N100 M05 M09
N110 G30 G49 Y0 M06 T03
N120 G00 G43 H03 Z0
N130 M03 M08
N140 G87 G99 Z-85.0 R-100.0 Q6.0 Using Reverse Circulation é•—f 45H7 Left Hole
N150 G49 G30 Y0
N160 M05 M09
N170 M30

Program features:

1) Use G55 to set the machining coordinate system and use parameter settings before machining.

2) There are three tool change commands, G30, to achieve different holes. The Y axis must be referenced (N60, N110, and N150) when the horizontal machining center changes tool.

3) Use cutter length compensation to handle boring burrs of different lengths so that they reach the same working point position.

4) End of program Use M30 to automatically reset the program to the program start position after execution. After the next part is clamped, press the cycle again to start a new round of processing. In order to continuously process such cycles, the function of the N150 block not only eliminates the tool length compensation in time, but also returns the Y axis to the tool change position, making it ready for execution of the N10 block.

5) In the fine boring hole cycle, there is a movement of the knife when retracting, and the operator should pay special attention to the direction of the knife edge when loading the knife in the magazine.

3. Preparation of milling programs

The programming of the straight line and circular arc machining program for plane graphics is introduced below. Figure 3 shows the magnetic steel tile die drawing. The procedure for machining this die with the vertical machining center is as follows:

1

Figure 3 magnetic tile block mold

O1002
N10 M06 (using f 20 end mill)
N20 G90 G00 G54 X5.0 Y30.0
N30 Z0
N40 M03 S300 F30 M08
N50 G01 G42 D1 X15.0 Y47.7 (D1=10.2)
N60 X20.0 Y67.08
N70 G03 X-20.0 R70.0
N80 G01 X-15.0 Y47.7
N90 G02 X15.0 R50.0
N100 G01 G40 X5.0 Y30.0

N110 G42 D2 X15.0 Y47.7
N120 X20.0 Y67.08
N130 G03 X-20.0 R70.0
N140 G01 X-15.0 Y47.7
N150 G02 X15.0 R50.0
N160 G01 G40 X5.0 Y30.0
N170 G00 Z100.0
N180 M05 M09
N190 M01
N200 M99 P02
Settings: D1=10.2, D2=10.

Program features:

1) The same tool uses two tool radius compensation functions to achieve rough machining and finishing of parts.

2) The program can be recycled for batch processing.

3) The radius compensation number is D1. The radius compensation function should be canceled promptly after it is used. Otherwise, the position offset will be generated in other program segments. This kind of offset function cannot be cancelled by the program reset function.

4) If you introduce subroutines, you can further simplify the program.

WEC67K NC Press Brake

WEC67K NC Press Brake,WEC67K CNC bending machines,CNC sheet metal press brake

NANTONG XINTONGWEI MACHINE TOOL CO.,LTD , https://www.inxtw.com