appendix 1 - CNCwebschool.com

30 downloads 147 Views 663KB Size Report
CNC – 50 Hour Programming Course. I. Y-axis Lathe Programming. Contents. I. Y-axis ..... N220 G95 S3000 M3. N230 SPOS[1]=0. N240 G0 Z-2. N250 G0 X20.
1

I.

Y-axis Lathe Programming

Contents

I.

Y-axis Lathe Programming ....................................................... 1 1.1 Introduction ................................................................................. 2 1.2 Specific programming scheme for plane G19 ................................. 4 1.3 Programming example ................................................................. 4 1.3.1 Y-axis positive direction .................................................... 5 1.3.2 Circular interpolation ........................................................ 8 1.3.3 Direct programming of radii, chamfers and angles .............. 9 1.3.4 MIRROR: Programmable mirror function........................ 10 1.4 Practice...................................................................................... 12 1.4.1 Introduction.................................................................... 12 1.4.2 Creation of the Y-axis lathe ............................................. 12 1.4.3 Download of the programs and transfer to SinuTrain ........ 13 1.4.4 Importation of the tool data ............................................. 14 1.4.5 Activation of the graphic simulation................................. 14 1.5 Programs for Making Chess Pieces.............................................. 15 1.5.1 Introduction.................................................................... 15 1.5.2 Pawn .............................................................................. 16 1.5.3 Bishop ............................................................................ 18 1.5.4 Knight ............................................................................ 21 1.5.5 Rook .............................................................................. 25 1.5.6 Queen............................................................................. 28 1.5.7 King ............................................................................... 30

CNC – 50 Hour Programming Course

2 1.1 Introduction This appendix will cover the programming of a lathe with 4 axes (X, Z, Y, C). The machine is essentially the same as that analysed in the book with the added possibility of moving the turret along the transversal axis on plane G18. As already seen in paragraph 4.5, the Y-axis gives the lathe greater flexibility when executing milling operations.

X-axis asse Y Z-axis C-axis

Fig. 1. Example of a lathe with 3 axes and motorised tools

The ISO functions presented during the course were first used on the X-Z (G18) turning plane; then in Chapter 32 they were used to define the profile to be milled on the X-Y (G17) plane; now they are used to program the milling operations carried out on the Y-Z (G19) plane.

www.cncwebschool.com

3 The programming concepts for each single function are exactly those already presented in the chapters contained within the book. A programming scheme remains to be established to determine: - the clockwise and anticlockwise directions of the circle arcs, - the right and left position of the tool compared to the profile of the part, - the value of the angles to be used in direct programming. The programming scheme to be used is that already analysed in paragraph 4.9.

Fig. 2. Programming scheme for all work planes

CNC – 50 Hour Programming Course

4 1.2 Specific programming scheme for plane G19 So as to use correctly the programming scheme, it must be positioned according to the positive direction of the axes present in the machine, the tool's intended trajectory must be evaluated and the correct function to be used must be chosen. Below is the specific scheme to be used on the Y-Z work plane.

Fig. 3. Specific programming scheme for the Y-Z plane

1.3 Programming example Programming for the following work piece starts with the application of the scheme in Figure 3.

Fig. 4. Programming example with work on the Y-Z plane

www.cncwebschool.com

5 1.3.1 Y-axis positive direction In a lathe, the zero point of the Y-axis is located (as for the X-axis) on the rotation axis of the part. The tool's direction of movement (indicated by the red arrow) shows that the mill is moving from Y negative to Y positive.

from YZ-axis

to Y+

Y0, Z0

Y-axis

Fig. 5. Flat milling on the Y-Z plane

Analyse the example of a program that carries out a flattening of the part, considering that the position of the milling plane is determined by the value programmed into X. ; ; ; ; ;

dimensions of the workpiece: XA = 80 diameter of the bar ZA = 0 machining allowance on front face ZI = -120 length of the finished part ZB = -80 protuberance from the jaws

N10 WORKPIECE(,,,"CYLINDER",192,0,-120,-80,60) N20 G54

CNC – 50 Hour Programming Course

6 N30 N40 N50 N60 N70

G0 X400 Z500 M8 SETMS(1) SPOS=0 SETMS(3)

N80 G19 N90 T19 D1 G0 Y0 ;RADIAL MILL D.16 N100 G95 S2000 M3 ; FIRST FLATTENING A X50 N110 G0 Y28 N120 Z0 N130 X50 N140 G1 Y-26 G94 F200 N150 G0 Z-10 N160 G1 Y28 N170 G0 Z-20 N180 G1 Y-28 N190 G0 Z-30 N200 G1 Y28 N210 G0 Z-40 N220 G1 Y-28 N230 G0 Z-50 N240 G1 Y-28

; SECOND FLATTENING AT X40 N250 G0 Y34 N260 Z0 N270 X40 N280 G1 Y-34 G94 F200 N290 G0 Z-10 N300 G1 Y34 N310 G0 Z-20 N320 G1 Y-34 N330 G0 Z-30 N340 G1 Y34 (BLOCK SHOWN IN FIGURE 5)

www.cncwebschool.com

7

N350 G0 Z-40 N360 G1 Y-34 N370 G0 Z-50 N380 G1 Y-34 N390 G0 Y50

; THIRD FLATTENING AT X32 N400 G0 Y39 N410 Z0 N420 X30 N430 G1 Y-39 G94 F150 N440 G0 Z-10 N450 G1 Y39 N460 G0 Z-20 N470 G1 Y-39 N480 G0 Z-30 N490 G1 Y39 N500 G0 Z-40 N510 G1 Y-39 N520 G0 Z-50 N530 G1 Y-39 N540 G0 Y50 N550 G0 X200 N560 G0 Z200

CNC – 50 Hour Programming Course

8 1.3.2 Circular interpolation As can be seen in Figure 4, the path to be followed is symmetrical relative to the Z-axis. After flattening, the program continues with the completion of the remaining half in the positive Y quadrant. The red arrow indicates that the mill, to make the radius, turns clockwise; based on the programming scheme, the function to be used is therefore G2 (see Chapter 13).

Z-axis

Y-axis

Fig. 6. Circular interpolation on the Y-Z plane N570 T10 D1 G0 Y0 ;RADIAL MILL D.4 N580 G95 S4000 M3 ; PROFILE START N590 G0 Y0 N600 Z-5 N610 X34 N620 G1 X29 G94 F120 N630 START:

www.cncwebschool.com

9 N640 Y11 N650 G2 Y18 Z-12 CR=6.2

1.3.3 Direct programming of radii, chamfers and angles After the radius, the profile continues with a line parallel to the Z-axis which connects with a radius to the following straight line inclined at 45°. The direct programming of radii, chamfers and angles occurs according to the same concepts and functions present in chapter 12. Aligning the programming scheme in Figure 3 with the positive direction of the axes, it results that the angle value to be programmed is 225°.

Z-axis

45° Y-axis

Fig. 7. Direct programming of radii, chamfers and angles on the Y-Z plane N660 G1 Z-22 RND=4 N670 G1 Z-30 ANG=225 CHR=2

CNC – 50 Hour Programming Course

10

Z-axis

Y-axis

Fig. 8. Completion of half of the profile

The program completes the lower half of the profile and withdraws the mill to X32. N680 N690 N700 N710

G1 Z-38 G2 Z=IC(-6) Y=IC(-6) K-6 J0 G1 Y0 END:

N720 G0 X32

1.3.4 MIRROR: Programmable mirror function The upper part of the profile happens to be a perfect mirror image of the lower part. The MIRROR function allows for the inversion of the positive direction of one or more axes.

www.cncwebschool.com

11 In order to create the upper profile, the program repositions the mill at the start point of the lower profile (co-ordinates Y0, Z-5, X29), activates the mirroring of the Y-axis (MIRROR Y0) and repeats the blocks programmed between the buttons ‘START:’ and ‘END:’. The MIRROR function (programmed without the name of any axis) deactivates the mirror function.

N730 G0 Y0 Z-5 N740 G1 X29 N750 MIRROR Y0 ; Y-AXIS MIRROR ACTIVATION N760 REPEAT START END

Once the path is complete, Y-axis mirroring (MIRROR) deactivates and the block G1 Z-5 is carried out to complete the profile. N770 MIRROR ; MIRROR DEACTIVATION N780 G1 Z-5 N790 G0 X400 N800 G0 Z200 N810 G0 Y0 N820 M30

CNC – 50 Hour Programming Course

12 1.4

Practice

1.4.1 Introduction The lathe on which this practice is carried out is not yet present in the simulation software. We will therefore create it and load the programs and the tools used.

1.4.2 Creation of the Y-axis lathe Once the program SinuTrain Operate has been initiated, click on the icon NEW located on the high part of the screen and select the first option proposed, which is to Create a new machine configuration from a template, then press NEXT. In this window there appears the list of standard machine models preconfigured in SinuTrain, select Lathe with driven tool, Y-axis and counter spindle and press NEXT. Now choose the name of the lathe, describe its basic characteristics and set the language and the size of the window which plays the video of the machine according to the information reported below. GENERAL

Machine name: LATHE: with Y-axis and counter spindle Description: SP1: main spindle’s name, X: radial linear axis, Y: transversal linear axis, Z: longitudinal linear axis, SP3: name of the spindle for motorised tools, SP2: name of the counter spindle

LANGUAGE

English - English

RESOLUTION

640x480

www.cncwebschool.com

13 Then press FINISH, the machine has been created and is visible on the start page of the program. Select the newly created lathe and press the icon START.

Fig. 9. Initiation of the lathe in the training program

1.4.3 Download of the programs and transfer to SinuTrain Open the web page www.cncwebschool.com, log in to the area APPENDIXES, click on PROGRAMS USED IN APPENDIX 1 to download the folder which contains the programs. Select with the cursor the compressed folder once downloaded, rightclick with the mouse and select: Extract all, Next, Next. Copy folder A1_PROG to an empty USB memory storage. On the control panel click PROGRAM MANAGER. Select from the horizontal USB softkeys, the content of the external memory will appear on the screen. Select with the arrow the folder A1_PROG then press the yellow button INPUT to open it. Now go down to the orange bar and select folder A01_01. From the vertical softkeys, press MARK and move down with the arrow selecting all the contents of the folder.

CNC – 50 Hour Programming Course

14 Press COPY. Press NC from the horizontal softkeys. Select with the arrow the folder WORKPIECES and press PASTE from the vertical softkey. Now all the programs and the file that contains the tools’ tooling data are available for use. 1.4.4 Importation of the tool data Press PROGRAM MANAGER and then enter folder A01_01, select with the arrow the file TOOL_APP_01 and press the yellow key INPUT, the NC recognises that you want to load the tool data. Then press OK and confirm, by pressing OK again, that you want to overwrite the current data. 1.4.5 Activation of the graphic simulation Open program ‘PRG_01’ contained in folder ‘A01_01’. This program creates the part shown in Figure 3. Activate the graphic simulation in a single block and analyse the movement of the tool based on the current program block, referring to the comments in the previous paragraphs for help. You can download the video from cncwebschool.com's YouTube channel. In the APPENDIXES section you will also find the pocket 3D model of the programming scheme to be used on the various work planes.

www.cncwebschool.com

15 1.5

Programs for Making Chess Pieces

1.5.1 Introduction In this section, the Y-axis is used to carry out the workings present on chess pieces. Each workpiece directory contains the main programs (MPF.) and the subprograms (SPF.) needed to create each single piece. The diameter of the raw bar is 30 mm.

Fig. 10. Programs for making chess pieces

CNC – 50 Hour Programming Course

16 1.5.2 Pawn Open program ‘PRG_02’ contained in folder ‘A01_02’.

Fig. 11. Pawn

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of the finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("PAWN",0,,) N100 CYCLE952("con_temp",,"",1101311,0.1,0.1,0,3,0.1,0.1,0.5,0.1,0 .1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200 N120 T2 D1 G0 Y0 ; FINISHING TOOL N130 G95 S1800 M4 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 N160 G0 X2 Z1

www.cncwebschool.com

17 N170 G1 X0 Z0 G42 N180 PAWN N190 G0 X200 Z200 G40

N200 N210 N220 N230 N240 N250 N260 N270 N280

T3 D2 G0 Y0 ; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-24.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35

N290 G0 X200 Z200 N300 M30

Subprogram PAWN.SPF to carry out the external turning. G18 G90 G71 DIAMON G1 Z=0 X=0 G3 Z=-7.428 X=8.742 K=AC(-5) I=AC(0) G1 Z=-7.878 X=8.353 G2 Z=-14.966 X=11.935 K=AC(-10.256) I=AC(9.685*2) G1 Z=-17.446 X=18.218 G3 Z=-17.791 X=19.186 K=AC(-18.395) I=AC(8.797*2) Z=-20.2 X=19.2 K=AC(-19) I=AC(8*2) Z=-21 X=20 K=AC(-21) I=AC(9*2) G1 Z=-24 G3 Z=-25 X=18 K=AC(-24) I=AC(9*2) G1 X=30 Z=-33.502 M17

CNC – 50 Hour Programming Course

18 1.5.3 Bishop Open program ‘PRG_03’ contained in folder ‘A01_03’.

Fig. 12. Bishop

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of the finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("BISHOP",0,,) N100 CYCLE952("con_temp",,"",1101311,0.1,0.1,0,3,0.1,0.1,0.5,0.1,0 .1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200 N120 T2 D1 G0 Y0 ; FINISHING TOOL N130 G95 S1800 M4

www.cncwebschool.com

19 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 N160 G0 X2 Z1 N170 G1 X0 Z0 G42 N180 BISHOP N190 G0 X200 Z200 G40 N200 N210 N220 N230 N240 N250 N260 N270 N280

T10 D1 G0 Y10; RADIAL MILL D.3 SETMS(3) G95 S1500 M3 G0 SP1=0 G0 Z-9 G0 X8.2 G1 Y0 Z-3 F0.1 G1 Y-10 Z-9 G0 X34

N290 G0 X200 N300 G0 Z200

N310 N320 N330 N340 N350 N360 N370 N380 N390

T3 D2 G0 Y0 ; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-32.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35

N400 G0 X200 Z200 N410 M30

Subprogram BISHOP.SPF to carry out the external turning. G18 G90 G71 DIAMON G1 Z=0 X=0 G1 X=4 G3 Z=-2.924 X=7.547 K=AC(-2) I=AC(2*2) Z=-11.472 X=10.572 K=AC(-8) I=AC(0) G2 Z=-13.504 X=9.266 K=AC(-13.667) I=AC(8.629*2) Z=-22.994 X=17.229 K=AC(-14.002) I=AC(16.747*2)

CNC – 50 Hour Programming Course

20 Z=-23.255 X=17.956 K=AC(-21.51) I=AC(9.954*2) G3 Z=-26.2 X=19.2 K=AC(-25) I=AC(8*2) Z=-27 X=20 K=AC(-27) I=AC(9*2) G1 Z=-32 G3 Z=-33 X=18 K=AC(-32) I=AC(9*2) G1 X=30 Z=-41.502 M17

www.cncwebschool.com

21 1.5.4 Knight Open program ‘PRG_04’ contained in folder ‘A01_04’.

Fig. 13. Knight

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("KNIGHT",0,,) N100 CYCLE952("con_temp",,"",1101311,0.15,0.1,0,3,0.1,0.1,0.5,0.1, 0.1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200 N120 T2 D1 G0 Y0 ; FINISHING TOOL N130 G95 S1800 M4

CNC – 50 Hour Programming Course

22 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 F0.12 N160 G0 X2 Z1 N170 G1 X0 Z0 G42 N180 KNIGHT N190 G0 X200 Z200 G40 N200 N210 N220 N230 N240 N250

T19 D1 G0 Y15; RADIAL MILL D.16 SETMS(3) G95 S1200 M3 SPOS[1]=0 G0 Z8 G0 X6

N260 N270 N280 N290 N300 N310 N320 N330

START_PLANE: G1 Z-2 G1 Y-15 G1 Z-10 G1 Y15 G1 Z-18.2 ; FINAL VALUE INCLUDING RADIUS 8 =26.2 G1 Y-15 END_PLANE:

N340 G0 Y20 N350 G0 Z-2 N360 SPOS[1]=180 N370 REPEAT START_PLANE END_PLANE N380 G0 X200 N390 G0 Z200

N400 N410 N420 N430 N440 N450 N460 N470

T10 D1 G0 Y0; RADIAL MILL D.4 SETMS(3) G95 S1500 M3 G0 SP1=0 G0 Z5 G0 X-8 G19 G1 Y4 Z4 G42 F0.1

N480 PROF_YZ

www.cncwebschool.com

23 N490 G1 Y-15 G40 N500 G18 N510 G0 X200 N520 G0 Z200

N530 N540 N550 N560 N570

T17 D1 G0 Y0.5; RADIAL DRILL D.4 SETMS(3) G95 S2500 M3 SPOS[1]=180 G0 Z-5

N580 N590 N600 N610 N620 N630

START_HOLE: G0 X8 G1 X-0.8 F0.08 G4 F0.4 G0 X34 END_HOLE:

N640 SPOS[1]=0 N650 G0 Y-0.5 N660 REPEAT START_HOLE END_HOLE N670 G0 X200 N680 G0 Z200 N690 N700 N710 N720 N730 N740 N750 N760 N770

T3 D2 G0 Y0 ; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-32.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35

N780 G0 X200 Z200 N790 M30

CNC – 50 Hour Programming Course

24 Subprogram KNIGHT.SPF to carry out the external turning. N10 G18 G90 G71 DIAMON N20 G1 Z=0 X=0 N30 G3 Z=-0.043 X=1.302 K=AC(-5) I=AC(0) N40 Z=-4.083 X=17.053 K=AC(-13.074) I=AC(-1.059*2) N50 Z=-8.416 X=19.591 K=AC(-7.503) I=AC(4.88*2) N60 Z=-13.861 X=14.591 K=AC(-6.177) I=AC(-2.261*2) N70 G2 Z=-19.255 X=13.465 K=AC(-16.995) I=AC(11.192*2) N80 G1 Z=-21.9 X=16.146 N90 G2 Z=-23.449 X=18.59 K=AC(-19.638) I=AC(12.533*2) N100 G3 Z=-26.174 X=19.2 K=AC(-24.974) I=AC(8*2) N110 Z=-26.974 X=20 K=AC(-26.974) I=AC(9*2) N120 G1 Z=-31.974 N130 G3 Z=-32.974 X=18 K=AC(-31.974) I=AC(9*2) N140 G1 X=30 N150 Z=-41.476 N160 M17

Subprogram PROF_YZ.SPF to carry out the milling of the profile on the Y-Z plane. N10 G19 G90 G71 N20 G0 Z=0 Y=0 N30 G1 Z=-5.545 Y=-8.606 N40 G3 Z=-6.462 Y=-9.257 K=AC(-6.808) J=AC(-7.798) N50 Z=-8.325 Y=-9.304 K=AC(-7.505) J=AC(-4.88) N60 Z=-10.29 Y=-8.759 K=AC(-6.176) J=AC(2.261) N70 Z=-10.601 Y=-8.17 K=AC(-10.116) J=AC(-8.291) N80 G1 Z=-10.44 Y=-7.524 N90 G2 Z=-11.434 Y=-4.87 K=AC(-12.865) J=AC(-6.919) N100 Z=-16.045 Y=-4.545 K=AC(-14.011) J=AC(-8.559) N110 G1 Z=-24 Y=-10 N120 M17

www.cncwebschool.com

25 1.5.5 Rook Open program ‘PRG_05’ contained in folder ‘A01_05’.

Fig. 14. Rook

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of the finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("ROOK",0,,) N100 CYCLE952("con_temp",,"",1101311,0.1,0.1,0,3,0.1,0.1,0.5,0.1,0 .1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200 N120 T2 D1 G0 Y0 ; FINISHING TOOL N130 G95 S1800 M4

CNC – 50 Hour Programming Course

26 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 N160 G0 X2 Z1 N170 G1 X0 Z0 G42 N180 ROOK N190 G0 X200 Z200 G40

N200 N210 N220 N230 N240 N250 N260 N270 N280

T20 D1 G0 Y0; AXIAL MILL D.2 SETMS(3) G95 S3000 M3 SPOS[1]=0 G0 Z-2 G0 X20 G1 X-20 F0.05 SPOS[1]=90 G0 X20

N290 G0 X200 N300 G0 Z200

N310 N320 N330 N340 N350 N360 N370 N380 N390

T3 D2 G0 Y0 ; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-28.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35

N400 G0 X200 Z200 N410 M30

www.cncwebschool.com

27 Subprogram ROOK.SPF to carry out the external turning. G18 G90 G71 DIAMON G1 Z=0 X=0 G1 X=12 G3 Z=-1 X=14 K=AC(-1) I=AC(6*2) G1 Z=-4 G3 Z=-4.637 X=13.541 K=AC(-4) I=AC(6*2) G1 Z=-6.245 X=10.883 G2 Z=-6.737 X=10.284 K=AC(-7.521) I=AC(6.982*2) Z=-7.774 X=9.658 K=AC(-8.692) I=AC(9.744*2) Z=-18.994 X=17.229 K=AC(-10.002) I=AC(16.747*2) Z=-19.255 X=17.956 K=AC(-17.51) I=AC(9.954*2) G3 Z=-22.2 X=19.2 K=AC(-21) I=AC(8*2) Z=-23 X=20 K=AC(-23) I=AC(9*2) G1 Z=-28 G3 Z=-29 X=18 K=AC(-28) I=AC(9*2) G1 X=30 Z=-37.502 M17

CNC – 50 Hour Programming Course

28 1.5.6 Queen Open program ‘PRG_06’ contained in folder ‘A01_06’.

Fig. 15. Queen

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of the finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("QUEEN",0,,) N100 CYCLE952("con_temp",,"",1101311,0.1,0.1,0,3,0.1,0.1,0.5,0.1,0 .1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200 N120 T2 D1 G0 Y0 ; FINISHING TOOL

www.cncwebschool.com

29 N130 G95 S1800 M4 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 N160 G0 X2 Z1 N170 G1 X0 Z0 G42 N180 QUEEN N190 G0 X200 Z200 N200 N210 N220 N230 N240 N250 N260 N270 N280 N290 N300

T3 D2 G0 Y0 ; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-34.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35 G0 X200 Z200 M30

Subprogram QUEEN.SPF to carry out the external turning. N10 G18 G90 G71 DIAMON N20 G1 Z=0 X=0 N30 G1 X=4 N40 G3 Z=-1.462 X=5.773 K=AC(-1) I=AC(2*2) N50 G1 Z=-2.924 X=7.547 N60 X=12 N70 G3 Z=-4.724 X=13.2 K=AC(-3.924) I=AC(6*2) N80 G1 Z=-5.324 X=11.6 N90 G2 Z=-6.924 X=10 K=AC(-6.924) I=AC(7*2) N100 G1 Z=-7.339 N110 G3 Z=-8.424 X=9.7 K=AC(-7.339) I=AC(1*2) N120 G2 Z=-25.426 X=22.468 K=AC(-12.581) I=AC(19.61*2) N130 G3 Z=-28.2 X=23.2 K=AC(-27) I=AC(10*2) N140 Z=-29 X=24 K=AC(-29) I=AC(11*2) N150 G1 Z=-34 N160 G3 Z=-35 X=22 K=AC(-34) I=AC(11*2) N170 G1 X=30 N180 Z=-43.502 N190 M17

CNC – 50 Hour Programming Course

30 1.5.7 King Open program ‘PRG_07’ contained in folder ‘A01_07’.

Fig. 16. King

Main program. ; dimensions of the workpiece: ; XA = 30 diameter of the bar ; ZA = 0.5 machining allowance on front face ; ZI = -100 length of the finished piece ; ZB = -60 protuberance from the jaws N10 WORKPIECE(,,,"CYLINDER",192,0.5,-100,-60,30) N20 N30 N40 N50

G18 G54 G90 G0 X400 Z500 M8 SETMS(1)

N60 T1 D1 G0 Y0 ; ROUGHING TOOL N70 G95 S1400 M4 N80 G0 X62 Z2 ; APPROACH OUTSIDE OF THE WORKPIECE N90 CYCLE62("RE",0,,) N100 CYCLE952("con_temp",,"",1101311,0.1,0.1,0,3,0.1,0.1,0.5,0.1,0 .1,0,1,0,0,,,,,2,2,,,0,1,,0,12,1100110,1,0) N110 G0 X200 Z200

www.cncwebschool.com

31 N120 T2 D1 G0 Y0 ; FINISHING TOOL N130 G95 S1800 M4 ;EXECUTION OF FACING N140 G1 X35 Z0 N150 G1 X-1 N160 G0 X2 Z1 N170 G1 X0 Z0 G42 N180 KING N190 G0 X200 Z200 G40 N200 N210 N220 N230 N240 N250

T3 D1 G0 Y0 ; GROOVE TOOL 2MM G95 S1400 M4 G0 X18 Z-7 G1 X4 F0.08 G1 X20 G0 X200 Z200

N260 N270 N280 N290 N300 N310 N320 N330 N340

T19 D1 G0 Y16; RADIAL MILL D.16 SETMS(3) G95 S1200 M3 SPOS[1]=0 G0 Z1 G0 X4.2 G1 Y-16 F0.1 SPOS[1]=180 G1 Y16

N350 G0 X200 N360 G0 Z200 N370 N380 N390 N400 N410 N420 N430 N440 N450

T3 D2 G0 Y0; PARTING OFF TOOL SETMS(1) G96 S100 M4 LIMS=3000 G0 Z-38.8 G0 X35 G1 X4 F0.12 G4 S4 G0 X35

N460 G0 X200 Z200 N470 M30

CNC – 50 Hour Programming Course

32 Subprogram KING.SPF to carry out the external turning. N10 G18 G90 G71 DIAMON N20 G1 Z=0 X=0 N30 G1 X=4 N40 Z=-2 N50 X=8 N60 Z=-4 N70 Z=-6.924 N80 X=12 N90 G3 Z=-8.724 X=13.2 K=AC(-7.924) I=AC(6*2) N100 G1 Z=-9.324 X=11.6 N110 G2 Z=-10.924 X=10 K=AC(-10.924) I=AC(7*2) N120 G1 Z=-11.339 N130 G3 Z=-12.424 X=9.7 K=AC(-11.339) I=AC(1*2) N140 G2 Z=-29.426 X=22.468 K=AC(-16.581) I=AC(19.61*2) N150 G3 Z=-32.2 X=23.2 K=AC(-31) I=AC(10*2) N160 Z=-33 X=24 K=AC(-33) I=AC(11*2) N170 G1 Z=-38 N180 G3 Z=-39 X=22 K=AC(-38) I=AC(11*2) N190 G1 X=30 N200 Z=-47.502 N210 M17

www.cncwebschool.com