S3000 – S4000 CNC SERIES Programming Examples March 2003 Edition S3000 – S4000 SERIES CNC Index REVISIONS Rev.# Rev. Date. Pages Revised Mar. 2003 Emission 00 CMAE3403030E --------- ---------------- ---------------------------------------------------------------------------------------------------------Nov.2003 Second Edition 01 CMAE3403111E Updated PROG18 and PROG44 programs. --------- ---------------- ---------------------------------------------------------------------------------------------------------- Note: Pages marked (01) have been modified. Pages marked (01)+ are new ones. Programming Examples I S3000 – S4000 SERIES CNC Index REVISIONS Rev.# Rev. Date. Pages Revised Note: Pages marked (01) have been modified. Pages marked (01)+ are new ones. II Programming Examples S3000 – S4000 SERIES CNC Index INDEX PROG01 PROG02 PROG03 PROG04 PROG05 PROG06 PROG07 PROG08 PROG09 PROG10 PROG11 PROG12 PROG13 PROG14 PROG15 PROG16 PROG17 PROG18 PROG19 PROG20 PROG21 PROG22 PROG23 PROG24 PROG25 PROG26 PROG27 PROG28 PROG29 PROG30 PROG31 PROG32 PROG33 PROG34 PROG35 PROG36 - Profile 1 ........................................................................................................... 1 Profile 2 ........................................................................................................... 2 Profile 3 ........................................................................................................... 3 Profile 4 ........................................................................................................... 4 Profile 5 ........................................................................................................... 5 Profile 6 ........................................................................................................... 6 Profile 7 ........................................................................................................... 7 Profile 8 ........................................................................................................... 8 Profile 9 ........................................................................................................... 10 Profile 10 ........................................................................................................... 11 Profile 11 ........................................................................................................... 12 Profile 12 ........................................................................................................... 13 Profile 13 ........................................................................................................... 14 Profile 14 ........................................................................................................... 15 Profile 15 ........................................................................................................... 16 Profile 16 ........................................................................................................... 17 Pin thread with thread chase milling cutter .................................................... 18 Drilling thread with thread chaser cutter ........................................................ 19 Taper hole ......................................................................................................... 20 Tapered pin ....................................................................................................... 21 Filetto - Hole thread ....................................................................................... 22 Barenat - Boring with wall disjunction ........................................................ 23 Equc - Points on a circle ................................................................................ 24 Equl - Points on a straight line ..................................................................... 25 Ret - Points on a rectangle ........................................................................... 26 Retc - Points on a centred rectangle ............................................................. 27 Sgrossa - Board rough-boring ...................................................................... 28 Scanal - Groove .............................................................................................. 29 Scanal1 - Groove with slope descent ........................................................... 30 Cavaret - Rectangular pocket ........................................................................ 32 Spiral sphere .................................................................................................... 34 Modal subprogram ............................................................................................ 35 Rotated/offset pattern tapping holes on a linear with G751 function ......... 36 Profiled pocket with internal islands ............................................................. 37 Ellipse draining ................................................................................................ 39 Pocket with circular islands.............................................................................. 40 Programming Examples III S3000 – S4000 SERIES CNC Index PROG37 PROG38 PROG39 PROG40 PROG41 PROG42 PROG43 PROG44 PROG45 PROG46 PROG47 PROG48 PROG49 PROG50 PROG51 PROG52 PROG53 PROG54 PROG55 PROG56 PROG57 PROG58 PROG59 PROG60 PROG61 PROG62 PROG63 PROG64 PROG65 PROG66 - PROG67 PROG68 PROG69 PROG70 PROG71 PROG72 PROG73 PROG74 PROG75 PROG76 PROG77 PROG78 PROG79 PROG80 IV - Pocket with linear repeated islands ................................................................41 Holes on a hexagon .........................................................................................42 Selbox push-buttons ........................................................................................43 Spherical dome with points ............................................................................44 Spherical dome with circles ............................................................................45 Spherical dome with external radius .............................................................46 Three-dimensional parametric flower .............................................................47 Elliptical die ......................................................................................................48 Elliptical punch ................................................................................................49 Handgrip punch ...............................................................................................50 Handgrip die ....................................................................................................51 Profile programmed on XY and machined on XZ ...........................................52 Conical slot .......................................................................................................53 Conical hole .....................................................................................................54 Conical pin .........................................................................................................55 Columns..............................................................................................................56 Tub .....................................................................................................................57 Punch .................................................................................................................59 Concave sphere ...............................................................................................61 Convex sphere .................................................................................................62 Toroid ................................................................................................................63 Conical polygon ...............................................................................................64 Section profile ellipse ......................................................................................65 Pocket with chafers on the walls ....................................................................66 Plane profile with double radius section ........................................................67 Double crowning profile ..................................................................................68 One tub with 3 sectioned sides .......................................................................69 4 sectioned three-dimensional punch ...........................................................70 Sphere with 3 spherical ears ...........................................................................71 Solid defined by an open plane profile and an XY machining section profile ..................................................................................................72 Semicircular section solid defined by a profile on XY and by a profile on XZ .....................................................................................................73 Automobile tyre rim die ....................................................................................75 Plane profile with 3 different sections ..........................................................76 Die for Selbox push-buttons repeated on a linear grid ..................................77 Punch for Selbox ...............................................................................................79 Conical slot repeated on a linear grid ............................................................81 Grooved surface that links a radius to a profile ............................................82 Grooved surface with delimiting profile ........................................................83 Surfaces defined by 3 grooves .......................................................................84 Chamfer on a tube .............................................................................................85 Joint on a tube .................................................................................................87 Semicircular channel on XZ ............................................................................89 Slots on a circumference with a spiral cutter ................................................90 Spiral milled rectangle .....................................................................................91 Programming Examples S3000 – S4000 SERIES CNC Index PROG81 PROG82 PROG83 PROG84 PROG85 PROG86 PROG87 PROG88 PROG89 PROG90 PROG91 PROG92 PROG93 PROG94 PROG95 PROG96 PROG97 PROG98 PROG99 - Cylinder head .................................................................................................... 92 Layout of a profile on XY on a profile on XZ ................................................. 93 Union of two profiles by a 180° arch .............................................................. 94 Union of two profiles by means of a third profile .......................................... 96 Six cams ........................................................................................................... 98 Three cams ....................................................................................................... 99 Programme to create a vacuum cleaner nozzle .......................................... 101 Small parametrical tubs repeated at angles .............................................. 103 Punch with operating field limitations ......................................................... 105 Tube intersection .......................................................................................... 106 Three-dimensional push-button .................................................................. 108 Cogs ................................................................................................................ 109 Tub whit different depths ............................................................................. 110 Hourglass ........................................................................................................ 111 Parametric conical pocket ........................................................................... 112 Parametric conical punch ............................................................................ 114 Grooved between 2 specular profiles ......................................................... 116 Parametric conical punch on a circumference .......................................... 117 Parametric conical punch on a grid ............................................................. 119 Programming Examples V S3000 – S4000 SERIES CNC Index VI Programming Examples S3000 – S4000 SERIES CNC PROG01 Profile 1 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) Unquoted radiuses = 5 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 [PROFILE 1 $1M0X-93.1I63.5Y-40.5J59.5 G17 O1 T1 F1000S1200M3 G49I3 Z100R X0Y-10R Z2R Z-10 G41K2 G13Y-20J0 G21I5 G13X56J90 G21 E1=G20X76Y27,G21I-25.65,G20X28Y45 E1 G21I5 G10X120Y0I-5 G11X-110Y70I-5 G21 G13Y40J180 G21 Programming Examples N25 N26 N27 N28 N29 N30 N31 N32 N33 G13X-73J-90 G21I-5 E2=G21X-58Y-6,G13X-98.5Y0J-45 E2 G21 G13Y-20J0 G40X0Y-10K2 Z100R M30 1 S3000 - S4000 SERIES CNC PROG02 Profile 2 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) Unquoted radiuses = 2.5 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 2 [PROFILE 2 $1M0X-82.9I125.Y-63.9J69.1 G17 O1 T1 F1000S1200M3 G49I2 Z100R X35Y25R Z2R Z-10 G41K2 G13Y15J0 G21I-20 E1=G13X105Y-10J-30 E1 E2=G13Y-25X0J180 E3=E1,G13X105Y0J-90,E2 E3 E2 G21I2.5 G13X85J-90 G21I-2.5 E4=G20X25Y-40I10 E5=G20X68Y-40I8,G13X0Y-28J180,E4 E5 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 E4 G21I-2.5 G13Y-40J180 E6=G20X-35Y-30I-10 E6 E7=G20X-35Y40I-15 E8=E6,G20X0Y0I-34,E7 E8 E7 G21I39 G13Y15J0 G40X35Y25K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG03 Profile 3 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) [PROFILE 3 $1M0X-105.I103.Y-63.7J69.3 G17 O1 T1 F1000S1200M3 Z100R X-20Y27R Z2R Z-10 G49I2 G41K2 L=1 G20X0Y0I-25 G21I10 G13X-3J90 G20X0Y63I-3 G13J-90 G21 G51J-72I L1K4 G51J0 G50 G20X0Y0I-25 G40X-20Y27K2 Z100R M30 Programming Examples 3 S3000 - S4000 SERIES CNC PROG04 Profile 4 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) Point of intersection Unquoted radius N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 4 [PROFILE 4 $1M0X-83.1I90.7Y-53.7J57.3 G17 O1 T1 F1000S1200M3 G49I2 Z100R X20Y35R Z2R Z-10 G42K2 L=1 E1=G13X12.4Y0J-90,G20X0Y0I45.3 E2=G13E1J91 E2 G21I1 G13X0Y0I46J151.5 G21 G20X0Y0I48.9 G21 G13X0Y0I46J-151.5 G21 E3=G13X-12.4Y0J-90,G20X0Y0I45.3 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 E4=G13E3J-91 E4 E5=G51X0Y0J60,E2 E6=E4,G20X0Y0I29.6,E5 E6 G51J60I L1K5 G51J0 G50 E2 G40X20Y35K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG05 Profile 5 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 [PROFILE 5 $1M0X-54.8I205.Y-83.4J82.8 G17 O1 T1 F1000S1200M3 G49I5 Z100R X50Y-80R Z2R Z-10 G42K2 G13Y-70J0 G21I30 G13X90Y-70J45 G13X180Y0I12J-15 G20 G13J165 G13X80Y-15J205 G13J180 G13X50Y-10J135 G13J180 G21I-8 G13X0Y0I25J113 G20 E1=G20X-23Y55I17.5 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 E2=G13X0Y0I10J113,E1 G11E2 G21I-4 E1 G13X-23Y55I10J203 E1K2 G21 E3=G13X0Y0I-10J113,E1 G10E3 G11X0Y0I25 G20 G13J-67 G21I22 G13Y-70J0 G40X50Y-80K2 Z100R M30 5 S3000 - S4000 SERIES CNC PROG06 Profile 6 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 6 [PROFILE 6 $1M0X-110.I150.Y-82.4J83.7 G17 O1 T1 F1000S1200M3 G49I1 Z100R X-75Y-75R Z2R Z-10 G42K2 E1=G13X0Y-80J180 E1 E2=G13X0Y-20J20 E3=E1,G13X-95Y0J90,E2 E3 E2 E4=G13X0Y-15J180 E5=E2,G13X-45Y0J90,E4 E5 E4 E6=G13X0Y50J0 E7=E4,G13X-95Y0J90,E6 E7 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 E6 G13X-30Y50J-45 G13Y10J0 G21I15 E8=G13X50Y0J70 E8 E9=E6,E8 G20E9I-20 G13J-30 G13X125J-90 L=1 G13X125Y-50J-135 G21I-10 G13X85Y-50J135 G21I10 G51X-40I L1K3 G51X0 G50 G13X-65Y-80J-135 E1 G40X-75Y-75K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG07 Profile 7 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 [PROFILE 7 $1M0X-131.I129.Y-61.5J104. G17 O1 T1 F1000S1200M3 Z100R X0Y95R Z2R Z-10 G49I2.5 G41K2 L=1 E1=G20X0Y0I-86.5 E1 K2 E2=G13X17.5Y0J-90,E1 G13E2J-110 G13X7J-90 G21I10 G13X0Y0I-30J-30 G13J-90 G21 G13X0Y0I-7J-30 E3=G13X0Y0I-17.5J-30,E1K2 G13E3J-10 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N26 N27 N28 N29 N30 N31 G51J-120I L1K2 E1K2 G40X0Y95K2 Z100R M30 7 S3000 - S4000 SERIES CNC PROG08 Profile 8 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) External profile of attachment point X0Y50 Left-hand circular attachment Upper internal profile of attachment point X-17Y-10 Right-hand circular attachment Lower internal profile: attachment point X-20Y-27 Left-hand circular attachment N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 8 [PROFILE 8 $1M0X-106.I102.Y-69.8J63.2 G17 O1 T1 F1000S1200M3 G49I1 Z100R X0Y50R Z2R Z-10 G41K2 E1=G20X0Y0I46 E1 G21I-15 G20X-45Y32.25I22.5 G21I-14.5 G20X-45Y-22I17.5 G21I-15 G20X0Y-50I15 G21I-3 E1 G21 G20X39.5Y-35I10 G21I-2 Programming Examples S3000 – S4000 SERIES CNC N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 E1 G21 G20X52.5Y0I8 G21I-2.5 E1 G21 G20X39.5Y32.25I7 G21I-1.5 E1 G21 G20X16Y47I6 G21I-2 E1 G40X0Y50K2 Z100R X-17Y-10R Z2R Z-10 G42K2 E2=G20X-18.5Y-10I-5.5 E2 E3=G20X15Y30I-5.5 E4=E2,G21I-56.5,E3 E4 E3 P1=56.5-48 E5=E4Q-P1 -E5K2 E2K2 G40X-17Y-10K2 Z100R X-20Y-27R Z2R Z-10 G41K2 E1=G20X-18.5Y-27I5.5 E1 E2=G20X15Y13.5I5.5 E3=E1,G21I56.5,E2 E3 E2 E4=E3QP1 -E4 E1 G40X-20Y-27K2 Z100R M30 Programming Examples 9 S3000 - S4000 SERIES CNC PROG09 Profile 9 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 10 [PROFILE 9 $1M0X-116.I119.Y-45.3J105. G17 O1 T1 F1000S1200M3 Z100R X0Y0R Z2R Z-10 G49I2.5 G42K2 E1=G20X25Y-32I-12 E2=G20X-65Y21I-12 E3=E1,G21I79,E2 E3 E2 E4=G20X-20Y67I-27.5 G11E4 E4 E5=G20X20Y47I-12.5 E6=E4,G21I-80,-E5 E6 G21I5 E5 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 G21I29 E7=G20X65Y27I-17 E8=-E5,G21I-80,E7 E8 E7 G11E1 E1 E3 G40X0Y0K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG10 Profile 10 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 [PROFILE 10 $1M0X-174.I173.Y-102.J120. G17 O1 T1 F1000S1200M3 G49I2.5 Z100R X10Y80R Z2R Z-10 G41K2 G10X0Y0I-22 E1=G20X0Y0I106,G13X45Y0J90K2 G11E1I-11 G20 G11X0Y0I-22 G21I6 G11X50Y-57 G13J-90 G13X0Y0I-95J215 G20X40Y-69I-23K2 G21I12 G13X0Y0I-22J135 G21I6 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 E2=G20X0Y0I-74,G13X0Y-27J0 E3=G20E2I-14 E4=G10X0Y0,G11E2 E5=E4Q10 E6=E5,E3 G11E6 G21 E3 E7=G51J-90,E4 E8=E7Q85 E8 E3K2 G21 E9=E4Q-10 E10=E9,E3 G10E10 G11X0Y0I-22 G21 G11E1I-11 G40X10Y80K2 Z100R M30 11 S3000 - S4000 SERIES CNC PROG11 Profile 11 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 12 [PROFILE 11 $1M0X-158.I155.Y-84.6J115. G17 O1 T1 F1000S1200M3 Z100R X0Y-70R Z2R Z-10 G49I5 G41K2 G20X0Y0I-52.5 G21I15 G10X0Y0I-30 E1=G20X0Y0I100,G13X0Y0J120K2 G11E1I-15 G20 E2=G20X0Y0I70,G13X0Y0J78K2 G11E2I-23 G20 G13J-102 G21I15 G20X0Y0I-52.5 G21 E3=G13X0Y0I-23J-28 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 E3 E4=G13X0Y0I-115J-118 E5=E4Q-25 E6=E3,E5 G10E6 E7=G13X0Y0I-14J-28,E4 G11E7 E4 E8=G13X0Y0I14J-28,E4 G10E8 E9=G13X0Y0I-23J152 E10=E5,E9 G11E10 E9 G21 G20X0Y0I-52.5 G40X0Y-70K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG12 Profile 12 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 [PROFILE 12 $1M0X-83.1I105.Y-63.6J56.4 G17 O1 T1 F1000S1200M3 G49I5 Z100R X-50Y-30R Z2R Z-10 G41K2 G13X-40Y10I-10J120 G20 G21I100 G20X30Y30I-10 G11X70Y0 G21I-20 G13J-135 G13Y-20J180 G21I10 G13X15J-90 G21I-18 G13X-40Y10I-10J120 Programming Examples (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N25 N26 N27 G40X-50Y-30K2 Z100R M30 13 S3000 - S4000 SERIES CNC PROG13 Profile 13 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 14 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) [PROFILE 13 $1M0X-85.1I106.Y-64.4J57.6 G17 O1 T1 F1000S1200M3 G49I5 Z100R X15Y-10R Z2R Z-10 G42K2 E1=G20X50Y-40,G13X0Y-30J180,G20X-20Y-40 E1 G13Y-40J180K2 G20X-35Y-30I-10 G21I50 G20X-35Y30I-15 G21I30 E2=G10X-35Y30,G11X90Y20 E2 E3=E2,G13X50Y0J-90 E4=G13E3J-45 E4 E5=E4,G13X90Y0J-90,G13Y-40X0J180 N26 N27 N28 N29 N30 N31 E5 G13J180 E1 G40X15Y-10K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG14 Profile 14 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 [PROFILE 14 $1M0X-123.I118.Y-63.3J90.7 G17 O1 T1 F1000S1200M3 G49I5 Z100R X0Y-60R Z2R Z-10 G42K2 G20X0Y0I45 E1=G20X61Y0I-16 E1 E2=G13X0Y10J0,E1 E3=G20X0Y0I70 E4=G13X0Y0J-135,E3 E5=E2,G21I-90,E4 G21I3 E5 G21I9 E3 G21 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N25 N26 N27 N28 N29 N30 N31 E6=G13X0Y0J140, E3K2 G13E6J-90 G21I90 G20X0Y0I45 G40X0Y-60K2 Z100R M30 15 S3000 - S4000 SERIES CNC PROG15 Profile 15 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 16 [PROFILE 15 $1M0X-119.I124.Y-77.5J77.5 G17 O1 T1 F1000S1200M3 G49I5 Z100R X0Y-75R Z2R Z-10 G41K2 G13Y-60J180 G21I-12 G10X-80Y-60 G11X-65Y0 G21I5 G11X-80Y50 G21I-8 G11X-45Y60 G13J0 G21I-10 G13X-10J-90 G20X0Y25I10 (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 G13J45 G13Y60J0 G10X60Y60 G11X80Y50 G13J-90 G13X50Y0I7J210 G20 G13J-30 G13X80J-90 G21J10 G13Y-60J180 G40X0Y-75K2 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG16 Profile 16 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 [PROFILE 16 $1M0X-119.I124.Y-44.2J111. G17 O1 T1 F1000S1200M3 G49I5 Z100R X0Y-40R Z2R Z-10 G42K2 G20X0Y0I29 G13X0Y0J-30K2 E1=G20X0Y0I68 E1K2 E2=G13Y30X0J180,E1 G10E2 G11X0Y0 G20X0Y0I29 G21I-4 G10X0Y0I18 G11X-30Y90I10 G20 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 G11X0Y0I18 G21 G20X0Y0I29 G21I-2 G13X0Y0J175 G21I7 G20X0Y0I42 G21 G13X0Y0I4J55 G21I-2 G20X0Y0I29 G40X0Y-40K2 Z100R M30 17 S3000 - S4000 SERIES CNC PROG17 Pin thread with thread chaser milling cutter (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-55.2I62.2Y-62.1J12.9K45.Q30. N1 [Pin thread machining with thread chaser cutter N2 [thread depth>=thread chaser depth N3 [For programmes in which the thread chaser depth is > than the hole depth N4 [use the same programme by inputting P33=P34 N5 [and adding the G52Z…function at the top where: N6 [G52Z thread chaser depth-pin depth N7 G52Z0 [input only when P34>P33 N8 G17 N9 O1 N10 T1M6 N11 F1200 S2000 M3 N12 Z100R N13 P30=1.5[Thread pitch N14 P31=33 [Nominal thread diameter N15 P32=6 [thread chaser cutter radius N16 P33=50 [thread depth N17 P34=14 [thread chaser depth N18 P35=0 [machining allowance N19 [ N20 P20=((P31/2)+P32)+P35 N21 P21=P20+15 N22 P22=P20+7.5 N23 Z100R 18 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 XP21Y0R Z2R P50=(INT(P33/P30))+1 [n. required threads P51=P50*P30 [machining length P52=P33-P30 [Z last cut P60=(INT(P33/P34))+1 [n. of times on Z P61=INT(P33/P60) P62=P61 P63=P60-2 [n. repetitions L=7 Z-P62R G3XP20Y0IP22J0 G2I0J0Z-P30I G3XP21Y0IP22J0 P62=P62+P61 L7KP63 XP21Y0 Z-P52R G3XP20Y0IP22J0 G2I0J0Z-P30I G3XP21Y0IP22J0 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG18 Drilling thread with thread chaser cutter (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-70.4I86.3Y-82.8J17.3K45.Q30. N1 [program to execute in g17 the milling thread of a hole N2 [by thread chaser - helicoidal interpolation N3 [simultaneous machining of the coil (from bottom to top) N4 [right thread N5 [note: the hole height must be higher than the thread chaser height N6 [(more passes) N7 [ N8 [in the example the hole height is 42 mm, while N9 [the thread chaser height is 25 mm N10 [the tool is positioned on the first depth of Z-44 N11 [(that is, Z at hole end + thread pitch) N12 [the second depth is Z-22 (a pitch multiple, N13 [shorter than the thread chaser height) N14 [ N15 P0=12.5 [ thread milling radius N16 P1=29 [ nominal thread radius (M58 x 2) N17 P2=28 [ internal boring machining radius (diam 56) N18 P3=2 [ pitch N19 P4=200 [ milling (feed) feed N20 [ N21 P1=P1-P0 N22 P2=P2-P0 N23 P3=ABSP3 N24 [ N25 G17 N26 O1 Programming Examples N27 T1M6 [ thread milling N28 S1200M3 N29 [ N30 Z200R N31 X0Y0R N32 Z5R N33 Z-44F1000 N34 L2 N35 Z-22F1000 N36 L2 N37 Z100R N38 M30 N39 L=2 N40 P10=P2-.5 N41 X0Y-P10F500 [approach N42 P11=((P10*P10)+(P1*P1))/(2*P1) N43 P12=SIN(P11/P10) N44 P13=SQR((P11*P11)-(P10*P10)) N45 P14=P13*COSP12 N46 P15=P13*SINP12 N47 P16=P3/4 N48 G3XP1Y0IP14J-P15ZP16IFP4 [approach quarter N49 G3I0J0ZP3I [ complete coil N50 G3X0YP10IP14JP15ZP16I [exit quarter N51 X0Y0F500 N52 G32 19 S3000 - S4000 SERIES CNC PROG19 Taper hole N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 20 (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-138.I139.Y-132.J45.K45.Q30. [Spiral taper hole machining with toric cutter [zeroed at insert centre [to machine with parallel cutter, the insert radius [must be at zero (P1=0) [to machine with spherical cutter P6=0 and P1=cutter radius [ P6=6 [CUTTER RADIUS P1=2 [INSERT RADIUS P2=120 [HIGH HOLE P3=100 [INITIAL DIAMETER P5=5 [Z INCREMENT PER REV = PITCH P0=5 [ANGULAR INCREMENT P7=8 [TAPER RATIO [ G17 O1 T1M6 F1200 S3000 M3 [ P8=(P3/2-P1*COSP7)-P6 P9=P1*SINP7 P10=P2-P1 [dead holes P10=P2-P9+2 [through holes P11=P5*TANP7 P20=P11/(360/P0) P21=P5/(360/P0) Z20R G76XP8Y0R N29 N30 N31 N32 N33 N34 N35 N36 N37 Z5R ZP9 P22=P9-P21 L=1 X-P20IYP0IZP22 P22=P22-P21 {P22>=-P10}L1 Z20R M30 Programming Examples S3000 – S4000 SERIES CNC PROG20 Tapered pin N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-137.I140.Y-133.J44.K45.Q30. G17 O1 T1M6 F1000 S2000 M3 [Taper tap machining with toric cutter zeroed at insert centre. [To machine with cylinder cutter, insert radius must [be zero (P1=0) [To machine with spherical cutter P6=0 and P1= cutter radius [ P6=6 [milling machine radius P1=0 [insert radius P2=100 [total tap depth P3=40 [upper start point diameter P5=5 [Z increment per rev=pitch P7=10 [taper ratio [ P0=5 [angular increment P8=(P3/2+P1*COSP7)+P6 P9=P1*SINP7 P10=P2-P1 P11=P5*TANP7 P20=P11/(360/P0) P21=P5/(360/P0) Z20R G76XP8Y0R Z5R ZP9 P22=P9-P21 Programming Examples N30 N31 N32 N33 N34 N35 L=1 XP20IYP0IZP22 P22=P22-P21 {P22>=-P10}L1 Z20R M30 21 S3000 - S4000 SERIES CNC PROG21 Hole thread N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-57.9I59.6Y-50.5J24.5K45.Q30. G17 O1 T1M6 F1000S1200M3 [P0= cutter diameter [P1= internal hole diameter [P2= nominal (external) hole diameter [P3= Z thread pitch [P4= total hole depth in Z [P5= cut depth radius P0=5,P1=45,P2=50,P3=5,P4=-30,P5=.4 LFILETTO: M30 Filetto N1 [hole thread with tool N2 [ N3 [P0= cutter diameter N4 [P1= internal diameter N5 [P2= nominal (eternal) hole diameter N6 [P3= Z thread pitch N7 [P4= total hole depth in Z N8 [P5= cut depth radius N9 [ N.B. parameters are to be defined in the main programme N10 [prior to recalling the subprogram N11 P3=ABSP3 N12 P5=ABSP5 22 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 P0=P0/2 P4=INT(P4/P3) P6=P3/4 P14=P4-1 P10=P3*2 P1=P1/2 P2=P2/2 P20=P1+P5 P21=P20-P0 Z50R X0Y0R Z2R L=10 P21=P20-P0 P15=P21/2 ZP10R ZP6 G2XP21Y0 Z-P6I IP15J0 L=1 G2Z-P3II0J0 L1KP14 G2X0Y0IP15J0Z-P6I P20=P20+P5 P22=P20-P2 {P22<0.001}L10 P20=P2 L10K1 Z50R Programming Examples S3000 – S4000 SERIES CNC PROG22 Boring with wall disjunction (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 $2X-12.1I46.7Y-23.7J13.8K-45.Q30. G17 O1 T1M6 F1000S1000M3 [P1,P2 X Y of hole [P10= hole depth dimension [P11= hole lead dimension [P12= clearing dimension [P13= dwell time at hole bottom calculated in tenths of a second with spindle rotating [P14= dwell time at hole bottom with spindle motionless [P15= tool bit angle after M19 (orientation) [P16= wall disjunction shifting P10=-10, P11=2, P12=5, P13=10, P14=20, P15=45, P16=.5 P1=10,P2=10 LBARENAT: P1=20,P2=10 LBARENAT: P1=30,P2=20 LBARENAT: Z100R M30 Barenat N1 [Bore subprogram N2 [boring cycle including wall disjunction N3 [P1,P2 X Y of hole N4 [P10= hole bottom dimension N5 [P11= hole lead dimension N6 [P12= clearing dimension Programming Examples N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 [P13= dwell time at hole bottom calculated in tenths of a second with spindle rotating [P14= dwell time at hole bottom calculated in tenths of a second with spindle motionless [P15= tool bit angle after M19 (orientation) [P16= wall disjunction shifting [ [N.B. parameters are to be defined in the main programme [prior to recalling the subprogram G51XP1YP2 ZP12R X0Y0R ZP11R ZP10 G4KP13 M5 G4KP14 M19 [spindle orientation X0Y0 P25=P15+180 P30=SINP25*P16 P31=COSP25*P16 XP31YP30 ZP12R X0Y0R M3 G50 23 S3000 – S4000 SERIES CNC PROG23 Points on a circle (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 $1M0X-76.I159.Y-46.8J103. G17 O1 T1M6 S2000M3F1000 [P1= X center [P2= Y center [P3= marked radius in relation to lead point [positive=anti-clockwise negative=clockwise [P4= initial angle [P5= final angle [P6= number of holes G81Z-10J2 P1=30,P2=30,P3=-50, P4=30, P5=180,P6=12 LEQUC: G80Z100R M30 Equc N1 N2 N3 N4 N5 N7 N8 N9 N10 N11 N12 [Equally spaced holes on a circle [initial and final angle known [P1= X center [P2= center [P3= marked radius [P4= initial angle [P5= final angle [P6= number of holes {P4>0}L1 P4=P4+360 L=1 24 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 {P5>0}L2 P5=P5+360 L=2 P7=P5-P4 {P5>P4}L25 {P3<0}L29 P7=P7+360 P99=1 P99>L29 L=25 {P3>0}L29 P7=P7-360 L=29 P8=ABS(P4-P5)-0.0001 {P8>0}L31 P7=P7/P6 P99=1 P99>L33 L=31 P7=P7/(P6-1) L=33 P4=P4-P7 P3=ABSP3 G51XP1YP2 P6=P6-1 L=50 P4=P4+P7 G76XP3YP4 L50KP6 Programming Examples S3000 – S4000 SERIES CNC PROG24 Points on a straight line (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 $1M0X-243.I227.Y-154.J146. G17 O1 T1M6 S2000M3F1300 [P1=X 1ST point P2=Y 1ST point [P3=X 2ND point P4=Y 2ND point [P5= number of points G81Z-10J2 P1=150,P2=50,P3=-50,P4=-50,P5=12 LEQUL: G80Z100R M30 Equl N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 [Series of points laid out on a straight line [first and last point known [P1=X 1ST point P2=Y 1ST point [P3=X 2ND point P4=Y 2ND point [P5= number of points P12=P5-1 P10=(P3-P1)/P12 P11=(P4-P2)/P12 P12=P12-1 XP1YP2 L=1 XP10IYP11I L1KP12 Programming Examples 25 S3000 – S4000 SERIES CNC PROG25 Points on a rectangle (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 Ret N1 N2 N3 N4 N5 N6 N7 26 $1M0X-76.3I80.8Y-9.3J91.1 G17 O1 T1M6 S2000M3F1500 G81Z-10J2 [P1= X lower left vertex [P2= Y lower left vertex [P3=inclination angle [P4=lato X [P5=lato Y P1=-10,P2=20,P3=30,P4=50,P5=30 LRET: G80Z100R M30 [RET subprogram to machine 4 holes laid out on a rectangle when the following are known: [P1= X lower left vertex [P2= Y lower left vertex [P3=inclination angle of the rectangle [P4=side X [P5=side Y [Parameters are to be defined in the main programme prior to calling N8 N9 N10 N11 N12 N13 N14 N15 [the RET subprogram [as with the parameters of the fixed cycle G51XP1YP2JP3 X0Y0 XP4 YP5 X0 G50 Programming Examples S3000 – S4000 SERIES CNC PROG26 Points on a centred rectangle (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 $1M0X-155.I159.Y-103.J97.8 G17 O1 T1M6 S2000M13F1000 G81Z-10J2 [P1= X centre of rectangle [P2= Y centre of rectangle [P3=inclination angle [P4=side X [P5=side Y P1=70,P2=-20,P3=25,P4=95,P5=37 LRETC: G80Z50R M30 Retc N1 [RETC subprogram to machine 4 holes laid out on a rectangle when the following are known: N2 [P1= X centre of rectangle N3 [P2= Y centre of rectangle N4 [P3=inclination angle of rectangle N5 [P4=side X N6 [P5=side Y N7 [Parameters are to be defined in the N8 [main programme prior to calling the subprogram N9 [as with the parameters of the fixed cycle N10 G51XP1YP2JP3 N11 P44=P4/2 N12 P55=P5/2 Programming Examples N13 N14 N15 N16 N17 X-P44Y-P55 XP4I YP5I X-P4I G50 27 S3000 – S4000 SERIES CNC PROG27 Board rough-boring (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $1M0X-312.I316.Y-203.J198. N1 G17 N2 O1 N3 T1M6 N4 F1200S2000M3 N5 [P1= side X of board N6 [P2= side Y of board N7 [P3= increment between cuts N8 [P4= cut angle (0 or 90 degrees) N9 [P5=work Z: normally Z0 N10 P1=300,P2=180,P3=10,P4=0,P5=0 N11 LROUGHBORE: N12 M30 Sgrossa N1 [P1= side X of board N2 [P2= side Y of board N3 [P3= cut increment N4 [P4= cut angle N5 [P5=work Z N6 [The macro does not consider the cutter’s radius N7 [the centre of the cutter is positioned on P1,P2 N8 [Parameters are to be defined in the main programme N9 [prior to calling the subprogram N10 L=51 N11 {P4=0}L50 N12 {P4<>90}L51 N13 L=50 N14 {P4=0}L1 N15 P6=INT(P1/P3+.999) N16 P3=P1/P6 N17 P1>L2 28 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 L=1 P6=INT(P2/P3+.999) P3=P2/P6 L=2 P6=P6/2 P6=P6-1 P11=P1/2 P12=P2/2 Z50R[release dimension X-P11Y-P12R P7=P5+2 ZP7R ZP5 {P4=0}L3 L=4 YP12 XP3I Y-P12 XP3I L4KP6 YP12 P1>L99 L=3 L=5 XP11 YP3I X-P11 YP3I L5KP6 XP11 L=99 Z50R[release dimension Programming Examples S3000 – S4000 SERIES CNC PROG28 Groove (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $1M0X-155.I158.Y-102.J98.3 N1 G17 N2 O1 N3 T1M6 N4 F1200S2000M3 N5 [P1= groove X length N6 [P2= groove Y width N7 [P3= Z groove depth N8 [P4=cut depth N9 [P5= Z safety dimension N10 [P10= cutter diameter N11 [P20= X groove centre N12 [P21= Y groove centre N13 [P22= groove inclination angle N14 P1=120, P2=50, P3=20, P4=3, P5=5, P10=10, P20=40,P21=20,P22=15 N15 LSCANAL: N16 M30 Scanal N1 [Groove N2 [P1= groove X length N3 [P2= groove Y width N4 [P3= groove Z depth N5 [P4=cut depth N6 [P5=Z safety dimension N7 [P10= cutter diameter N8 [P20= X groove centre N9 [P21= Y groove centre N10 [P22= groove inclination angle N11 [N.B. Parameters are to be defined in the main programme N12 [prior to recalling the subprogram N14 [The subprogram SCANAL is used to machine grooves while only moving Z N15 G51XP20YP21JP22 N16 Z50R N17 X0Y0R Programming Examples N18 N19 N20 N21 N22 N23 N24 N25 N26 ZP5R P3=ABSP3 P4=ABSP4 P6=INT(P3/P4+0.999) P4=P3/P6 P6=P6/2 P6=P6-1 [nuber of repititions P7=P1/2 [semi-side X P8=P7-P10/2 [shifting on X to centre of milling cutter N27 P30=0 [Z start N28 XP8Y0R N29 L=1 N30 P30=P30-P4 N31 ZP30 N32 X-P8 N33 P30=P30-P4 N34 {P30<-P3}L2 N35 ZP30 N36 XP8 N37 {P30<>-P3}L1 N38 L=2 N40 X0Y0 N41 Z-P3 N42 P11=P2/2 [semi-side Y N43 P12=P11-P10/2 [shifting on Y to centre of milling cutter N44 P13=P12/2 [circle attachment radius N45 P8=P8-P12 N46 G3X0YP12I0JP13 N47 X-P8 N48 G3Y-P12I-P8J0 N49 XP8 N50 G3YP12IP8J0 N51 X0 N52 G3X0Y0I0JP13 N53 Z50R 29 S3000 – S4000 SERIES CNC PROG29 Groove with slope descent (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-54.8I102.Y-41.3J58.9K15.Q50. N1 G17 N2 O1 N3 T1M6 N4 F1200S2000M3 N5 [P1= groove X length N6 [P2= groove Y length N7 [P3= groove depth N8 [P4=cut depth N9 [P5= Z safety dimensions N10 [P10= cutter diameter N11 [P20= X groove centre N12 [P21= Y groove centre N13 [P22= groove inclination angle N14 P1=100, P2=40, P3=10, P4=2, P5=2, P10=8, P20=30,P21=20,P22=-30 N15 LSCANAL1: N16 M30 Scanal1 N1 [Groove 1 N2 [P1= groove X length N3 [P2= groove Y width N4 [P3= groove depth N5 [P4= cut depth N6 [P5= Z safety dimensions N7 [P10= cutter diameter N8 [P20= X groove centre N9 [P21= Y groove centre N10 [P22= groove inclination angle N11 [N.B. Parameters are to be defined in the main programme N12 [prior to recalling the subprogram N14 [The subprogram SCANAL1 is used to machine depth descending grooves 30 Programming Examples S3000 – S4000 SERIES CNC N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 [moving 3 axes contemporarily G51XP20YP21JP22 Z50R P3=ABSP3 P4=ABSP4 P6=INT(P3/P4+0.999) P4=P3/P6 P6=P6/2 P6=P6-1 [number of repetitions P7=P1/2 [semi-side X P8=P7-P10/2 [shifting on X to centre of the cutter P30=0 [Z start XP8Y0R ZP5R Z0 L=1 P30=P30-P4 X-P8ZP30 XP8 [P30=P30-P4 {P30<-P3}L2 {P30<>-P3}L1 L=2 [ZP5R X0Y0 Z-P3 P11=P2/2 [semi-side Y P12=P11-P10/2 [Y shifting to centre of cutter P13=P12/2 [circle attachment radius P8=P8-P12 G3X0YP12I0JP13 X-P8 G3Y-P12I-P8J0 XP8 G3YP12IP8J0 X0 G3X0Y0I0JP13 Z50R Programming Examples 31 S3000 – S4000 SERIES CNC PROG30 Rectangular pocket (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $1M0X-155.I158.Y-102.J98.3 N1 G17 N2 O1 N3 T1M6 N4 F1000S1000M3 N5 [P1= X pocket centre N6 [P2= Y pocket centre N7 [P3= pocket angle in relation to x axis N8 [P4= side X pocket N9 [P5= side Y pocket N10 [P6= pocket radius N11 [P7= cutter radius N12 [P8= total pocket depth N13 [P9= cut depth N14 [P10= machining allowance N15 [P11= 1 finishing SI P11=0 finishing NO N16 P1=0, P2=0, P3=30, P4=170, P5=120, P6=15, P7=5,P8=-20,P9=3 N17 P10=0.5,P11=1 N18 LCAVARET: N19 Z50R N20 M30 Cavaret N1 [Subprogram CAVARET N2 P65=0.5 [wall disjunction N3 [P1= X pocket centre N4 [P2= Y pocket centre N5 [P3= pocket angle in relation to axis X N6 [P4= side X pocket N7 [P5= side Y pocket N38 P15=P5/2-P7+P7*0.7 N39 P16=P6-P7 32 N8 N9 N10 N11 N12 N13 N14 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N30 N31 N32 N33 N34 N35 N36 N37 N94 N95 [N.B. side X of the pocket must be more than or equal to side Y of the pocket [P6= pocket radius [P7= cutter radius [P8= pocket depth [P9= cut depth [P10= machining allowance [P11=1 finishing SI P11=0 finishing NO {P11=0}L90 {P6>=P7}L90 P6=P7 L=90 {P4>=P5}L91 P3=P3+90 P70=P4 P4=P5 P5=P70 L=91 P77=P7[save cutter radius P7=P7+P10 P64=P5/2-P7 P66=50[ Z release G49I0 P8=ABSP8 P9=ABSP9 P19=INT(P8/P9+0.99) P20=-P8/P19 P19=P19-1 P14=P4/2-P7 P13=P15-P77 X0YP13 Programming Examples S3000 – S4000 SERIES CNC N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 P18=P7*1.4 P18=INT(P15/P18+1) P17=P15/P18 P14=P14-P17*P18 P15=P5/2-P7-P17*P18 P16=P16-P17*P18 P24=P14 P25=P15 P26=P16 G51XP1YP2JP3 P18=P18-1 ZP66R X0YP64R Z2R Z0 L=2 X0Y0ZP20I [ZP20I L=3 P14=P14+P17 P15=P15+P17 P16=P16+P17 P16>L33 P36=0 P16<L34 L=33 P36=P16 L=34 X0YP15 G41 YP15X0 P60=P14-P36 X-P60 P61=P15-P36 G3X-P14YP61I-P60JP61 Y-P61 G3X-P60Y-P15I-P60J-P61 XP60 G3XP14Y-P61IP60J-P61 YP61 G3XP60YP15IP60JP61 X0 G40 L3KP18 P14=P24 P15=P25 P16=P26 L2KP19 P64=P64-P65 YP64 {P11=0}L4 [pocket finishing P14=(P4/2)-P77 P15=(P5/2)-P77 Programming Examples N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 N110 N111 N112 P16=P13+P77/2 P17=P14-(P6-P77) P18=P15-(P6-P77) G3I0JP16X0YP15 X-P17 G3X-P14YP18I-P17JP18 Y-P18 G3X-P17Y-P15I-P17J-P18 XP17 G3XP14Y-P18IP17J-P18 YP18 G3XP17YP15IP17JP18 X0 G3X0YP13I0JP16 L=4 G50 ZP66R 33 S3000 – S4000 SERIES CNC PROG31 Spiral sphere (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 34 $2X-94.7I93.3Y-53.5J66.6K45.Q30. [Spiral milled sphere [spherical cutter zeroed at cuter centre [skim plate Z0 with tool tip and reset : Zradius [example Z5 if the cutter is D10 $7 O1 T1M6 G17 M3S1500F4000 Z10R P0=5[cutter radius P1=50[[sphere radius P2=0[initial angle P3=90[final angle P4=2[cut distance P5=15[angle increment on a circle P15=INT(360/P5+.999) P16=P15-2 P1=P1-P0 [ P20=INT(P0/P4) P21=P0/P20 P22=P20-1 XP1Y0ZP0 L=0 G3I0J0Z-P21I L0KP22 [ N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 $5 XP1Y0R [Z10R L=1 P7=P1*COSP2 P8=P1*SINP2 P12=P2+P4 P17=P1*COSP12 P18=P1*SINP12 P27=P7-P17[radius delta P28=ABSP18-ABSP8[Z delta P37=P27/P15 P38=P28/P15 G76XP7Y0Z-P8 L=2 P7=P7-P37 P8=P8+P38 G76XP7YP5IZ-P8 L2KP16 P2=P2+P4 {P3>P2}L1 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG32 Modal subprogram (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 $1M0X-155.I158.Y-97.2J103. T1M6[D8 tip S4000M3F2000 G81Z-10J2 [D8 hole at L=2 points L2 G80Z50R T2M6[cutter D6 S4000M3F2000 G73 L1 [recall subprogram L=1 at L=2 points L2 G72 [close G73 M30 [ L=1 [machining subprogram Z2R X0Y0R Z-5 G41K2 G20X0Y0I20 G40K2X0Y0 Z2R G32 [ L=2 [points where subprogram L=1 is to be repeated X30Y50 X-50Y0 Y-50 X50Y-25 X100Y0 G32 Programming Examples 35 S3000 – S4000 SERIES CNC PROG33 Rotated/offset pattern tapping holes on a linear grid with G751function (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 36 [HOLES ON A LINEAR GRID [PATTERN TAPPING WITH G751FUNCTION $1M0X-356.I373.Y-229.J237. G17 O1 T1 F10000S15000M3 P1=0 L=1 G781Z-10J2X48Y0D1=4D2=48 P1=P1+60 G751ROTZP1 L1K5 P2=41.56 [Y DISTANCE P3=P2*5 P4=48+24 P1=0 L=2 G781Z-10J2X-P4Y-P3D1=4D2=48 P1=P1+60 G751ROTZP1 L2K5 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 P3=P2*4 P4=48 P1=0 L=3 G781Z-10J2X-P4Y-P3D1=3D2=48 P1=P1+60 G751ROTZP1 L3K5 P3=P2*3 P4=24 P1=0 L=4 G781Z-10J2X-P4Y-P3D1=2D2=48 P1=P1+60 G751ROTZP1 L4K5 P3=P2*2 G791Z-10J2X0Y0D1=6D2=P3D3=-90 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG34 Profiled pocket with internal islands (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) Unquoted radiuses = 10 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 [PROFILED POCKET WITH INTERNAL ISLANDS [ S4040GE / S4045 / S4045P $1M0X-170.I177.Y-121.J101. G17 O1 T1 F1000S1200M3 G49I7.5 Z100R G777Z-10J0I2D1=45 G701X0Y50 G41K2 G13Y70J180 G21I30 G13X-90J-90 G21I-10 E1=G20X-90Y0,G21I50,G20X-90Y-60 E1 G21 G13X-90J-90 G21I40 G13Y-110J0 Programming Examples 37 S3000 – S4000 SERIES CNC N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 38 G21I20 E2=G13X70Y0J90 E2 E3=E2,G21I-50,G20X110Y-30 E3 G21I10 G13X110J90 G21I-10 G20X90Y50I32 G21 G13Y70J180 G40X0Y50K2 G701X0Y-10 G41K2 G13Y10J180 G20X-30Y20I-10 G13J0 G20X30Y20I-10 G13J180 G40X0Y-10K2 G701X-20Y-30 G41K2 G10X-30Y-70I-10 G11X20Y-30I-10 G20 G13J-90 G21I-10 G13Y-80J180 G20X-30Y-70I-10 G11X20Y-30I-10 G40X-20Y-30K2 G778 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG35 Ellipse draining (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 $1M0X-110.I109.Y-67.3J72.7 [ellipse draining P1=100 [major semiaxis P2=60 [minor semiaxis P3=2.5 [angle increment [ P20=INT(360/P3)+1 P3=360/P20 P11=P1*COSP3 P12=P2*SINP3 E1=G10XP1Y0,G11XP11YP12 E2=G10XP11Y-P12,G11XP1Y0 G49I10 [cutter radius P20=P20-3 G777Z-10I5J0 G701X50Y10 G41 E2 E1 G10XP11YP12 P5=P3 L=10 P5=P5+P3 P8=P1*COSP5 P9=P2*SINP5 G11XP8YP9 L10KP20 E2 E1 G40 P5=P3 G778 Z100R M30 Programming Examples 39 S3000 – S4000 SERIES CNC PROG36 Pocket with circular islands (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 40 $1M0X-182.I161.Y-105.J114. [pocket with internal islands that are repeated on the circumference G17 O1 T1M6 F1000S2000M3 G49I2.5 G777Z-10I10J0 X80Y0 G701 G41K2 G20X0Y0I100 G40X80Y0K2 X40Y0 G701 G41K2 G20X0Y0I-30 G40X40Y0K2 G797X0Y0D1=6D2=65D3=30D5=1 [X..Y... circumference centre [D1=number of islands [D2=circumference radius [D3=initial angle [D5=1 islands rotate D5=0 islands do not rotate X25Y0 G701 G41K2 G20X0Y0I-15 G40X25Y0K2 G780 G778 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG37 Pocket with linear repeated islands (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 $1M0X-1405.I1335.Y-918.J833. [Profiled pocket with internal islands that are repeated on a grid G17 O1 T1M6 F1200S1200M3 G49I8 G777Z-10I10J0 X480Y0 G701 G41K2 G13X0Y0I500J90 G21I50 G13J180 G21 G13J-90 G21 G13J0 G21 G13J90 G40X480Y0K2 G787X-375Y-400D1=4D2=250 D4=6 D5=160 [X...Y... position first island [D1=number of islands on X [D2=pitch on X [D4=number of islands on Y [D5=pitch on Y X110Y0 G701 G42K2 G13X100J90 G21I10 G13Y40J180 G21 G13X-100J-90 Programming Examples N34 N35 N36 N37 N38 N39 N40 N41 N42 G21 G13Y-40J0 G21 G13X100J90 G40X110Y0K2 G780 G778 Z100R M30 41 S3000 – S4000 SERIES CNC PROG38 Holes on a hexagon (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 42 $1X-210Y-125I210J125 G17 O1 T1M6 F1000S2000M3 [ Programme to machine a set of holes [ that are laid out in the shape of a honey-comb [ on a hexagon [ P1=20[ hole diameter (distance between holes) P2=90[ Total number of holes [ [ Check exact number of holes L90 [ P3 = N. of hexagons [P3=(-1+SQR(1+P2/3*4))/2 [ P4 = Radius of circle that circumscribes the outer part of the hexagon P4=P1*P3 [ Calculate coordinates of first hole in P5,P6 P5=-P4/2 P6=P5/TAN30 [ P7, P8 = lines and columns of the die P7=P3 P8=P7+1 Z50R P10=0 L=1 G751 ROTZP10 G781XP5YP6Z-10J2 D1=P8 D2=P1 D3=0 D4=P7 D5=P1 D6=120 P10=P10+120 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 L1K2 G750 Z50RM5 M30 [ L=90[ Subprogram: check n. holes P3=1 L=91 P51=6*((P3+1)*P3/2) { P51 = P2 } L92 P3=P3+1 { P51 < P2 } L91 P2=?[number of holes do not coincide: input correct value P50>L90 L=92 G32 Programming Examples S3000 – S4000 SERIES CNC PROG39 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N13 N14 N15 N16 N17 N18 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 Selbox push-buttons [Selbox push-button panel: push-buttons $1M0X-92.8I93.5Y99.7J219. G17 O1 T1 F1000S1200M3 G49I0 [input cutter radius (max. 1) Z100R G787X-18Y111D1=3D2=18D4=3D5=18 L1 G780 G787X-36Y183D1=5D2=18D4=2D5=-18 {P99=6}L50 {P99=10}L50 L2 L=50 G780 G787X-28Y201D1=5D2=14 L3 G780 Z100R M30 L=1 Z10R X-10Y0R Z2R Z-4 [height 4 mm G41K2 G20X0Y0I-7 G40X-10Y0K2 Z10R Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 G32 L=2 Z10R X-10Y0R Z2R Z-4 G41K2 G13X0Y0I-7J90 G21I-4.5 G13J0 G21 G13J-90 G21 G13J180 G21 G13J90 G40X-10Y0K2 Z10R G32 L=3 Z10R X-8Y0R Z2R Z-4 G41K2 G13X-4J90 G20X0Y3I-4 G13J-90 G20X0Y-3I-4 G13J90 G40X-8Y0K2 G32 43 S3000 – S4000 SERIES CNC PROG40 Spherical dome with points (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 44 $2X-78.1I78.4Y-69.8J30.2K45.Q30. [SPHERICAL SPIRAL DOME OBTAINED BY POINTS G17 O1 T1M6 F8000 S10000 M3 [P1 angular increment X-Y P2= angular increment Z-X P1=4,P2=1 [P3=toric radius P4=tool centre distance tool bit centre [TORIC CUTTER D10 r1 : P3=1 P4=4 P3=1,P4=4 [P5=sphere radius P6=dome height [CAUTION P6<=P5 P5=50,P6=30 [ {P6>P5}L99 [CORRECT PARAMETERS [ E1=G20X0Y-P5 P99=P5+P3 E2=G20E1I-P99 P98=P6-P3 E3=G13X0Y-P98J180 E4=E3,E2 E5=G10E1,G11E4 P20=E5,2 P21=90-P20 [P96=n.passate in zx P96=INT(P21/P2) P2=P21/P96 P7=0 P96=P96-1 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 L=51 P7=P7+P2 P97=P7-P2 P95=90-P7 P94=90-P97 E8=G13E1JP94,E2K2 E9=G13E1JP95,E2K2 P9=E8,1 P10=E9,1 [P12 radius coefficient P12=(P10-P9)/360 P15=E8,2 P16=E9,2 [P17= coeffic. z P17=(P15-P16)/360 P13=0,P92=0 L=52 P13=P13+P92 { P13 >= 360 } L53 P14=P9+(P12*P13)+P4 P18=P15+(-P17*P13)+(-P3) G76XP14Y-P13ZP18 G75 P92=P1 { P13 < 360 } L52 L=53 L51KP96 P6>L98 L=99 P6=?[WRONG PARAMETERS P6>P5 P6>L99 L=98 Z10R M30 Programming Examples S3000 – S4000 SERIES CNC PROG41 Spherical dome with circles (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 $2X-25.8I25.9Y-19.8J13.2K45.Q30. [Sherical dome [obtained by circles G17 O1 T1M6 F8000 S20000 M3 [P2 angular increment on ZX P2=.5 [P3= toric radius [P4 = tool centre-plaque centre distance P3=1.2 P4=1.8 [P5= sphere radius P6= dome height P5=15 P6=8 [******************************************** E1=G20X0Y-P5 P99=P5+P3 E2=G20E1I-P99 P98=P6-P3 E3=G13X0Y-P98J180 E4=E3,E2 E5=G10E1,G11E4 P20=E5,2 P21=90-P20 [P96= n. cuts on zx P96=INT(P21/P2) P2=P21/P96 P96=P96-1 P7=90 P15=0 Z50R XP4Y-P14R Programming Examples N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 ZP15R L=51 P17=P7 P7=P7+P2 E8=G13E1JP7,E2K2 E9=G13E1JP17,E2K2 P26=E9,2 P27=E8,2 P28=(P26-P27)/4 [P28 increment on Z for each 90 degree arch [ P29=E9,1 P30=E8,1 [squared side = 1/4 spiral pitch [P13 = radius increment for a 1/4 of circle P13=(P29-P30)/4 P14=P13/2 [P14 squared semi-side P4=P4+P13 P15=P15-P28 G2X-P14Y-P4ZP15I-P14J-P14 P4=P4+P13 P15=P15-P28 G2X-P4YP14ZP15I-P14JP14 P4=P4+P13 P15=P15-P28 G2X-P14YP4ZP15IP14JP14 P4=P4+P13 P15=P15-P28 G2XP4Y-P14ZP15IP14J-P14 L51KP96 Z50R 45 S3000 – S4000 SERIES CNC PROG42 Spherical dome with external radius (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 N34 46 $2X-11.7I10.5Y-9.23J4.98K45.Q30. [Spheric dome with external joint radius that is spiral machined G17 Z10R S5000F3000M13 [P0= toric radius; P1= tool centre – tool bit centre distance P0=1.35,P1=1.5 [P2= XZ angular increment on minor radius; P3=number of circles on 360 degrees [P11= angular increment on major radius P2=1,P3=4,P11=1 [P4= circular pocket diameter; P5= pocket depth P4=34,P5=4 [P6= centre on Z R=P7 ; P7= section circle radius P6=17,P7=15 [P8= sphere joint radius P8=4 [P36= F in descent on Z ; P37= F profiling P36=4000,P37=4000 L2[ Spherical dome machining Z10R M30 L=1 P4=P4/2 P39=P4-(P0+P1+2) Z100R XP39Y0R Z3R Z-P5FP36 P40=P0+P1+.2 L=54 G49IP40 G41K2F2000 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N125 N126 N127 G20X0Y0IP4F2000 G40XP39Y0K2 P40=P40-.2 L54K1 G49I0 G32 L=2 FP37 E1=G20X0Y-P6 E2=G13X0Y-P5J180 E3=G20E1IP7 E4=E2,G21I-P8,E3 E5=E3Q-P0 E6=E4I0 E7=G10E1,G11E6 E8=E5,E7K2 E9=E4Q-P0 P9=E7,2 P10=90-P9 [ P12= n. cuts on minor radius P12=INT(P10/P2) P2=P10/P12 P13=90,P14=0 P12=P12-1 L=51 P14=P13[ previous angle P13=P13-P2[ present angle E10=G13E6JP14,E9 E11=G13E6JP13,E9 P15=E10,1 E12=E17 L52KP21 G32 Programming Examples S3000 – S4000 SERIES CNC PROG43 Three-dimensional parametric flower (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) $2X-232.I238.Y-182.J118.K45.Q50. N1 P1=0 [cutter radius N2 P2=50 [number of cuts divided by 2 N3 P3=90/P2 [point variation N4 P4=(200-90)/P2 [radius variation N5 P5=60/P2 [increment on Z for each cut N6 P77=360/6 N7 [ N8 G17 N9 O1 N10 T1 N11 F200S2500M3 N12 Z100R N13 G49IP1 N14 X0Y0R N15 Z-45R N16 P11=200 [start point radius N17 P12=-50 [Z start point N18 P13=30 [X start point N19 P78=0 N20 E4=G21X0Y0,G20X-130Y30 N21 P50=E4,3 N22 P51=ABSP50 N23 L=2 N24 ZP12 N25 L1 N26 P11=P11-P4 [radius variation on back N27 P12=P12+P5 [Z variation N28 P13=P13+P3 [X dynamic N29 [ P51=P51+(P3/4) N30 {P12=0}L50 N31 {P12<0}L2 N32 L=50 Programming Examples N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 Z100RM5 M30 L=1 G41 E1=G20X-130Y30,G21I-P11,G20X-P13Y0 E2=G20X-P13Y0,G21I-P11,G20X-130Y-30 E3=E1,G21I-3,E2 E4=G13X0Y0J180,E3 E4 E3 L=5 E2 G21I10 G20X0Y0IP51 P78=P78+P77 G51JP78 G21 E1 E3 L5K5 G50 E4 G40 G32 47 S3000 – S4000 SERIES CNC PROG44 Elliptical die N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 48 $2X-317.I310.Y-200.J201.K45.Q30. [elliptical die with front and side section [at different radius [ G17 O1 T1M6 F1200S2000M3 [ P0=5 [ spherical milling tool set 0 on tool tip P1=408/2 [ major semi-axis P2=278/2 [ minor semi-axis P3=516.8 [ major semi-axis front radius P4=253 [ minor semi-axis side radius P5=-15 [ Z end in center die P6=3 [ pitch step P7=2 [ angular increment for the ellipses [ P3=P3-P0 P4=P4-P0 E1=G20X0YP3I-P3 E2=G20X0YP4I-P4 L=1 E3=G13XP1Y0J90 E5=E3,E1 P10=E5 E6=G13X0YP11J180,E2 P20=E6 P13=0 P14=360 Z150R XP10Y0R Z50R (CNC S4040GE/S4045/S4045P) (CNC S4060D/S4040GE/S4045/S4045P) N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 P11=P11-P0+P5 ZP11 L=2 P8=P10*COSP13 P9=P20*SINP13 XP8YP9 P13=P13+P7 {P13<=P14}L2 P1=P1-P6 {P1>=0}L1 Z150R M30 Programming Examples S3000 – S4000 SERIES CNC PROG45 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 Elliptical punch $2X-277.I287.Y-196.J165.K45.Q30. [elliptical punch with front and lateral sections that have different radiuses [ G17 O1 T1M6 F1200S2000M3 P0=5 [spherical cutter radius P1=411.85/2 [major semi-axis P2=280.9/2 [minor semi-axis P50=514.8+P0 [major semi-axis front radius P51=251+P0 [minor semi-axis lateral radius E1=G20X0Y-514.8I-P50 E2=G20X0Y-251I-P51 G49IP0 L=1 E3=G13XP1Y0J-90 E5=E3,E1 P10=E5 [P10=major semi-axis, P11=Z of ellipse profile E6=G13X0YP11J180,E2 P20=E6 [P20=minor semi-axis P3=0,P4=360,P5=5 [initial angle, final angle and angular increment Z100R P60=P10+P0 XP60Y0R Z10R ZP11 Programming Examples (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 G42 L=2 P8=P10*COSP3 P9=P20*SINP3 XP8YP9 P3=P3+P5 {P3<=P4}L2 G40 P1=P1-5 [cut decrement on major semi-axis {P1>=0}L1 Z100R M30 49 S3000 – S4000 SERIES CNC PROG46 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 50 Handgrip punch $2X-52.9I25.4Y-8.58J41.4K45.Q30. [Profile offset/rotation to create a handgrip for motorcycles or bicycles [ [male G17 O1 T1M6 F1000S2000M3 G49I2[diam. 4 spherical cutter zeroed at centre, skim Z0 plane and set [AZZERA T1Z2, that is the cutter’s radius value [ Z50R X-20Y0R Z5R P1=0 P2=5[angular increment L=1 G751 ROTYP1 L10 P1=P1+P2 G751 ROTYP1 G754 L10 G753 P1=P1+P2 { P1 <= 180 } L1 G750 Z50R (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 M30 L=10[profile X-20Y0Z0R G41K1 E1=G20X-13Y0,G21I-300,G20X-9Y47 E1 G21I3 P5=118-56.5 E2=G20X0Y-P5I-118 E3=G13X-13Y0J90,G21I-4,E2 E3 E2 G40X0Y65K1 G32 Programming Examples S3000 – S4000 SERIES CNC PROG47 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 Handgrip die $2X-53.I25.3Y-19.4J30.6K45.Q30. [Profile offset/rotation to create a handgrip for motorcycles and bicycles [ [Female G17 O1 T1M6 F1000S2000M3 G49I2[diam. 4spherical cutter zeroed at centre, [skim Z0 plane and set [AZZERA T1Z2, that is the cutter’s radius value Z50R X0Y0R Z5R P1=0 P2=5[angular increment L=1 G751 ROTYP1 L10 P1=P1-P2 G751 ROTYP1 G754 L10 G753 P1=P1-P2 { P1 >= -180 } L1 G750 Z50R M30 Programming Examples (CNC S4045/S4045P) (CNC S4060D/S4045/S4045P) N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 L=10[profile X0Y0Z0R G42K1 E1=G20X-13Y0,G21I-300,G20X9Y47 E1 G21I3 P5=118-56.5 E2=G20X0Y-P5I-118 E3=G13X-13Y0J90,G21I-4,E2 E3 E2 G40X0Y50K1 G32 51 S3000 – S4000 SERIES CNC PROG48 Profile programmed on XY and machined on XZ (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 52 $2X-139.I95.7Y-15.9J134.K30.Q30. [Profile programmed on XY and machined on XZ with increment on Y G17 O1 T1M06 [spherical cutter zeroed at centre F1000S2000M3 G49I10 [spherical cutter D.20 Z100R X-50Y0R Z20R P1=0 L=1 G751 ROTX90 TRSZP1 L10 P1=P1-3[PASSO IN Y G751 ROTX90 TRSZP1 G754 L10 G753 P1=P1-3 L1K20 G750 Z100R M30 L=10 X-40Y20Z0R G41K1 G13Y0J0 G21I20 G13X0J90 G21I-20 N32 N33 N34 G13Y48J0 G40X40Y68K1 G32 Programming Examples S3000 – S4000 SERIES CNC PROG49 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 Conical slot $2X-77.7I78.8Y-63.3J36.7K45.Q30. [slot with taper ratio on radial lines G17 O1 T1M6 F1200S2000M3 P1=120 [total length of slot P2=32 [total width of slot P3=40 [total depth P4=1 [Z increment P5=8 [cutter radius P10=30 [taper ratio on radial lines [ P1=P1/2 P2=P2/2 P1=P1-P5 P2=P2-P5 G49I0Q0 Z100R X0Y0R Z6R G736IP4X0Y0K2 G42K2 G13YP2J180 Q1 G21IP2 Q2 G13X-P1J-90 G21 G13Y-P2J0 Q1 G21 Q2 G13XP1J90 G21 G13YP2J180 Q1 G40X0Y0K2 Programming Examples (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 G737 Q1 G42 G13Y0J180 G13X0Y0J-90 G13Y-P3J180 G40 G737 Q2 G42 G13Y0J180 P90=90+P10 G13X0Y0J-P90 G13Y-P3J180 G40 G738 Z100R M30 53 S3000 – S4000 SERIES CNC PROG50 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 54 Conical hole $2X-42.5I74.9Y-9.02J66.K45.Q30. [Conical hole programme G17 O1 T1M6 F1200S2000M3 G49I5Q5 [input spherical or toric cutter radius (G49I..J…Q…) [ P1=50 [hole diameter P2=30 [total depth P3=1 [increment per cut P4=15 [taper ratio [ P10=70 [X centre hole P11=30 [Y centre hole [ G51XP10YP11 P1=P1/2 Z100R X0Y0R Z10R G736IP3X0Y0 G42K2 G20X0Y0IP1 G40X0Y0K2 G737 G42 G13Y0J180 P4=90+P4 G13X0Y0J-P4 G13Y-P2J180 G40 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N33 N34 N35 N36 G738 Z100R G50 M30 Programming Examples S3000 – S4000 SERIES CNC PROG51 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 Conical pin $2X-82.6I152.Y-81.5J68.6K-45.Q30. [Conical cylinder programme G17 O1 T1M6 F1200S2000M3 G49I5Q5 [input spherical or toric cutter radius (G49I…J…Q…) [ P1=20 [upper cylinder diameter P2=50 [total height P3=1 [increment per cut P4=15 [taper ratio [ P10=70 [X centre cylinder P11=30 [Y centre cylinder [ G51XP10YP11 P1=P1/2 P5=P1+20 [Initial positioning of X Z100R XP5Y0R Z10R G736IP3XP5Y0 G42K2 G20X0Y0IP1 G40XP5Y0K2 G737 G41 G13Y0J0 P4=90-P4 G13X0Y0J-P4 Programming Examples (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N32 N33 N34 N35 N36 N37 G13Y-P2J0 G40 G738 Z100R G50 M3 55 S3000 – S4000 SERIES CNC PROG52 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 56 Columns $2X-232.I237.Y-116.J184.K45.Q30. [Programme for 4 columns on a rectangle using a spiral cutter [ G17 O1 T1M6 F2000S4000M3 G49I5 [input desired cutter radius P1=250 [side X of rectangle P2=170 [side Y of rectangle P3=50 [diameter of columns P4=30 [total column height P5=2 [depth increment [ P10=P1/2 P11=P2/2 P3=P3/2 G787 X-P10YP11 D1=2 D2=P1 D4=2 D5=P2 L1 G780 Z100R M30 L=1 Z100R X0Y0R Z10R Z0 G735IP5Z-P4 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N29 N30 N31 N32 N33 N34 G41K2 G20X0Y0IP3 G40X0Y0K2 G734 Z100R G32 Programming Examples S3000 – S4000 SERIES CNC PROG53 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N15 N16 N17 N18 N19 N21 N22 N24 N25 N26 N27 N29 N30 N31 N33 N34 N35 N36 N37 N38 N39 N40 Tub (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) $2X-200.I200.Y-131.J124.K45.Q30. [rectangular tub that has sides with different taper ratios G17 O1 T1M6 F2000S3000M3 G49I5Q5 [D.10 spherical cutter definition zeroed at centre [G49I16J6Q6 [32 diam. toric cutter definition, radius 6 inserts [zeroed at insert centre [G49I10J0Q0 [20 diam. cyclinder cutter definition [use desired radius correction to finish and rough [by eliminating comment from type of cutter chosen and inputting correct values P1=250 [side X of tub P2=150 [side Y of tub P3=10 [joint radius P4=40 [total depth P5=2 [cut increment P6=5 [upper tub radius P7=8 [lower tub radius P10=15 [right side taper ratio P20=5 [upper side taper ratio P30=15 [left side taper ratio P40=5 [lower side taper ratio P0=0 [ P0=0 finishing P0=1 roughing P50=0 [machining allowance P60=2 [P60=1 variable joints P60=2 constant joints Z100R P1=P1/2 P2=P2/2 P8=P1-40 [initial positioning on X XP8Y0R Z10R G736IP5XP8Y0JP50KP60 D0=P0 G41K2 Programming Examples 57 S3000 – S4000 SERIES CNC N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 58 G13XP1J90 Q1 G21IP3 G13YP2J180 Q2 G21 Q3 G13X-P1J-90 G21 G13Y-P2J0 Q4 G21 Q1 G13XP1J90 G40XP8Y0K2 G737 Q1 G41 G13Y0J0 G21I-P6 P10=90-P10 G13X0Y0J-P10 G21IP7 G13Y-P4J0 G40 G737 Q2 G41 G13Y0J0 G21I-P6 P20=90-P20 G13X0Y0J-P20 G21IP7 G13Y-P4J0 G40 G737 Q3 G41 G13Y0J0 G21I-P6 P30=90-P30 G13X0Y0J-P30 G21IP7 G13Y-P4J0 G40 G737 Q4 G41 G13Y0J0 G21I-P6 P40=90-P40 G13X0Y0J-P40 G21IP7 G13Y-P4J0 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG54 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 Punch $2X-200.I200.Y-131.J124.K45.Q30. [Rectangular punch with sides that have different taper ratios G17 O1 T1M6 F2000S3000M3 [G49I5Q5 [diam. 10 spherical cutter definition zeroed at centre [G49I16J6Q6 [diam. 32 toric cutter, radius 6 inserts [zeroed at insert centre [G49I10J0Q0 [diam. 20 cylinder cutter definition [use the desired radius correction to finish and rough by eliminating the [comment from type of cutter chosen and inputting the correct values P1=250 [side X of punch P2=150 [side Y punch P3=10 [joint radiuses P4=40 [total height P5=1 [cut increment [ P6=8 [upper punch radius P7=5 [lower punch radius [ P10=15 [right side taper ratio P20=5 [upper side taper ratio P30=15 [left side taper ratio P40=5 [lower side taper ratio Programming Examples (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 [ P50=0 [machining allowance P60=2 [P60=1 variable jointsi P60=2 constant joints [ Z100R P1=P1/2 P2=P2/2 P8=P1+40 [initial positioning on X XP8Y0R Z10R G736IP5XP8Y0JP50KP60 G41K2 G13XP1J90 Q1 G21IP3 G13YP2J180 Q2 G21 Q3 G13X-P1J-90 G21 G13Y-P2J0 Q4 G21 Q1 G13XP1J90 G40XP8Y0K2 G737 Q1 G42 G13Y0J180 G21IP6 P10=90+P10 G13X0Y0J-P10 G21I-P7 59 S3000 – S4000 SERIES CNC N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 60 G13Y-P4J180 G40 G737 Q2 G42 G13Y0J180 G21IP6 P20=90+P20 G13X0Y0J-P20 G21I-P7 G13Y-P4J180 G40 G737 Q3 G42 G13Y0J180 G21IP6 P30=90+P30 G13X0Y0J-P30 G21I-P7 G13Y-P4J180 G40 G737 Q4 G42 G13Y0J180 G21IP6 P40=90+P40 G13X0Y0J-P40 G21I-P7 G13Y-P4J180 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG55 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 Concave sphere $2X-77.8I78.7Y-57.4J42.6K45.Q30. [concave sphere G17 O1 T1M6 F1200S3000M3 G49I5Q5 [input spherical cutter radius Z100R P1=80 [sphere diameter P2=40 [total depth P3=1 [cut increment [ P0=0 [P0=0 finishing P0=1 roughing P10=0 [machining allowance [ P1=P1/2 Z100R XP1Y0R Z10R G736IP3JP10D0=P0 G42 G20XP1Y0 G20X0Y0IP1 G20XP1Y0 G40 G737 G42 G13Y0J180 G20X-P1Y0I-P1 G13Y-P2J180 Programming Examples (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N31 N32 N33 N34 G40 G738 Z100R M30 61 S3000 – S4000 SERIES CNC PROG56 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 62 Convex sphere $2X-77.8I78.7Y-57.4J42.6K45.Q30. [Convex sphere G17 O1 T1M6 F1200S3000M3 G49I5Q5 [input spherical cutter radius Z100R P1=80 [sphere diameter P2=40 [total height P3=1 [cut increment [ P10=0 [machining allowance [ P1=P1/2 Z100R X0Y0R Z10R G736IP3JP10 G42 G20X.01Y0 G20X0Y0I.01 G20X.01Y0 G40 G737 G41 G20X0Y0 G20X0Y-P1I-P1 G13Y-P2J0K2 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N30 N31 N32 N33 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG57 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 Toroid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) $2X-137.I140.Y-90.5J87.K45.Q30. P1=160 [central diameter of ring P2=35 [toroid diameter P3=1 [pitch [ G17 O1 T1M6 F1200S2000M3 G49I5Q5 [input spherical cutter radius Z100R P1=P1/2 P2=P2/2 XP1Y0R Z10R G736IP3 G42 G20XP1Y0 G20X0Y0IP1 G20XP1Y0 G40 G737 G41 G20X-P2Y0 G20X0Y0IP2 G20XP2Y0 G40 G738 Z100R M30 Programming Examples 63 S3000 – S4000 SERIES CNC PROG58 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 64 Conical polygon $1M0X-137.I140.Y-90.5J87. P1=8 [number of sides P2=10 [joint radius P3=75 [radius around figure [ P20=0 [rotation angle of the figure [ P4=20 [total height P5=2 [cut increment P6=15 [taper ratio [ P10=0 [P10=0 finishing P10=1 roughing [ G17 O1 T1M6 F1500S2000M3 G51JP20 G49I5Q5 [input radius and type of cutter desired Z100R P11=360/P1 P12=P3-30 [start point on X P13=P1-1 XP12Y20R Z10R G736IP5XP12Y20D0=P10 G42K2 G76 G10XP3Y0 L=1 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 G11YP11I G21IP2 L1KP13 G11YP11I G75 G40XP12Y20K2 G737 G42 G13Y0J180 P14=90+P6 G13X0Y0J-P14 G13Y-P4J180 G40 G738 Z100R G50 M30 Programming Examples S3000 – S4000 SERIES CNC PROG59 Section profile ellipse (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 $2X-165.I175.Y-106.J111.K30.Q30. [Section profile ellipse P1=120 [major semiaxis P2=80 [minor semiaxis P3=0 [initial angle P4=360 [final angle P5=5 [angular increment G49I5Q5 Z100R XP1Y0R Z10R G736I2 [I=PITCH G42 L=1 P7=P1*COSP3 P8=P2*SINP3 XP7YP8 P3=P3+P5 {P3<=P4}L1 G40 G737 G42 G13Y0J180 G21I5 G13X0Y0J-110 G21I-10 G13Y-30J180 G40 G738 Z100R M30 Programming Examples 65 S3000 – S4000 SERIES CNC PROG60 Pocket with chafers on the walls (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 66 $2X-36.3I42.Y-25.7J24.3K45.Q30. [2 mm deep pocket with 45 degree chamfer [pocket dimensions 71x20 [programme for 45° chamfer G17 O1 T1M6 F1000S1200M3 G49I0Q0 [input desired cutter radius Z100R X0Y0R Z10R G736I.1X0Y0K2 G42K2 G13Y-10J0 G21I.5 P1=71/2 G13XP1J90 G21 G13Y10J180 G21 G13X-P1J-90 G21 G13Y-10J0 G40X0Y0K2 G737 G42 G13Y0J180 G13X0Y0J-135 N30 N31 N32 N33 N34 G13Y-1J180 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG61 Plane profile with double radius section (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 $2X-160.I182.Y-128.J90.5K30.Q30. [Plane profile with double radius profiled section G17 O1 T1M6 F1200S1200M3 G49I5Q5[ spherical cutter zeroed in centre Z100R X50Y0R Z10R G736X50Y0I3 G41K2 G13X127.5Y0J266.32K2 G21I-69.58 G13Y-189.48J180 G21 G13X-127.5Y0J93.68 G20X0Y0I-127.5K2 G13X127.5Y0J266.32 G40X50Y0K2 G737 G42 G20X0Y0 G20X-18.8Y0I-18.8 G21I3 G20X-44.2Y-19.8I-25.4 G13J180 G40 G738 Z100R M30 Programming Examples 67 S3000 – S4000 SERIES CNC PROG62 Double crowning profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 68 $2X-243.I227.Y-191.J109.K45.Q30. [Double crowning profile (R.300 on XZ and R.500 on YZ) G17 O1 T1M6 F1200S1200M3 G49I5Q5 [Spherical cutter zeroed in centre Z100R X-200Y-100R Z2R G751ROTX90 G736I5Q2 G42 G13X-200J-90 G20X0Y-300I-300 G13X200J90K2 G40 G737 G42 G13Y100J0 G20X500Y0I500 G13Y-100J0 G40 G738 G750 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG63 Open tub with 3 sectioned sides (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 $2X-191.I209.Y-140.J116.K45.Q30. [Programme for open tub with three sides that have different sections [ G17 O1 T1M6 F1200S2000M3 [ G49I0Q0 [input spherical cutter radius Z100R X-100Y-50R Z10R G736I1Q2K2 G42 G20X-100Y-50 Q2 G13J90 G21I-20 G13Y60J0 Q1 G21 Q2 G13X100J-90 G20X100Y-50 G40 G737 Q1 G41 G13Y0J0 G13X0Y0J-85 G21I10 G13Y-20J0 G21I-15 G13X40Y-20J-70 G13Y-55J0 G40 Programming Examples N33 N34 N35 N36 N37 N38 N39 N40 N41 G737 Q2 G41 G13Y0J0 G13X0Y0J-87.5 G13Y-55J0 G40 G738 Z100R M30 69 S3000 – S4000 SERIES CNC PROG64 – 4 sectioned three-dimensional punch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 70 $2X-101.I134.Y-87.3J62.7K-45.Q30. [Solid defined as plane profile with 4 different sectioned profiles G17 O1 T1M6 F1200S2500M3 P1=60 [total piece height G49I0Q0 Z100R X-25Y0R Z10R G736I2K2 G42 G20X-25Y0 Q4 G13J90 G21I-10 G13Y60J0 Q3 G21 Q2 G13X25J-90 G21 Q1 G13Y0J180 Q1 G13X0J-90 Q2 G13Y-60J180 G21 G13X-25J90 Q4 G20X-25Y0 G40 G737 Q1 G42 G13Y0J180 G20X0Y-60I60 G13Y-P1J180K2 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 G40 G737 Q2 G42 G13Y0J180 G13X0Y0J-90 G13Y-P1J180 G40 G737 Q3 [ K1 G42 G13Y0J180 G21I5 G13X0Y0J-115 G21I-8 G13Y-10X0J185 G21I12 G20X69.6Y-70I130 G13Y-P1J180K2 G40 G737 Q4 G42 G13Y0J180 G21I5 G13X0Y0J-125 G13Y-P1J180 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG65 Sphere with 3 spherical ears (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 $2X-78.9I77.6Y-61.8J38.2K45.Q30. [Sphere with 3 spherical ears G17 O1 T1M6 F1500S2000M3 G49I0Q0 Z100R X50Y0R Z2R G736I1 G42 G20X50Y0 Q1 L=1 G20X0Y0I50 Q1 G21I-5 Q2 G20X0Y50I15 G21 G51J120I L1K2 G51J0 G50 G20X0Y0I50 Q1 G20X50Y0 G40 G737 Q1 G42 G13Y0J180 G20X-50Y0I-50 G13Y-15J180 Programming Examples N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 G40 G737 Q2 K1 G42 G13Y0J180 G20X-15Y0I-15 G13J180 G40 G738 G736I1 G42 G20X50Y0 G20X0Y0I50 G20X50Y0 G40 G737 G42 G13Y-15J180 G20X-50Y0I-50 G13J180Y-49.99 G40 G738 Z100R M30 71 S3000 – S4000 SERIE CNC PROG66 Solid defined by an open plane profile and an XY machining section profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 72 $2X-152.I318.Y-135.J165.K45.Q30. G17 O1 T1M6 F1200S1500M3 [Programme to create a section on a profile seen on XZ G49I5 [spherical cutter zeroed at centre Z100R X-100Y-40R Z-30R G711K31 L2 G710 G721K31I5D0=2 P0=0 L=3 P0=P0+1 E1=E31KP0 P10=E1 G751TRSXP10ZP11ROTX90ROTY90 L1 P0=P0+1 E1=E31KP0 P10=E1 G751TRSXP10ZP11ROTX90ROTY90 G754 L1 G753 {P0<P99}L3 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 G750 Z100R M30 L=1 G41 G20X-30Y0Z0 G13J75 G21I-10 G20X0Y-10I-40 G21 G13X30Y0J-75 G20 G40 G32 L=2 G41 G20X-100Y-50 G13J0 G21I30 G13X80Y-30I-60J45 G20 G21I80 G13Y-50J0 G20X250Y-50 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG67 Semicircular section solid defined by a profile on XY and by a profile on XZ (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 $2X-136.I177.Y-98.5J101.K-45.Q30. [Programme to create a snake [that is a semicircular section tube layed out on a profile [section on XZ and a plane profile on XY G17 O1 T1M6 F1200S2000M3 G49I0 [Input spherical cutter radius Z200R X-100Y0R Z10R P50=100 [number of points G711K31 L1 [profile on XZ G710 G711K32 L2 [profile on XY G710 G721K31JP50 [J=number of points P9=P99-1 G721K32JP50 [J=number of points P1=0 L=4 P1=P1+1 E1=E31KP1 E2=E32KP1 P10=E1 Programming Examples 73 S3000 – S4000 SERIE CNC N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 74 P20=E2 P22=P22+90 G751TRSXP10ZP11YP21ROTX90 ROT YP22 ROTX-P12 L3 [section profile P1=P1+1 E1=E31KP1 E2=E32KP1 P10=E1 P20=E2 P22=P22+90 G751TRSXP10ZP11YP21ROTX90 ROTYP22 ROTX-P12 G754 L3 G753 {P1<=P9}L4 M30 L=1 [profile on XZ G41 G20X-100Y0Z0 G13J35 G21I-50 G13X50Y0J-30 G21I50 G13X150Y50J45 G20X150Y50 G40 G32 L=2 [profile on XY G41 G20X-100Y0Z0 G13J-15 G21I50 G20X100Y-130I-130 G13J-15 G13X150Y0J-90 G40 G32 L=3 [section profile G41 G20X-30Y0Z0 G20X0Y0I30 G20X30Y0 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG68 Automobile tyre rim die (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 $2X-332.I294.Y-202.J198.K15.Q50. [Machining for an automobile tyre rim die G17 O1 T1M6 F5000 S8000 M3 G49I0Q0 [input desired spherical cutter radius [or toric cutter with G49I…J…Q… P1=2 [cut increment P10=0 [P10=0 finishing P10=1 roughing P2=0 L=2 L1 P2=P2+120 G751ROTZP2 L2K2 M30 L=1 Z100R X0Y-120R Z5R G736X0Y-120IP1 D0=P10 [plane profile G41K2 G20X0Y0I195.5 G21I8 G13X124.57Y-117.53J150 G13J168.313 G21I63.3 Programming Examples N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 G13X-124.57Y-117.53J168.313 G13J-150 G21I8 G20X0Y0I195.5 G40X0Y-120K2 G737 [section profile G41 G13Y0J0 G21I-3 G13X0Y-33J-45 G21I15 G13Y-33J0 G40 G738 G32 75 S3000 – S4000 SERIE CNC PROG69 Plane profile with 3 different sections that repeat part of the profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 76 $2X-140.I141.Y-108.J72.4K15.Q30. [Plane profile with 3 different sections that repeat part of the profile rotated at 90 degrees [ G17 O1 T1M6 F1200S2000M3 G49I0Q0 Z100R X0Y80R Z10R G736I2K2 G42 G20X0Y80Q1 L=1 G13Y80J180Q1 G13X-50J90Q2 G13Y100J180Q3 G21I20 G13X-100J-90 G13Y50J0Q2 G51J90I L1K3 G13Y80J180Q1 G20X0Y80Q1 G40 G50 G737 Q1 G42 G13Y0J180 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 G20X-30Y0I-30 G13J180 G40 G737 Q2 G42 G13X0Y0J180 G13J-90 G13Y-30J180 G40 G737 Q3 G42 G13Y0X0J180 G13X0Y0J-110 G13Y-30J180 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG70 Die for Selbox push-buttons repeated on a linear grid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 $2X-191.I-34.4Y13.3J113.K45.Q30. [Selbox push-button panel [small slightly raised push-buttons with 1.5 diam. spherical cutter [realisation with plane-section profile, outer profile R 0.5 G17 O1 T1M6 F1000S1200M3 G49I0.75Q0.75 Z100R G787X-18Y111D1=3D2=18D4=3D5=18 L1 G780 Z100R G787X-36Y183D1=5D2=18D4=2D5=-18 {P99=6}L50 {P99=10}L50 L2 L=50 G780 Z100R G787X-28Y201D1=5D2=14 L3 G780 Z100R M30 L=1 Z10R X0Y0R Programming Examples N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 Z2R G736X0Y0I.1 G42K2 G20X0Y0I7 G40X0Y0K2 G737 G42 G13Y0J180 G21I.5 G13X0J-90 G13Y-1J180 [height 1 mm G40 G738 Z10R G32 L=2 Z10R X0Y0R Z2R G736X0Y0I.1K2 G42K2 G13X0Y0I7J-90 G21I4.5 G13J0 G21 G13J90 G21 G13J180 G21 G13J-90 G40X0Y0K2 77 S3000 – S4000 SERIE CNC N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 78 G737 G42 G13Y0J180 G21I.5 G13X0J-90 G13Y-1J180 [height1 mm G40 G738 Z10R G32 L=3 Z10R X0Y0R Z2R G736I.1X0Y0 G42K2 G13X-4J-90 G20X0Y-3I4 G13J90 G20X0Y3I4 G13J-90 G40X0Y0K2 G737 G42 G13Y0J180 G21I.5 G13X0J-90 G13Y-1J180 [height 1 mm G40 G738 Z10R G32 Programming Examples S3000 – S4000 SERIES CNC PROG71 Punch for Selbox (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 $2X-127.I139.Y-89.2J80.8K45.Q30. [male [three-dimensional part with variable sections F9000S1200M3 [use spherical cutter zeroed at radius centre [height 43.17-18.04 : Z0 is on the upper part P50=.5 [increment between cuts P40=4 [cutter radius (max radius 4) P11=43.17-18.04+P40 [total cyclinder head height Z100R G49IP40QP40 [spherical cutter radius X-25.83Y34.17R Z10R G736IP50K2 Q2 G42 G20X-25.83Y34.17 Q2 G13J180 G21I6.03 Q1 P1=241.2 P2=241.2-138.77 [tail radius centre G20XP2Y0I241.2 Q1 G21 G13Y-34.17J0 Q2 G20X-25.83Y-34.17 G40 G737 Q1 G41 G13Y0J0 G13X0J-90 G13Y-P11J0 G40 Programming Examples N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 G737 Q2 K1 G41 G13Y0J0 G21I-24.12 G13X0J-90 G13Y-P11J0 G40 G738 Z100R X14.37Y-34.17R P1=43.17-18.04+P40 [total height Z10R G736IP50K2 Q2 G42 G20X14.37Y-34.17 G13J0 P2=126.55-241.2 G20XP2Y0I241.2K2 G13Y34.17J180 G20X14.37Y34.17 G40 G737 G41 G13Y0J0 G21I-6.03 G13X0J-90 G13Y-P1J0 G40 G738 Z100R L=99 79 S3000 – S4000 SERIE CNC N63 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N102 N103 N104 N105 N106 N107 N108 N109 N110 N111 N112 N113 N114 N115 N116 N117 N118 N119 N120 N121 N122 80 P1=43.17-18.04 [total cylinder head height P77=P1 [part with variable radiuses [G761Y-P77Q2 G49IP40 [sperical cutter radius Z100R X14.37Y54.17R Z20R P1=6.03 [initial radius P2=24.12 [final radius P3=80 [number of points P4=(P1-P2)/P3 P50=1 [ahead-return discriminator G711K32 G41 G20X14.37Y34.17 G13J180 G20X-25.83Y34.17 G40 G710 G721K32JP3D0=2 P9=P99-1 P0=0 L=10 P0=P0+1 E1=E32KP0 P10=E1 P12=P12-90 G751TRSXP10YP11ROTX90ROTYP12 L51 G750 P1=P1-P4 L10KP9 [G760 Z100R X14.37Y-54.17R Z10R P1=6.03 P2=24.12 P3=80 [number of points P4=(P1-P2)/P3 P50=1 [ahead-return discriminator G711K32 G41 G20X14.37Y-34.17 G13J180 G20X-25.83Y-34.17 G40 G710 G721K32JP3D0=2 P9=P99-1 P0=0 L=11 P0=P0+1 E1=E32KP0 P10=E1 N123 N124 N125 N126 N127 N128 N129 N130 N131 N132 N133 N134 N135 N136 N137 N138 N139 N140 N141 N142 N143 N144 N145 N146 N147 N148 N149 N150 N151 N152 N153 N154 N155 N156 N157 N158 N159 N160 N161 N162 N163 N164 N165 N166 N167 N168 N169 N170 P12=P12-90 G751TRSXP10YP11ROTX90ROTYP12 L61 G750 P1=P1-P4 L11KP9 G750 [G760 Z100R M30 L=51 P50<L52 G42 G20X0Y-P77Z0 G13J90 G21IP1 G13Y0J180 G40 P4<L53 L=52 G41 G13Y0X0J0Z0 G21I-P1 G13X0J-90 G20X0Y-P77 G40 L=53 P50=-P50 G32 L=61 P50<L62 G41 G20X0Y-P77Z0 G13J90 G21I-P1 G13Y0J0 G40 P4<L63 L=62 G42 G13Y0X0J180Z0 G21IP1 G13X0J-90 G20X0Y-P77 G40 L=63 P50=-P50 G32 Programming Examples S3000 – S4000 SERIES CNC PROG72 Conical slots repeated on a linear grid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 $1M0X-234.I235.Y-146.J154. [Programme to repeat n. of conic or cylinder slots on a linear grid [ G17 O1 T1M6 F1200S2000M3 G49I5Q5 [ P1=70 [total slot length on X P2=25 [total slot width on Y P3=18 [slot depth on Z P4=8 [slot taper ratio P5=1 [cut increment [ P10=-180 [X first slot P11=-40 [Y first slot P12=0 [singular slot inclination angle P13=5 [number of slots on X P14=90 [distance of slots on X P15=3 [number of slots on Y P16=40 [distance of slots on Y [ P2=P2/2 P1=P1/2-P2 P4=90-P4 [ G787 XP10YP11 D1=P13 D2=P14 D4=P15 D5=P16 D7=P12 Programming Examples N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 Z100R X0Y0R Z10R G736IP5X0Y0 G41K2 G13YP2J180 G20X-P1Y0IP2 G13J0 G20XP1Y0IP2 G13J180 G40X0Y0K2 G737 G41 G13Y0J0 G13X0Y0J-P4 G13Y-P3J0 G40 G738 Z100R G780 Z100R M30 81 S3000 – S4000 SERIE CNC PROG73 Grooved surface that links a radius to a profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 82 $2X-687.I684.Y-458.J418.K45.Q30. [Grooved surface that links a radius to a profile G17 O1 T1M6 F2000 S3000 M3 G49I5Q5 Z200R X600Y250R Z50R G726Z-600I5 G41 G20X-250Y0 G13J0 G21I-30 G13X0Y-250J-80 G20 G40 G727Z600 G41 G20X-250Y0 G20X-250Y-250I-250 G20X0Y-250 G40 G728ROTX90ROTY-90 Z200R M30 Programming Examples S3000 – S4000 SERIES CNC PROG74 Grooved surface with delimiting profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 $2X-17.4I17.3Y-16.J6.18K45.Q30. [Grooved surface with delimiting profile G17 O1 T1M6 F1000S2000M3 G49I1.5Q1.5[input spherical cutter radius Z10R X-7Y-7R Z2R G726Z11I.25 L1 G727Z-11 L1 G34 L2 G35 G728 ROTX90 ROTY90 Z100R M30 L=1 G41 G20X-10Y-6.45 G13J0 G20X0Y0I11.22 G13Y-6.45J0K2 G20X10Y-6.45 G40 G32 L=2 P1=18.96/2 G41 G20XP1Y0 Programming Examples N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 G13J90 G21I3.36 G13YP1J180 G21 G13X-P1J-90 G21 G13Y-P1J0 G21 G13XP1J90 G20XP1Y0 G40 G32 83 S3000 – S4000 SERIE CNC PROG75 Surfaces defined by 3 grooves (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 84 $2X-248.I65.1Y-58.J142.K45.Q30. [3D surface created by the union of 3 grooved surfaces G17 O1 T1M6 F1000S1200M3 [machine with cutter radius equal to 0 [modify profiles by inputting the quotes already calculated at the desired cutter radius centre [ G49I0Q0 Z100R X-38Y44R Z10R G726Z-44I2 L1 G727Z-117 L1 G728ROTX90 Z100R X-38Y117R Z10R G726Z-117I2 L1 G727Z-157 L3 G728ROTX90 Z100R X-38Y157R N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 Z10R G726Z-157I2 L3 G727Z-230 L3 G728ROTX90 Z100R M30 L=1 G41 G13Y0J0 G20X-10Y0I28 G13J0 G20X10Y0I28 G13Y0J0K2 G40 G32 L=3 G41 G13Y0J0 P1=55/2 G20X-P1Y0I10 G13J0 G20XP1Y0I10 G13Y0J0K2 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG76 Chamfer on a tube (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 $2X-93.4I94.5Y-106.J13.7K45.Q30. [programme that creates a chamfer between a concave surface (TUBO) and a hole [lengthwise on the Z axis [P0= spherical cutter radius [P1=external diameter of tube [P2= internal diameter of tube [P3= perpendicular hole diameter [P4= angle of chamfer positioned at 3 o’clock [P5= angular cut increment [ P0=6, P1=200, P2=160, P3=120, P4=45, P5=1 [ P1=P1/2 P2=P2/2 P3=P3/2 {P1<=P2}L99 E1=G20X0Y-P1IP1 E2=G20X0Y-P1IP2 E3=G13XP3Y0J90,E2K2 E5=G10X0Y-P1,G11E3 E8=G20X0Y-P1 P10=90/P5 [number of cuts on 90° P11=P10-1 [number of repetitions P12=E5,2 [E5 angle P13=(90-P12)/P10 G17 O1 T1 F200S2500M3 Z200R G49IP0QP0 Programming Examples 85 S3000 – S4000 SERIE CNC N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 86 X0Y0R Z10R P70=0 [start point angle P14=P12 L=1 E9=G13E8JP14,E2K2 P50=E9,2 G751TRSZP50 ROTZP70 ROTX90 L10 P70=P70+P5 P14=P14+P13 E9=G13E8JP14,E2K2 P50=E9,2 G751 TRSZP50 ROTZP70 ROTX90 G754 L10 G753 P70=P70+P5 P14=P14+P13 L1KP11 P70=180 P14=90+(90-P12) L=3 E9=G13E8JP14,E2K2 P50=E9,2 G751TRSZP50 ROTZP70 ROTX90 L10 P70=P70+P5 P14=P14-P13 E9=G13E8JP14,E2K2 P50=E9,2 G751 TRSZP50 ROTZP70 ROTX90 G754 L10 G753 P70=P70+P5 P14=P14-P13 L3KP11 G750 Z200RM5 L=99 M30 L=10 G41 G20E3 Z0 G13E3JP4 G20E1K2 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG77 Joint on a tube N1 N2 $2X-75.1I81.7Y-58.5J41.7K45.Q40. [Programme to create a joint between two perpendicular holes [one concave hole arranged lengthwise on the N3 Y axis N4 [and the perpendicular hole arranged lengthways on Z axis N5 [Machining of the holes must be carried out previously N6 [ N7 [P0= cut increment angle N8 [Caution :90/P0 must obtain an equal number N9 [P1= Vertical hole radius N10 [P2= radius of concave machining on Y N11 [P3= hole joint radius N12 [P4= spherical cutter radius zeroed at sphere centre N13 [ N14 P0=1 ,P1=50 ,P2=55 ,P3=12 ,P4=10 N15 [ N16 P5=P1-P4 N17 {P5<=0}L80 N18 {P1>=P2}L80 N19 [ N20 G17 N21 O1 N22 T1 N23 F200S2500M3 N24 Z200R N25 G49IP4QP4 Programming Examples (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N26 N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 X0Y0R [ E1=G20X0Y0IP2 E2=G13XP1Y0J90 E3=E2,G21I-P3,E1 [joint E4=E1I0 E5=E3I0 E6=G10E5,G11E4 [straight line E8=G13E5J0,E3 P30=E6,2 [get E6 angle P10=90/P0 P32=(P30-90)/P10 [angular increment P20=0 [start point angle P21=90 [quadrant P51=E5,2 P50=P51+(2*P4) ZP50R ZP51 P8=P1-P4 [positioning on X XP8Y0[R L=50 P31=P30 L=2 G751 ROTZP20 ROTX90 L1 P20=P20+P0 [rotation increment {P20>=P21}L98 G751 ROTZP20 ROTX90 G754 87 S3000 – S4000 SERIE CNC N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 88 P31=P31-P32 L1 G753 P20=P20+P0 [rotation increment P31=P31-P32 {P20<P21}L2 L=98 P21=P21+90 L=3 G751 ROTZP20 ROTX90 L1 P20=P20+P0 [rotation increment {P20>=P21}L99 G751 ROTZP20 ROTX90 G754 P31=P31+P32 L1 G753 P20=P20+P0 [rotation increment P31=P31+P32 {P20<P21}L3 L=99 P21=P21+90 L50K1 G750 Z200RM5 L=80 M30 L=1 G41 E8Z0 E3 [joint E7=E3,G13E5JP31K2 E7 [stop point G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG78 Semicircular channel on XZ (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 $2X-102.I196.Y-85.1J105.K-45.Q30. [Programme to carry out semicircular channel on XZ [the channel has a variable radius in the circular section [the channel has a constant radius in the vertical section [ G17 O1 T1 [spherical cutter zeroed at centre F200S2500M3 Z200R G49I0Q0 X-10Y0R Z100R P1=25 [start point radius P2=90 [start point angle P3=1 [angle / cut distance P4=(7.5/70)*P3 [radius decrement with each cut P5=0 L=2 G751ROTY-P2 L1 P2=P2-P3 P1=P1-P4 G751ROTY-P2 G754 L1 G753 P2=P2-P3 P1=P1-P4 L2K24 L=3 Programming Examples N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 G751ROTY-P2 L1 P2=P2-P3 G751ROTY-P2 G754 L1 G753 P2=P2-P3 L3K19 L=4 G751TRS Z-P5 L1 P5=P5+P3 G751TRSZ-P5 G754 L1 G753 P5=P5+P3 L4K24 G750 X100Y0R Z200RM5 M30 L=1 G41 G20X75YP1Z0 G20X75Y0IP1 G20X75Y-P1 G40 G32 89 S3000 – S4000 SERIE CNC PROG79 Slots on a circumference with a spiral cutter (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 90 $2X-225.I245.Y-147.J153.K45.Q50. [Programme to create slots on a circumference [using a spiral cutter on Z G17 O1 T1M6 F2000 S3000 M3 G49I5 [Input desired cutter radius L=1 P30=4 [number of slots P1=150 [circumference radius at slot centre P2=35 [slot width P3=-30 [slot start angle P4=30 [slot finsih angle P5=-20 [total slot depth on Z P6=2 [cut increment on Z [ E1=G20X0Y0IP1 E2=G13X0Y0JP3,E1K2 E3=G13X0Y0JP4,E1K2 P10=E2 P20=E3 P2=P2/2 P40=360/P30 Z100R XP10YP11R Z10R Z0 G735IP6ZP5 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 G41 G20XP10YP11IP2 P7=P1+P2 G20X0Y0IP7 G20XP20YP21IP2 P8=P1-P2 G20X0Y0I-P8 G20XP10YP11IP2 G20X0Y0IP7 G40 G734 Z100R G51JP40I L1KP30 M30 Programming Examples S3000 – S4000 SERIES CNC PROG80 Spiral milled rectangle (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 $2X-156.I157.Y-102.J97.9K45.Q30. [Finishing of a rectangle using a spiral cutter G17 O1 T1M6 F1200S2000M3 G49I5 Z100R P1=150 [side X rectangle P2=95 [side Y rectangle P3=12 [rectangle radiuses P4=30 [total depth P5=2 [cut increment [ P1=P1/2 P2=P2/2 P6=P1-25 [initial positioning on X XP6Y0R Z10R Z0 G735IP5Z-P4 G41K2 G13XP1J90 G21IP3 G13YP2J180 G21 G13X-P1J-90 G21 G13Y-P2J0 Programming Examples N30 N31 N32 N33 N34 N35 G21 G13XP1J90 G40XP6Y0K2 G734 Z100R M30 91 S3000 – S4000 SERIE CNC PROG81 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 92 Cylinder head $2X-337.I358.Y-169.J275.K45.Q30. [Programme to create a R 675 cylinder head [starting from a R 329 external diameter to achieve a R 254 internal diameter [ G17XYZ F1000S12000M3 P50=0[cutter radius P60=329 [external radius P61=254 [internal radius P62=P60-P61 [total width of the circular crown P63=5 [cut distance P64=INT(P62/P63+.999) P63=P62/P64 P64=P64-1 L=60 G711K31IP50X-90Y0 L5[profile to layout on the surface G710 G721I5K31D0=2[I=distance between points G711K32 L7[surface profile G710 P1=0 Z200R X360Y0R Z120R L=10 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 P1=P1+1 E1=E31KP1 P10=E1 E2=G13XP10Y0J-90 E3=E2,E32 P20=E3 XP10YP11ZP21 {P1<P99}L10 Z200R P60=P60-P63 L60KP64 M30 L=7[ surface profile G41 G13X-330J-90 G20X0Y675I675K2 G13X330J90 G40 G32 L=5 [ plane profile G41 G20XP60Y0 G20X0Y0IP60 G20XP60Y0 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG82 Layout of a profile on XY on a profile on XZ (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) $2X-94.7I93.3Y-53.5J66.6K45.Q30. N1 G17XYZ N2 [Programme to arrange any profile on any other profile N3 F1000S12000M3 N4 P50=0[cutter radius N5 G711K31IP50X-90Y0 N6 L5[profile to layout on surface N7 G710 N8 G721I2K31D0=2[I=distance between points N9 G711K32 N10 L7[surface profile N11 G710 N12 P1=0 N13 Z20R N14 X36Y0R N15 Z2R N16 L=10 N17 P1=P1+1 N18 E1=E31KP1 N19 P10=E1 N20 E2=G13XP10Y0J-90 N21 E3=E2,E32 N22 P20=E3 N23 XP10YP11ZP21 N24 {P1<P99}L10 N25 M30 N26 L=7[ surface profile N27 G41 N28 G13X-55J-90Z0 N29 G20X0Y-60I-60 N30 G13X55J-90 N31 G40 N32 G32 N33 L=5 [ plane profile N34 G41 Programming Examples N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 G20X36Y0 G13X36J90 G21I10 G10X36Y20 G11X19Y40 G21 G13J180 G21I3 G13X6J-90 G20X0Y6I-6 G13J90 G21 G13Y40J180 G21I10 G10X-19Y40 G11X-36Y20 G21 G13J-90 G21I3 G20X-36Y0I-10 G21 G10X-36Y-20 G11X-19Y-40 G21 G13J0 G21 G10X19Y-40 G11X36Y-20 G21 G13J90 G20X36Y0 G40 G32 93 S3000 – S4000 SERIE CNC PROG83 Union of two profiles by a 180° arch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 94 $2X-90.5I97.3Y-59.7J60.3K45.Q50. [ [Programme to unite two profiles (internal and external) with a 180 degree arch [ [Both profiles must be programmed clockwise [The cutter must be spherical and zeroed [at the sphere’s centre [ P0=250 [number of divisions on profile = number of cuts P1=0 [spherical cutter radius, zeroed at radius centre [ G17 O1 T1 [spherical cutter, zeroed at centre F200S2500M3 Z200R G49IP1QP1 X-60Y0R [X-60Y0 positioning for convex X40Y0 for concave Z30R G711K32 [external profile L1 G710 G711K33 [internal profile L2 G710 P10=0 [point counter N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 L=10 L9 [point calculation G751TRSXP5 TRSYP6 ROTZP24 ROTX90 L5 [machining {P10>=P99}L11 L9 [point caluclation G751TRSXP5 TRSYP6 ROTZP24 ROTX90 G754 [inversion L5 G753 {P10<P99}L10 L=11 G750 Z200RM5 M30 L=9 P10=P10+1 G721K32JP0D0=2 E10=E32KP10 P20=E10 [P20=X P21=Y P22=angle G721K33JP0D0=2 E20=E33KP10 P25=E20 [P25=X P26=Y P27=angle E5=G10XP20YP21,G11XP25YP26 P24=E5,2 [angle of straight line between two points E11=G20XP20YP21I-40 E12=G20XP25YP26I40 Programming Examples S3000 – S4000 SERIES CNC N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 E13=E11,E12 E14=E11,E12K2 E15=G10E14,G11E13 E16=E5,E15 P5=E16 [P5=X P6=Y P11=(SQR((P25-P20)*(P25-P20)+(P21P26)*(P21-P26)))/2 [radius G32 L=1 [external profile P60=-18 *1=G20X0Y0I-50 G41 G20X-50Y0Z0 L=70 *1 G21I-8 G51JP60 G20X-53Y0I10 G21 P60=P60-36 L70K9 G50 *1 G20X-50Y0 G40 G32 L=2 [internal profile P61=-18 *2=G20X0Y0I-20 G41 G20X-20Y0Z0 L=71 *2 G21I2 G51JP61 G20X-16Y0I-6 G21 P61=P61-36 L71K9 G50 *2 G20X-20Y0 G40 G32 L=5 [180 degree arch machining G41 G13X0Y0Z0J0 [I-P11 male IP11 female G20X0Y0I-P11 G13X0Y0J0K2 G40 G32 Programming Examples 95 S3000 – S4000 SERIE CNC PROG84 Union of two profiles by means of a third profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N8 N9 N10 N11 N12 N13 N14 centre N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 96 $2X-114.I121.Y-74.7J75.3K45.Q50. [ [Programme to unite two profiles together (external and internal) by [machining formed by a third profile [Both profiles must be programmed clockwise [the cutter must be spherical and it must be zeroed at the sphere’s centre [ P0=250 [number of profile divisions = number of cuts P1=0 [spherical cutter radius, zeroed at centre [ G17 O1 T1 [spherical cutter zeroed at sphere F200S2500M3 Z200R G49IP1QP1 X-60Y0R [positioning Z30R G711K32 [External profile L1 G710 G711K33 [Internal profile L2 G710 P10=0 [point counter N27 N28 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 L=10 L9 [point calculation G751TRSXP5 TRSYP6 ROTZP24 ROTX90 L5 [Machining {P10>=P99}L11 L9 [point calculation G751TRSXP5 TRSYP6 ROTZP24 ROTX90 G754 [inversion L5 G753 {P10<P99}L10 L=11 G750 Z200RM5 M30 L=9 P10=P10+1 G721K32JP0D0=2 E10=E32KP10 P20=E10 [P20=X P21=Y P22=angle G721K33JP0D0=2 E20=E33KP10 P25=E20 [P25=X P26=Y P27=angle E5=G10XP20YP21,G11XP25YP26 P24=E5,2 [straight line angle between two points E11=G20XP20YP21I-40 E12=G20XP25YP26I40 E13=E11,E12 Programming Examples S3000 – S4000 SERIES CNC N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 E14=E11,E12K2 E15=G10E14,G11E13 E16=E5,E15 P5=E16 [P5=X P6=Y P11=(SQR((P25-P20)*(P25-P20)+(P21P26)*(P21-P26)))/2 [RADIUS G32 L=1 [external profile P60=-18 *1=G20X0Y0I-50 G41 G20X-50Y0Z0 L=70 *1 G21I-8 G51JP60 G20X-53Y0I10 G21 P60=P60-36 L70K9 G50 *1 G20X-50Y0 G40 G32 L=2 [internal profile P61=-18 *2=G20X0Y0I-20 G41 G20X-20Y0Z0 L=71 *2 G21I2 G51JP61 G20X-16Y0I-6 G21 P61=P61-36 L71K9 G50 *2 G20X-20Y0 G40 G32 L=5 [180 degree arch machining G41 G13X0Y0Z0J0 G13X-P11J90 P58=((P11*2)/3)/2 P59=P11-P58 G20X-P59YP11I-P58 G20X0YP11IP58 G20XP59YP11I-P58 G13J-90 G13X0Y0J0K2 G40 G32 Programming Examples 97 S3000 – S4000 SERIE CNC PROG85 N1 N2 N3 N4 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32 N33 98 Six cams $2X-17.6I21.6Y-11.5J13.6K25.Q30. [Programme that arranges a section profile on a profile developed along a [circumference (6 ups and downs) [the cutter must be spherical and must be zeroed at the sphere’s centre [ P0=1 [angle between cuts G17 O1 T1 F200S2500M3 Z200R G49I4Q4 X20Y0R G711K35 L1 G710 P5=0 P6=360/P0 P7=0 G721JP6K35 L=10 P5=P5+1 E1=E35KP5 P10=E1,2 G751 ROTX90 ROTYP7 TRSYP10 L2 P5=P5+1 P7=P7+P0 E1=E35KP5 P10=E1,2 G751 ROTX90 ROTYP7 TRSYP10 G754 (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 L2 G753 P7=P7+P0 {P5<P99}L10 G750 Z200RM5 M30 L=1 G41 G20X0Y0 G20X0Y-5I-5 P1=(14.5*2*3.1415927)/6 P2=P1/2 P15=0 L=20 G51XP15 G11XP2Y3I5 G20 G11XP1Y-5I-5 G20 P15=P15+P1 L20K5 G20XP1Y0 G40 G32 L=2 G42 G20X12.6Y0Z0 G13J180 G20X10.1Y0 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG86 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 Three cams (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) $2X-149.I165.Y-105.J95.1K25.Q30. [Programme that arranges a profile section along a circumference [ [the cutter must be spherical and must be zeroed at the sphere’s centre [ P0=360 [number of cuts P8=P0-10 P1=(65*2*3.1415927) [circumference length G17 O1 T1 F2000S2500M3 Z200R G49I0Q0 X120Y0R G711K35 L1 G710 P5=0 P6=360/P0 P7=0 P9=0 G721JP0K35 [ P5=P5+1 E1=E35KP5 P10=E1 [P9=360/(P1/P10) L=10 Programming Examples 99 S3000 – S4000 SERIES CNC N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 100 G751 ROTX90 ROTYP9 L2 P5=P5+1 P7=P7+P6 E1=E35KP5 P10=E1 {P10=0}L50 P9=360/(P1/P10) G751 ROTX90 ROTYP9 G754 L2 G753 P5=P5+1 P7=P7+P6 E1=E35KP5 P10=E1 P9=360/(P1/P10) {P10<P1}L10 L=50 G750 Z200RM5 M30 L=1 P2=P1/3 P3=0 G41 G20X0Y0Z0 L=40 G51XP3 G13Y0J0 G21I40 G13X50Y0J20 G21I-50 G13Y25J0 G21I-5 G13XP2J-90 P3=P3+P2 L40K2 G50 G13Y0J0 G20XP1Y0 G40 G32 L=2 G42 G20X110Y-10Z0 G13J180 G13X95J90 G21I1 G13YP11J180 G21 G13X65J-90 G13Y-10J180 G20X50Y-10 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG87 Programme to create a vacuum cleaner nozzle (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 $2X-248.I64.9Y-58.7J141.K45.Q30. [Programme to create a nozzle for a vacuum cleaner [ P0=50 [number of divisions on a profile = number of cuts P1=8 [spherical cutter radius zeroed at centre sphere [ G17 O1 T1 [spherical cutter zeroed at centre sphere F200S2500M3 Z200R G49IP1QP1 X0Y0R Z30R G711K31 [profile A L1 G710 G711K32 [profile B L2 G710 G711K33 [profile C L3 G710 [ P58=39.25 [inizial radius P10=0 [point counter P18=31 P2=P0 Programming Examples N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 L=10 L9 [point calculation G751 TRSYP21 ROTX90 L5 [machining {P10>=P99}L20 L9 [poiont calculation G751 TRSYP21 ROTX90 G754 [inversion L5 G753 {P10<P99}L10 L=20 X0Y30R [ P10=0 [point counter P18=32 P2=P0*2 P57=(50-14)/P2 L=11 L9 [point calculation G751 TRSYP21 ROTX90 L5 [machining {P10>=P99}L21 L9 [point calculation G751 TRSYP21 ROTX90 P58=P58-P57 G754 [inversion L5 G753 P58=P58-P57 101 S3000 – S4000 SERIES CNC N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 N110 N111 N112 N113 N114 102 {P10<P99}L11 L=21 X0Y30R [ P10=0 [point counter P18=33 P2=P0 L=12 L9 [point calculation G751 TRSYP21 ROTX90 L5 [machining {P10>=P99}L22 L9 [point calculation G751 TRSYP21 ROTX90 G754 [inversion L5 G753 {P10<P99}L12 L=22 X0Y30R G750 Z200RM5 M30 L=9 P10=P10+1 G721KP18JP2D0=2 E10=EP18KP10 P20=E10 G32 L=1 [profile A G41 G20X-39.25Y0Z0 G13J90 G20X-39.25Y67.374 G40 G32 L=2 [profile B G41 G20X-39.25Y67.374Z0 E3=G13X-39.25Y0J90 ,G21I90, G20X7Y185I-90 E3 G20X7Y185I-90 G20X-83Y185 G40 G32 L=3 [profile C G41 G20X-83Y185Z0 G13J90 G20X-83Y250 G40 G32 L=5 [machining G41 G13Y0J0 Z0 G13XP20J-90 N115 N116 N117 N118 N119 N120 N121 G21IP58 G13J0Y-P58 G21IP58 G13X-P20J90 G13Y0J0 G40 G32 Programming Examples S3000 – S4000 SERIES CNC PROG88 Small parametrical tubs repeated at angles (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 [profile with different sections created parametrically [and repeated 6 times with an angular rotation $2X-300Y-200I300J200K45Q45 G17 O1 T1M6 F1000S2000M3 G49I0 [do not modify L=15 [ P20, P21, P22, P23 = profile parameters [P12,P32=profile joints P12=12 P30=30 [P40=offset of straight lines P40=0 [P10=tool radius P10=10 P5=1 [P5=depth of cut P6=P10 [P6=Z of straight line P20=207 P21=140 P22=0 P23=0 L2[calulations Z25R L=10 X160Y0R ZP6 E10=G13X0YP6J0 Programming Examples N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 E6=E10,E2K2 E7=E10,E1 L5 L1 { P6 >= P18 } L10 L=11 ZP6 E10=G13X0YP6J0 E6=E10,E4 E7=E10,E1 L5 L1 { P6 >= P19 } L11 L=12 ZP6 E10=G13X0YP6J0 E6=E10,E4 E7=E10,E3 L5 L1 { P6 >= -36 } L12 Z30R G51J60I L15K5 M30 L=1 E20=G20X0Y0IP20 E21=G20X0Y0I-P21 E24=G13X0Y0J-30 E24=E24Q30 E26=E21,E24K2 103 S3000 – S4000 SERIES CNC N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 N110 104 P34=E26 E24=E24Q-7.5 E26=E20,E24K2 P32=E26 E23=G10XP34YP35,G11XP32YP33 E23=E23Q-P40 E22=G10XP32Y-P33,G11XP34Y-P35 E22=E22Q-P40 G41K2 E20 G21IP12 E22 G21IP30 E21 G21IP30 E23K2 G21IP12 E20 G40X160Y0K2 G32 L=2 E4=G13X140Y0J-85 E4=E4Q10 E5=G13X0Y0J0 E5=E5QP10 P11=P10+12 E2=E5,G21I-P11,E4 E3=G13X207Y0J60 E3=E3QP10 P15=P10+38.5 E1=E3,G21I-P15,E5 E16=E5,E4 P16=E16 E16=E3,E5 P17=E16 E18=E2,E4 P18=E18,2 E19=E3,E1 P19=E19,2 G32 L=5 P20=E7,1 P21=E6,1 P40=P16-P21 P12=P40+12 P30=P40+30 P6=P6-P5 G32 Programming Examples S3000 – S4000 SERIES CNC PROG89 Punch with operating field limitations (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 [punch with three spherical walls and one cylindrical wall [obtained with operating field limitations $2X-72.7I83.8Y-39.2J60.8K45.Q30. G17 O1 T1M6 F5000S2000M3 G761Y-35 Z50R X0Y-90R G49I5Q5 G736I1 [I= increment of cuts G42 G20X0Y-90 G13J0 G13X23.15J90 G20X0Y15.18I23.15 G13J-90 G13Y-90J0 G20X0Y-90 G40 G737 G42 G20X5Y0 G13J180 G20X-23.15Y0I23.15 G20X-23.15Y23.15 G40 G738 Z50R M30 Programming Examples 105 S3000 – S4000 SERIES CNC PROG90 N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 106 Tube intersection (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) $2X-42.9I35.6Y-29.6J20.5K45.Q30. [intersection of profiles with different sections to create [a tube rack tool G17 O1 T1M6 F1200S2000M3 G49I0Q0 [input desired spherical cutter radius Z100R X12Y0R Z10R G736I.5Q2 G42 G20X12Y0 G13J180 G20X-12.95Y0 G40 G737 G41 G20X-15.5Y0 G20X0Y0I15.5 G20X15.5Y0 G40 G738 Z10R X-12.95Y0R G736I.5Q2 G42 G20X-12.95Y0 G13J180 G20X-25Y0 Programming Examples S3000 – S4000 SERIES CNC N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 G40 G737 G41 G20X-13Y0 G13X0Y0I13J-90 G13J-30 G13Y-13.2J0 G13X0Y0I13J30 G13J90 G20X13Y0 G40 G738 Z10R X0Y-25.6R G736I.5Q2 G42 G20Y-25.6X0 G13J90 G20Y-12X0 G40 G737 G41 G20X-9.5Y0 G20X0Y0I9.5 G20X9.5Y0 G40 G738 Z10R X0Y14R G736I.5Q2 G42 G20Y14X0 G13J90 G20Y45X0 G40 G737 G41 G20X-5Y0 G13J-87 G20X0Y20I25K2 G13X5Y0J87 G20 G40 G738 Z100R M30 Programming Examples 107 S3000 – S4000 SERIES CNC PROG91 Three-dimensional push-button (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 108 $2X-15.I16.3Y-12.J7.98K45.Q30. [punch for a three-dimensional push-button G17 O1 T1M6 F1000S2000M3 G49I0Q0 [input spherical cutter radius zeroed at centre [skim the z0 plane and set at zero T1Z radius [ES G49I5Q5 diam 10 spherical cutter: zero: T1Z5 Z100R X0Y0R Z10R G736I.5 G42 P1=22.5/2 [semiside X P2=P1-8 [circle centre G20XP1Y0 G20XP2Y0I8 G13J180 G20X-P2Y0I8 G13J0 G20XP2Y0I8 G20XP1Y0 G40 G737 G41 G20X-8Y0 G20X-8Y-51I-51 G21I-2 G13X0Y-4.1J-75 G13J-90 N32 N33 N34 N35 N36 G20X0Y-4.6 G40 G738 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG92 Cogs (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 $2X-62.1I63.2Y-52.8J27.2K45.Q30. [grooved surfaces to create 6 cogs around a cyilinder G17 O1 T1M6 F1000S2000M3 G49I0Q0 [input desired cutter radius L=1 Z100R P1=84/2 P2=65/2 X0YP1R Z20R G726Z0I.3 [I=cut distance G42 G20X0YP1 G20X0Y0IP1 G21I1 G13X-3J-90 G21 P3=P1-6 G20X0Y0I-P3 G21 G13X3J90 G21 G20X0Y0IP1 G20X0YP1 G40 G727Z-24 Programming Examples N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 G42 G20X0YP1 G20X0Y0IP1 G21I2 G13X-11.5J-90 G21 G20X0Y0I-P2 G21 G13X11.5J90 G21 G20X0Y0IP1 G20X0YP1 G40 G728 Z100R G51J60I L1K5 M30 109 S3000 – S4000 SERIES CNC PROG93 Tub with different depths (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 110 $2X-57.8I67.4Y-52.7J27.3K-45.Q30. [rectangular tub with two sections to obtain different depths G17 O1 T1M6 F2000S4000M13 G49I5J.5 [diam 10 toric cutter input radius 0.5 P1=35.19 [largest depth of piece P2=0.1 [start point z quote P10=0 [ P10=1 : roughing P10=0 : finishing P11=1 [cut depth L1 Z100R M30 L=1 Z30R X33.56Y0R G736IP11X33.56Y0D0=P10D8=1 G41K2 G13X48.27J90 Q1 G13Y25.14J180 Q1 G13X-48.27J-90 Q2 G13Y-25.14J0 Q1 G13X48.27J90 Q1 G40K2X33.56Y0 G737 Q1 G41 G13X0YP2J0 G13X0Y0J270.5 G21I2.01 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 G13Y-P1J0 G40 G737 Q2 K1 G41 G13X0YP2J0 G13X0Y0J270.5 G13X4.93Y-17.09I2.01J-66 G21I2.01 G13X4.93Y-17.09I2.01J0 G13X69.43Y-33.18I2.01J-75 G21I2.01 G13Y-P1J0 G40 G738X33.56Y0J.8 Z30R G32 Programming Examples S3000 – S4000 SERIES CNC PROG94 Hourglass (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 $2X-156.I158.Y-111.J89.9K45.Q30. [revolution solid to create an hourglass G17 O1 T1M6 F1000S1000M3 Z100R X-160Y-40R Z10R G49I5 [diam. 10 spherical cutter radius zeroed at centre P1=0 L=2 G751ROTXP1 L1 P1=P1+5 G751ROTXP1 G754 L1 G753 P1=P1+5 {P1<=180}L2 M30 L=1 X-160Y-40Z0 G41 G20X-156.5Y-52 G13J0 G10X-141.5Y-52 G11X-6.5Y-20 G13J0 Programming Examples N31 N32 N33 N34 N35 N36 G10X6.5Y-20 G11X141.5Y-52 G13J0 G20X156.5Y-52 G40 G32 111 S3000 – S4000 SERIES CNC PROG95 Parametric conical pocket (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) $2X-157.I157.Y-104.J96.5K45.Q30. N1 [parametric conical pocket N2 [conical ( or cylindrical) pocket that is spherical at the top and bottom N3 G17 N4 O1 N5 T1M6 N6 F4000S12000M13 N7 [set in G49 : I=0 finishing with spherical cutter N8 [ I=insert centre radius for finishing with toric cutter N9 [ I=cutter radius for roughing N10 G49I0 N11 [P1=major semiside N12 [P2=minor semiside N13 [P3=pocket joint radius N14 [P4=upper radius N15 [P5=lower radius N16 [P6=taper ratio >=0 0=cylindrical N17 [P7=absolute value depth N18 [P8=angular increment on upper radius N19 [P9=cut depth along the cone N20 [P10=angular increment on inferior radius N21 [P11=maching allowance on walls N22 [when roughing define P11=finishing machining allowance N23 [finishing with spherical cutter P11=spherical cutter radius N24 [finishing with toric cutter P11= insert radius N25 [P51=x centre pocket N26 [P52=y centre pocket N27 [P53=pocket rotation angle N28 [P54=x attachment point of circular pocket 112 N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 [P55=y attachment point of circular pocket P1=110 P2=90 P3=30 P4=10 P5=15 P6=20 P7=30.5 P8=3 P9=.5 P10=5 P11=5 P51=0 P52=0 P53=0 P54=0 P55=50 G51XP51YP52JP53 XP54YP55R Z2R [start calculations for upper radius [calculate angle in relation to taper ratio' P6=90-P6 [P16=number of repetitions rounded off P16=INT(P6/P8)+1 [recalculate angular increment P18=P6/P16 P16=P16-1 [P20 P21 centre radius position in relation to corner Programming Examples S3000 – S4000 SERIES CNC N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 N110 N111 N112 N113 N114 P20=P4*TAN(P6/2) P21=-P4 P22=0 [P22= initial angle [P14=radius plus machining allowance P14=P4+P11 [repetitive cycle L=99 P22=P22+P18 P30=P20-P14*SINP22 P31=P21+P14*COSP22 P40=P1+P30 P41=P2+P30 P42=P3+P30 ZP31 [recall contouring L1 L1 L99KP16 [start calculations for taper ratio' [P22=length of conic section P22=P7/SINP6-P4*TAN(P6/2)-P5*TAN(P6/2) [P23=height of conic section P23=P22*SINP6 [P16=number of repetitions rounded off P16=INT(P23/P9)+1 [P19=recalculate depth of cut P19=P23/P16 [P30=deviation in relation to taper ratio' P30=(P22/P16)*COSP6 P16=P16-1 L=98 P31=P31-P19 P40=P40-P30 P41=P41-P30 P42=P42-P30 ZP31 G42K2 [recall contouring L1 L1 L98KP16 [start calculation for lower radius [P16=n. of repititions P16=INT(P6/P10)+1 [recalculate angular increment P18=P6/P16 P16=P16-1 [P20 P21 position of lower centre radius [in relation to upper corner [P22=initial angle P20=P7*TAN(90-P6)+P5*TAN(P6/2) P21=P7-P5 P22=90-P6 [P14=lower radius – machining allowance P14=P5-P11 [repetitive cycle L=97 P22=P22+P18 Programming Examples N115 N116 N117 N118 N119 N120 N121 N122 N123 N124 N125 N126 N127 N128 N129 N130 N131 N132 N133 N134 N135 N136 N137 N138 N139 N140 P30=P20-P14*COSP22 P31=P21+P14*SINP22 P40=P1-P30 P41=P2-P30 P42=P3-P30 Z-P31 [recall contouring L1 L1 L97KP16 Z100RM5 M30 L=1 [pocket contouring (G21I-P42) G42K2 G13YP41J0 * G13XP40J-90 * G13Y-P41J180 * G13X-P40J90 * G13YP41J0 G40XP54YP55K2 G32 113 S3000 – S4000 SERIES CNC PROG96 Parametric conical punch (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 114 $2X-157.I157.Y-82.5J118.K45.Q30. [PARAMETRIC CONICAL PUNCH [conical (or cylindrical) punch that is spherical at the top and bottom G17 O1 T1M6 F4000S12000M13 [set in G49: I=0 finishing with spherical cutter [ I=insert centre radius for finishing with toric cutter [ I=cutter radius for roughing G49I0 [P1=major semiside [P2=minor semiside [P3=puch joint radius [P4=lower radius [P5=upper radius [P6=taper ratio >=0 0=cylindrical [P7=absolute value height [P8=angular increment on lower radius [P9=cut depth along the cone [P10=angular increment on upper radius [P11=machining allowance on wall [when roughing define P11=machining allowance for finishing [finishing with spherical cutter P11=spherical cutter radius [finishing with toric cutter P11=insert radius [P51=x punch centre [P52=y punch centre [P53=punch rotation angle N29 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 [P54=x attachment point of circular pocket [P55=y attachment point of circular pocket P1=100 P2=90 P3=20 P4=10 P5=10 P6=15 P7=50.5 P8=5 P9=1 P10=5 P11=0 P51=0 P52=0 P53=0 P54=0 P55=120 G51XP51YP52JP53 XP54YP55R Z2R [start calculations for lower radius [calculate angle in relation to the taper ratio' P6=90-P6 [P16=number of repetitions rounded off P16=INT(P6/P8)+1 [recalculate angular increment Programming Examples S3000 – S4000 SERIES CNC N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 N100 N101 N102 N103 N104 N105 N106 N107 N108 N109 N110 N111 N112 P18=P6/P16 P16=P16-1 [P20 P21 radius centre position in relation to corner P20=P4*TAN(P6/2) P21=-P4 P22=0 [P22= initial angle [P14=radius minus machining allowance P14=P4-P11 [repetitive cycle L=99 P22=P22+P18 P30=P20-P14*SINP22 P31=P21+P14*COSP22 P40=P1+P30 P41=P2+P30 P42=P3+P30 Z-P31 [recall contouring L1 L1 L99KP16 [start calculations for taper ratio' [P22=conical section length P22=P7/SINP6-P4*TAN(P6/2)-P5*TAN(P6/2) [P23=conical section height P23=P22*SINP6 [P16=number of repetitions rounded off P16=INT(P23/P9)+1 [P19=recalculate cut depth P19=P23/P16 [P30=deviation in relation to taper ratio' P30=(P22/P16)*COSP6 P16=P16-1 L=98 P31=P31-P19 P40=P40-P30 P41=P41-P30 P42=P42-P30 Z-P31 G42K2 [recall contouring L1 L1 L98KP16 [start calculations for upper radius [P16=n.of repetitions P16=INT(P6/P10)+1 [recalculate angular increment P18=P6/P16 P16=P16-1 [P20 P21 lower radius centre position [in relation to upper corner [P22=initial angle P20=P7*TAN(90-P6)+P5*TAN(P6/2) P21=P7-P5 P22=90-P6 [P14=lower radius + machining allowance P14=P5+P11 Programming Examples N113 N114 N115 N116 N117 N118 N119 N120 N121 N122 N123 N124 N125 N126 N127 N128 N129 N130 N131 N132 N133 N134 N135 N136 N137 N138 N139 N140 N141 [repetitive cycle L=97 P22=P22+P18 P30=P20-P14*COSP22 P31=P21+P14*SINP22 P40=P1-P30 P41=P2-P30 P42=P3-P30 ZP31 [recall contouring L1 L1 L97KP16 Z100RM5 M30 L=1 [pocket contouring (G21I-P42) G41K2 G13YP41J0 * G13XP40J-90 * G13Y-P41J180 * G13X-P40J90 * G13YP41J0 G40XP54YP55K2 G32 115 S3000 – S4000 SERIES CNC PROG97 Grooved between 2 specular profiles (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 116 $2X-203.I110.Y-69.8J130.K45.Q30. [grooved surfaces achieved by uniting 2 specular profiles on Z G17 O1 T1M6 F1200S2000M3 G49I2Q2 [diam 4 sperical cutter zeroed at radius centre Z100R X-100Y0R Z10R G726I2Z0 G41 G20X-100Y0 G20X-70Y0I-30 G20X0Y0I40 G20X70Y0I-30 G20X100Y0 G40 G727Z-150 G41 G20X-100Y0 G20X-70Y0I30 G20X0Y0I-40 G20X70Y0I30 G20X100Y0 G40 G728ROTX90 Z100R M30 Programming Examples S3000 – S4000 SERIES CNC PROG98 Parametric conical punch on a circumference (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 $2X-394.I389.Y-242.J258.K45.Q30. [repetition of parametrical punch on a circumference G17 O1 T1M6 F1000S1000M3 P50=0 [X circumference centre P51=0 [Y circumference centre P52=12 [number of figures P53=300 [circumference radius P54=10 [initial angle P55=1 [P55=1 figure rotates P55=0 figure does not rotate G797XP50YP51D1=P52D2=P53D3=P54D5=P55 {P99=5}L3 [SKIP FIGURE N. 5 {P99=8}L3 [SKIP FIGURE N. 8 [ L2 [recall machining L=3 G780 M30 L=2 L10 [ subprogram to initialise parameters P0=P0/2 [ transform diameter into cutter radius P1=P1/2 [ halve X axis dimensions P2=P2/2 [ halve Y axis dimensions P20=P1+P0+TANP7*P6+2 [ X quote for initial positioning Z100R XP20Y0R [ initial positioning P21=P5+2 [ safety quote Programming Examples 117 S3000 – S4000 SERIES CNC N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 118 ZP21R P22=INT(P6/P8+0.999) [ calculates number of cuts P8=P6/P22 [ if necessary reduces cut increment P22=P22-1 [ subtracts a cut in that the first [ is carried out previous to the recall P23=P8*TANP7 [ calculates shifting as a result of the taper ratio L=1 P5=P5-P8 [ descent on Z ZP5 P0=P0+P23 [ adds shifting to correct radius in relation to [ the taper ratio [ [ Profile definition G49IP0 G41K2 G13XP1J270 G21I-P3 G13Y-P2J180 G21 G13X-P1J90 G21 G13YP2J0 G21 G13XP1J270 G40K2XP20Y0 [ [ Profile end L1KP22 Z100R G32 L=10 [ [ initialise punch parameters [ P0=10 [ cutter diameter P1=100 [x side P2=70 [ y side P3=15 [ joint radius P4=0 [ angle of single figure P5=0 [ initial Z quote P6=30 [ total depth quote P7=15 [ taper ratio P8=2 [ increment on Z G32 Programming Examples S3000 – S4000 SERIES CNC PROG99 Parametric conical punch on a grid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P) N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 $2X-338.I445.Y-80.1J420.K45.Q30. [repetition of a parametric punch on a linear grid G17 O1 T1M6 F1000S1000M3 [ [ [ initialise grid parameters P9=0 [X quote for first figure P10=0 [Y quote for first figure P11=4 [ number of figures on X axis P12=150 [ pitch along X axis P13=0 [ angle on X axis P14=4 [ number of figures on Y axis P15=120 [ pitch along Y axis P16=90 [ angle on Y axis [ [ G787XP9YP10D1=P11D2=P12D3=P13D4=P14D5=P15D6=P16D7=P4 {P99=7}L3 [skip figure N. 7 {P99=11}L3 [skip figure N. 11 {P99=13}L3 [skip figure N. 13 L2 L=3 G780 M30 L=2 L10 [ subprogram to initialise parameters P0=P0/2 [ transform diameter into cutter radius P1=P1/2 [ halve X axis dimensions Programming Examples 119 S3000 – S4000 SERIES CNC N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 120 P2=P2/2 [halve X axis dimensions P20=P1+P0+TANP7*P6+2 [X quote for initial positioning Z100R XP20Y0R [ initial positioning P21=P5+2 [ safety quote ZP21R P22=INT(P6/P8+0.999) [ calculates number of cuts P8=P6/P22 [ if necessary reduces cut increment P22=P22-1 [ subtracts a cut in that the first [ is carried out prior to the recall P23=P8*TANP7 [ calculates shifting for the taper ratio L=1 P5=P5-P8 [ descent on Z ZP5 P0=P0+P23 [ adds shifting to the correct radius in relation to [ the taper ratio [ [ Profile definition G49IP0 G41K2 G13XP1J270 G21I-P3 G13Y-P2J180 G21 G13X-P1J90 G21 G13YP2J0 G21 G13XP1J270 G40K2XP20Y0 [ [ Profile end L1KP22 Z100R G32 L=10 [ [ initialise punch parameters [ P0=10 [ cutter diameter P1=100 [ x side P2=70 [ y side P3=15 [ joint radius P4=0 [ single figure angle P5=0 [ initial Z quote P6=30 [ total depth quote P7=15 [ taper ratio P8=2 [ increment on Z G32 Programming Examples