Navigation

  • Page 1

    S3000 – S4000CNC SERIESProgrammingExamplesMarch 2003 Edition

  • Page 2

  • Page 3

    S3000 – S4000 SERIES CNCIndexProgramming Examples IREVISIONSRev.# Rev. Date.Pages Revised00---------01---------Mar. 2003----------------Nov.2003---------------- Emission CMAE3403030E-------------------------...

  • Page 4

    S3000 – S4000 SERIES CNCIndexIIProgramming ExamplesREVISIONSRev.#Rev. Date.Pages RevisedNote: Pages marked (01) have been modified.Pages marked (01)+ are new ones.

  • Page 5

    S3000 – S4000 SERIES CNCIndexProgramming ExamplesIIIINDEXPROG01 - Profile 1 ........................................................................................................... 1PROG02 - Profile 2 ....................................................................................

  • Page 6

    S3000 – S4000 SERIES CNCIndexIVProgramming ExamplesPROG37 - Pocket with linear repeated islands ................................................................41PROG38 - Holes on a hexagon .........................................................................................42PROG39 -...

  • Page 7

    S3000 – S4000 SERIES CNCIndexProgramming ExamplesVPROG81 - Cylinder head .................................................................................................... 92PROG82 - Layout of a profile on XY on a profile on XZ ................................................. 93PROG83...

  • Page 8

    S3000 – S4000 SERIES CNCIndexVIProgramming Examples

  • Page 9

    S3000 – S4000 SERIES CNCProgramming Examples 1PROG01 Profile 1 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 1N2 $1M0X-93.1I63.5Y-40.5J59.5N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I3N8 Z100RN...

  • Page 10

    S3000 - S4000 SERIES CNC2Programming ExamplesPROG02 Profile 2 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 2N2 $1M0X-82.9I125.Y-63.9J69.1N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I2N8 Z100RN9 X35Y25RN10 Z2RN11 Z-1...

  • Page 11

    S3000 – S4000 SERIES CNCProgramming Examples 3PROG03 Profile 3 (CNC S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 [PROFILE 3N2 $1M0X-105.I103.Y-63.7J69.3N3 G17N4 O1N5 T1N6 F1000S1200M3N7 Z100RN8 ...

  • Page 12

    S3000 - S4000 SERIES CNC4Programming ExamplesPROG04 Profile 4 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 4N2 $1M0X-83.1I90.7Y-53.7J57.3N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I2N8 Z100RN9 X20Y35RN10 Z2RN11 Z...

  • Page 13

    S3000 – S4000 SERIES CNCProgramming Examples 5PROG05 Profile 5 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 5N2 $1M0X-54.8I205.Y-83.4J82.8N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 Z100RN9 ...

  • Page 14

    S3000 - S4000 SERIES CNC6Programming ExamplesPROG06 Profile 6 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 6N2 $1M0X-110.I150.Y-82.4J83.7N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I1N8 Z100RN9 X-75Y-75RN10 Z2RN11 Z...

  • Page 15

    S3000 – S4000 SERIES CNCProgramming Examples 7PROG07 Profile 7(CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 7N2 $1M0X-131.I129.Y-61.5J104.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 Z100RN8 X0Y95RN9 ...

  • Page 16

    S3000 - S4000 SERIES CNC8Programming ExamplesPROG08 Profile 8 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 8N2 $1M0X-106.I102.Y-69.8J63.2N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I1N8 Z100RN9 X0Y50RN10 Z2RN11...

  • Page 17

    S3000 – S4000 SERIES CNCProgramming Examples 9N26 E1N27 G21N28 G20X52.5Y0I8N29 G21I-2.5N30 E1N31 G21N32 G20X39.5Y32.25I7N33 G21I-1.5N34 E1N35 G21N36 G20X16Y47I6N37 G21I-2N38 E1N39 G40X0Y50K2N40 Z100RN41 ...

  • Page 18

    S3000 - S4000 SERIES CNC10Programming ExamplesPROG09 Profile 9 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 9N2 $1M0X-116.I119.Y-45.3J105.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 Z100RN8 X0Y0RN9 Z2RN10 Z-10N11 G49I2...

  • Page 19

    S3000 – S4000 SERIES CNCProgramming Examples 11PROG10 Profile 10 (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 10N2 $1M0X-174.I173.Y-102.J120.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I2.5N8 Z10...

  • Page 20

    S3000 - S4000 SERIES CNC12Programming ExamplesPROG11 Profile 11 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 11N2 $1M0X-158.I155.Y-84.6J115.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 Z100RN8 X0Y-70RN9 Z2RN10 Z-10N11 G...

  • Page 21

    S3000 – S4000 SERIES CNCProgramming Examples 13PROG12 Profile 12(CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 [PROFILE 12N2 $1M0X-83.1I105.Y-63.6J56.4N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 ...

  • Page 22

    S3000 - S4000 SERIES CNC14Programming ExamplesPROG13 Profile 13 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 13N2 $1M0X-85.1I106.Y-64.4J57.6N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 Z100RN9 X15Y-10RN10 Z2RN11 ...

  • Page 23

    S3000 – S4000 SERIES CNCProgramming Examples 15PROG14 Profile 14(CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 14N2 $1M0X-123.I118.Y-63.3J90.7N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 Z100RN...

  • Page 24

    S3000 - S4000 SERIES CNC16Programming ExamplesPROG15 Profile 15 (CNC S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 [PROFILE 15N2 $1M0X-119.I124.Y-77.5J77.5N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 Z100RN9 X0Y-75RN10 ...

  • Page 25

    S3000 – S4000 SERIES CNCProgramming Examples 17PROG16 Profile 16 (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILE 16N2 $1M0X-119.I124.Y-44.2J111.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I5N8 Z100RN9...

  • Page 26

    S3000 - S4000 SERIES CNC18Programming ExamplesPROG17 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 cutterN2 [thread depth>=...

  • Page 27

    S3000 – S4000 SERIES CNCProgramming Examples 19PROG18 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...

  • Page 28

    S3000 - S4000 SERIES CNC20Programming ExamplesPROG19 Taper hole (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-138.I139.Y-132.J45.K45.Q30.N2 [Spiral taper hole machining with toric cutterN3 [zeroed at insert centreN4 [to machine wi...

  • Page 29

    S3000 – S4000 SERIES CNCProgramming Examples 21PROG20 Tapered pin (CNC S3035/S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-137.I140.Y-133.J44.K45.Q30.N2 G17N3 O1N4 T1M6N5 F1000 S2000 M3N6 [Ta...

  • Page 30

    S3000 - S4000 SERIES CNC22Programming ExamplesPROG21 Hole thread (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-57.9I59.6Y-50.5J24.5K45.Q30.N2 G17N3 O1N4 T1M6N5 F1000S1200M3N6 [P0= cutter diameterN7 [P1= internal ho...

  • Page 31

    S3000 – S4000 SERIES CNCProgramming Examples23PROG22 Boring with wall disjunction (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-12.1I46.7Y-23.7J13.8K-45.Q30.N2 G17N3 O1N4 T1M6N5 F1000S1000M3N6 [P1,P2 X Y of holeN7 ...

  • Page 32

    S3000 – S4000 SERIES CNC24Programming ExamplesPROG23 Points on a circle (CNC S3035/S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $1M0X-76.I159.Y-46.8J103.N2 G17N3 O1N4 T1M6N5 S2000M3F1000N6 [P1= X centerN...

  • Page 33

    S3000 – S4000 SERIES CNCProgramming Examples25PROG24 Points on a straight line (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $1M0X-243.I227.Y-154.J146.N2 G17N3 O1N4 T1M6N5 S2000M3F1300N6 [P1=X 1ST point P2=Y 1ST pointN...

  • Page 34

    S3000 – S4000 SERIES CNC26Programming ExamplesPROG25 Points on a rectangle(CNC S3035/S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $1M0X-76.3I80.8Y-9.3J91.1N2 G17N3 O1N4 T1M6N5 S2000M3F1500N6 G81Z-10J2N7 [P1= X lower left vertexN8 ...

  • Page 35

    S3000 – S4000 SERIES CNCProgramming Examples27PROG26 Points on a centred rectangle (CNC S3035/S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $1M0X-155.I159.Y-103.J97.8N2 G17N3 O1N4 T1M6N5 S2000M13F1000N6 G81Z-10J2N7 [P1= X centre of...

  • Page 36

    S3000 – S4000 SERIES CNC28Programming ExamplesPROG27 Board rough-boring (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)$1M0X-312.I316.Y-203.J198.N1 G17N2 O1N3 T1M6N4 F1200S2000M3N5 [P1= side X of boardN6 [P2= side Y of boardN7...

  • Page 37

    S3000 – S4000 SERIES CNCProgramming Examples29PROG28 Groove (CNC S3035/S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)$1M0X-155.I158.Y-102.J98.3N1 G17N2 O1N3 T1M6N4 F1200S2000...

  • Page 38

    S3000 – S4000 SERIES CNC30Programming ExamplesPROG29 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 G17N2 O1N3 T1M6N4 F1200S2000M3N5 [P1= groove X lengthN6 [P2= groov...

  • Page 39

    S3000 – S4000 SERIES CNCProgramming Examples31N15 [moving 3 axes contemporarilyN16 G51XP20YP21JP22N17 Z50RN18 P3=ABSP3N19 P4=ABSP4N20 P6=INT(P3/P4+0.999)N21 P4=P3/P6N22 P6=P6/2N23 P6=P6-1 [number of repetitionsN24 P7=P1/2 [semi-side XN25 P8=P7-P10/2...

  • Page 40

    S3000 – S4000 SERIES CNC32Programming ExamplesPROG30 Rectangular pocket (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)$1M0X-155.I158.Y-102.J98.3N1 G17N2 O1N3 T1M6N4 F1000S1000M3N5 [P1= X...

  • Page 41

    S3000 – S4000 SERIES CNCProgramming Examples33N40 P18=P7*1.4N41 P18=INT(P15/P18+1)N42 P17=P15/P18N43 P14=P14-P17*P18N44 P15=P5/2-P7-P17*P18N45 P16=P16-P17*P18N46 P24=P14N47 P25=P15N48 P26=P16N49 G51XP1YP2JP3N50 P18=P18-1N51 ZP66RN52 X0YP64RN...

  • Page 42

    S3000 – S4000 SERIES CNC34Programming ExamplesPROG31 Spiral sphere (CNC S3035/S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-94.7I93.3Y-53.5J66.6K45.Q30.N2 [Spiral milled sphereN3 [spherical cutter zeroed at cuter centreN4 [skim plate Z...

  • Page 43

    S3000 – S4000 SERIES CNCProgramming Examples35PROG32 Modal subprogram (CNC S3040/S3040GE/S3045/S3045P) (CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $1M0X-155.I158.Y-97.2J103.N2 T1M6[D8 tipN3 S4000M3F2000N4 G81Z-10J2 [D8 hole at L=2 pointsN5 L2N6 G80Z50RN7 ...

  • Page 44

    S3000 – S4000 SERIES CNC36Programming ExamplesPROG33 Rotated/offset pattern tapping holes on a lineargrid with G751function (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 [HOLES ON A LINEAR GRIDN2 [PATTERN TAPPING WITH G751FUNCTIONN3 ...

  • Page 45

    S3000 – S4000 SERIES CNCProgramming Examples37PROG34 Profiled pocket with internal islands(CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [PROFILED POCKET WITH INTERNAL ISLANDSN2 [ S4040GE / S4045 / S4045PN3 $1M0X-170.I177.Y-121.J101.N4 G17N5 O1...

  • Page 46

    S3000 – S4000 SERIES CNC38Programming ExamplesN23 G21I20N24 E2=G13X70Y0J90N25 E2N26 E3=E2,G21I-50,G20X110Y-30N27 E3N28 G21I10N29 G13X110J90N30 G21I-10N31 G20X90Y50I32N32 G21N33 G13Y70J180N34 G40X0Y50K2N35 G701X0Y-10N36 G41K2N37 G13Y10J...

  • Page 47

    S3000 – S4000 SERIES CNCProgramming Examples39PROG35 Ellipse draining (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 $1M0X-110.I109.Y-67.3J72.7N2 [ellipse drainingN3 P1=100 [major semiaxisN4 P2=60 [minor semiaxisN5 P3=2.5 [angle incrementN6 ...

  • Page 48

    S3000 – S4000 SERIES CNC40Programming ExamplesPROG36 Pocket with circular islands (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 $1M0X-182.I161.Y-105.J114.N2 [pocket with internal islands that are repeated on the circumferenceN3 G17N4 O1N5 T1M6N...

  • Page 49

    S3000 – S4000 SERIES CNCProgramming Examples41PROG37 Pocket with linear repeated islands (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 $1M0X-1405.I1335.Y-918.J833.N2 [Profiled pocket with internal islands that are repeated on a gridN3 G17N4 O1N5 T1M...

  • Page 50

    S3000 – S4000 SERIES CNC42Programming ExamplesPROG38 Holes on a hexagon (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 $1X-210Y-125I210J125N2 G17N3 O1N4 T1M6N5 F1000S2000M3N6 [ Pro...

  • Page 51

    S3000 – S4000 SERIES CNCProgramming Examples43PROG39 Selbox push-buttons (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [Selbox push-button panel: push-buttonsN2 $1M0X-92.8I93.5Y99.7J219.N3 G17N4 O1N5 T1N6 F1000S1200M3N7 G49I0 [input...

  • Page 52

    S3000 – S4000 SERIES CNC44Programming ExamplesPROG40 Spherical dome with points (CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 $2X-78.1I78.4Y-69.8J30.2K45.Q30.N2 [SPHERICAL SPIRAL DOME OBTAINED BY POI...

  • Page 53

    S3000 – S4000 SERIES CNCProgramming Examples45PROG41 Spherical dome with circles (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 $2X-25.8I25.9Y-19.8J13.2K45.Q30.N2 [Sherical domeN3 [obtained by circlesN4 G17N5 O1N6 T1M6N7 F8000 S20000 M3N...

  • Page 54

    S3000 – S4000 SERIES CNC46Programming ExamplesPROG42 Spherical dome with external radius (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 $2X-11.7I10.5Y-9.23J4.98K45.Q30.N2 [Spheric dome with external joint radius that isspiral machinedN4 G17N5 Z10RN6 ...

  • Page 55

    S3000 – S4000 SERIES CNCProgramming Examples47PROG43 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 radiusN2 P2=50 [number of cuts div...

  • Page 56

    S3000 – S4000 SERIES CNC48Programming Examples PROG44 Elliptical die (CNC S4040GE/S4045/S4045P) (CNC S4060D/S4040GE/S4045/S4045P) $2X-317.I310.Y-200.J201.K45.Q30.N1 [elliptical die with front and side sectionN2 [at different radiusN3 [N4 G17N5 O1N6 T1M...

  • Page 57

    S3000 – S4000 SERIES CNCProgramming Examples49PROG45 Elliptical punch (CNC S3040GE/S3045/S3045P) (CNC S4060D/S4040GE/S4045/S4045P)N1 $2X-277.I287.Y-196.J165.K45.Q30.N2 [elliptical punch with front and lateral sections thathave different radiusesN3...

  • Page 58

    S3000 – S4000 SERIES CNC50Programming ExamplesPROG46 Handgrip punch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-52.9I25.4Y-8.58J41.4K45.Q30.N2 [Profile offset/rotation to create a handgrip formotorcycles or bicyclesN3 [N4 [maleN5 ...

  • Page 59

    S3000 – S4000 SERIES CNCProgramming Examples51PROG47 Handgrip die (CNC S4045/S4045P) (CNC S4060D/S4045/S4045P)N1 $2X-53.I25.3Y-19.4J30.6K45.Q30.N2 [Profile offset/rotation to create a handgrip for motorcyclesand bicyclesN3 [N4 [Female...

  • Page 60

    S3000 – S4000 SERIES CNC52Programming ExamplesPROG48 Profile programmed on XY and machined on XZ (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-139.I95.7Y-15.9J134.K30.Q30.N2 [Pro...

  • Page 61

    S3000 – S4000 SERIES CNCProgramming Examples53PROG49 Conical slot (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-77.7I78.8Y-63.3J36.7K45.Q30.N2 [slot with taper ratio on radial linesN3 G17N4 O1N5 T1M6N6 F1200S...

  • Page 62

    S3000 – S4000 SERIES CNC54Programming ExamplesPROG50 Conical hole (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-42.5I74.9Y-9.02J66.K45.Q30.N2 [Conical hole programmeN3 G17N4 O1N5 T1M6N6 F1200S2000M3N7 G49I5Q5 [inp...

  • Page 63

    S3000 – S4000 SERIES CNCProgramming Examples55PROG51 Conical pin (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-82.6I152.Y-81.5J68.6K-45.Q30.N2 [Conical cylinder programmeN3 G17N4 O1N5 T1M6N6 F1200S2000M3N7 G49I5Q5 [input sph...

  • Page 64

    S3000 – S4000 SERIES CNC56Programming ExamplesPROG52 Columns (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-232.I237.Y-116.J184.K45.Q30.N2 [Programme for 4 columns on a rectangle usinga spiral cutterN3 [N4 G17N5 O1...

  • Page 65

    S3000 – S4000 SERIES CNCProgramming Examples57PROG53 Tub (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-200.I200.Y-131.J124.K45.Q30.N2 [rectangular tub that has sides with different taper ratiosN3 G17N4 O1N5 T1M6N6 F2000S3000M3...

  • Page 66

    S3000 – S4000 SERIES CNC58Programming ExamplesN41 G13XP1J90 Q1N42 G21IP3N43 G13YP2J180 Q2N44 G21 Q3N45 G13X-P1J-90N46 G21N47 G13Y-P2J0 Q4N48 G21 Q1N49 G13XP1J90N50 G40XP8Y0K2N51 G737 Q1N52 G41N53 G13Y0J0N54 G21I-P6N55 P10=90-P10N56 ...

  • Page 67

    S3000 – S4000 SERIES CNCProgramming Examples59PROG54 Punch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-200.I200.Y-131.J124.K45.Q30....

  • Page 68

    S3000 – S4000 SERIES CNC60Programming ExamplesN57 G13Y-P4J180N58 G40N59 G737 Q2N60 G42N61 G13Y0J180N62 G21IP6N63 P20=90+P20N64 G13X0Y0J-P20N65 G21I-P7N66 G13Y-P4J180N67 G40N68 G737 Q3N69 G42N70 G13Y0J180N71 G21IP6N72 P30=90+P30N73 ...

  • Page 69

    S3000 – S4000 SERIES CNCProgramming Examples61PROG55 Concave sphere (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-77.8I78.7Y-57.4J42.6K45.Q30.N2 [concave sphereN3 G17N4 O1N5 T1M6N6 F1200S3000M3N7 G49I5Q5 [input spherical cutter radiusN8 ...

  • Page 70

    S3000 – S4000 SERIES CNC62Programming ExamplesPROG56 Convex sphere (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-77.8I78.7Y-57.4J42.6K45.Q30.N2 [Convex sphereN3 G17N4 O1N5 T1M6N6 F1200S3000M3N7 G49I5Q5 [input spherical ...

  • Page 71

    S3000 – S4000 SERIES CNCProgramming Examples63PROG57 Toroid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-137.I140.Y-90.5J87.K45.Q30.N2 P1=160 [central diameter of ringN3 P2=35 [toroid diameterN4 P3=1 [pitchN5 [N6 G17N7 O1N...

  • Page 72

    S3000 – S4000 SERIES CNC64Programming ExamplesPROG58 Conical polygon (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $1M0X-137.I140.Y-90.5J87.N2 P1=8 [number of sidesN3 P2=10 [joint radiusN4 P3=75 [radius around figureN5 [N6 P20=0 ...

  • Page 73

    S3000 – S4000 SERIES CNCProgramming Examples65PROG59 Section profile ellipse (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-165.I175.Y-106.J111.K30.Q30.N2 [Section profile ellipseN3 ...

  • Page 74

    S3000 – S4000 SERIES CNC66Programming ExamplesPROG60 Pocket with chafers on the walls (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-36.3I42.Y-25.7J24.3K45.Q30.N2 ...

  • Page 75

    S3000 – S4000 SERIES CNCProgramming Examples67PROG61 Plane profile with double radius section (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-160.I182.Y-128.J90.5K30.Q30.N2 [Plane profile with double radius profiled sectionN3 G17N4 O1N5 T1...

  • Page 76

    S3000 – S4000 SERIES CNC68Programming ExamplesPROG62 Double crowning profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-243.I227.Y-191.J109.K45.Q30.N2 [Double crowning profile (R.300 on XZ andR.500 on YZ)N3 G17N4 O1N5 T1M6N6 ...

  • Page 77

    S3000 – S4000 SERIES CNCProgramming Examples69PROG63 Open tub with 3 sectioned sides (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-191.I209.Y-140.J116.K45.Q30.N2 [Programme for open tub with three sides that have different sectionsN3 [N4 G17N...

  • Page 78

    S3000 – S4000 SERIES CNC70Programming ExamplesPROG64 – 4 sectioned three-dimensional punch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-101.I134.Y-87.3J62.7K-45.Q30.N2 [Solid defined as plane profi...

  • Page 79

    S3000 – S4000 SERIES CNCProgramming Examples71PROG65 Sphere with 3 spherical ears (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-78.9I77.6Y-61.8J38.2K45.Q30.N2 [Sphere with 3 spherical earsN3 G17...

  • Page 80

    S3000 – S4000 SERIE CNC72Programming ExamplesPROG66 Solid defined by an open plane profile andan XY machining section profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-152.I318.Y-135.J165.K45.Q30.N2 G17N3 O1N4 T1M6N5 F1200S1500M3N6 [Programme to cr...

  • Page 81

    S3000 – S4000 SERIES CNCProgramming Examples73PROG67 Semicircular section solid defined by a profile onXY and by a profile on XZ (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-136.I177.Y-98.5J101.K-45.Q30.N2 [Programme to create a snakeN3 [that is a semicircular section...

  • Page 82

    S3000 – S4000 SERIE CNC74Programming ExamplesN29 P20=E2N30 P22=P22+90N31 G751TRSXP10ZP11YP21ROTX90 ROT YP22 ROTX-P12N32 L3 [section profileN33 P1=P1+1N34 E1=E31KP1N35 E2=E32KP1N36 P10=E1N37 P20=E2N38 P22=P22+90N39 G751TRSXP10ZP11YP21ROTX90 ROTYP22 ROTX...

  • Page 83

    S3000 – S4000 SERIES CNCProgramming Examples75PROG68 Automobile tyre rim die (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-332.I294.Y-202.J198.K15.Q50.N2 [Machining for an automobile tyre rim dieN3 G17N4 O1N5 ...

  • Page 84

    S3000 – S4000 SERIE CNC76Programming ExamplesPROG69 Plane profile with 3 different sections thatrepeat part of the profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $...

  • Page 85

    S3000 – S4000 SERIES CNCProgramming Examples77PROG70 Die for Selbox push-buttons repeated on alinear grid (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-191.I-34.4Y13.3...

  • Page 86

    S3000 – S4000 SERIE CNC78Programming ExamplesN61 G737N62 G42N63 G13Y0J180N64 G21I.5N65 G13X0J-90N66 G13Y-1J180 [height1 mmN67 G40N68 G738N69 Z10RN70 G32N71 L=3N72 Z10RN73 X0Y0RN74 Z2RN75 G736I.1X0Y0N76 G42K2N77 G13X-4J-90N78 ...

  • Page 87

    S3000 – S4000 SERIES CNCProgramming Examples79PROG71 Punch for Selbox (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-127.I139.Y-89.2J80.8K45.Q30.N2 [maleN3 [three-dimensional part with variable sectionsN4 F9000S1200M3N5 [use spherical cutter zeroed at radius c...

  • Page 88

    S3000 – S4000 SERIE CNC80Programming ExamplesN63 P1=43.17-18.04 [total cylinder head heightN65 P77=P1N66 [part with variable radiusesN67 [G761Y-P77Q2N68 G49IP40 [sperical cutter radiusN69 Z100RN70 X14.37Y54.17RN71 Z20RN72 P1=6.03 [initial radiusN73 P2=24....

  • Page 89

    S3000 – S4000 SERIES CNCProgramming Examples81PROG72 Conical slots repeated on a linear grid (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $1M0X-234.I235.Y-146.J154.N2 [Programme to repeat n. of conic or cylinder...

  • Page 90

    S3000 – S4000 SERIE CNC82Programming ExamplesPROG73 Grooved surface that links a radius to aprofile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-687.I684.Y-458.J418.K45.Q30.N2 [Grooved surface that links a radius to a profileN3 ...

  • Page 91

    S3000 – S4000 SERIES CNCProgramming Examples83PROG74 Grooved surface with delimiting profile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-17.4I17.3Y-16.J6.18K45.Q30.N2 [Grooved surface with delimiting profileN3 G17N4 O1N5 T1M6N6 F1000S2...

  • Page 92

    S3000 – S4000 SERIE CNC84Programming ExamplesPROG75 Surfaces defined by 3 grooves(CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-248.I65.1Y-58.J142.K45.Q30.N2 [3D surface created by the union of 3 grooved surfacesN3 G17N4 O1N5 T1M6N6 F1000S1200M3N7 [...

  • Page 93

    S3000 – S4000 SERIES CNCProgramming Examples85PROG76 Chamfer on a tube (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-93.4I94.5Y-106.J13.7K45.Q30.N2 [programme that creates a chamfer between ac...

  • Page 94

    S3000 – S4000 SERIE CNC86Programming ExamplesN33 X0Y0RN34 Z10RN35 P70=0 [start point angleN36 P14=P12N37 L=1N38 E9=G13E8JP14,E2K2N39 P50=E9,2N40 G751TRSZP50 ROTZP70 ROTX90N41 L10N42 P70=P70+P5N43 P14=P14+P13N44 E9=G13E8JP14,E2K2N45 P50=E9,2N46...

  • Page 95

    S3000 – S4000 SERIES CNCProgramming Examples87PROG77 Joint on a tube (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-75.1I81.7Y-58.5J41.7K45.Q40.N2 [Programme to create a joint between twoperpendicular holesN3 [one concave hole arranged leng...

  • Page 96

    S3000 – S4000 SERIE CNC88Programming ExamplesN55 P31=P31-P32N56 L1N57 G753N58 P20=P20+P0 [rotation incrementN59 P31=P31-P32N60 {P20<P21}L2N61 L=98N62 P21=P21+90N63 L=3N64 G751 ROTZP20 ROTX90N65 L1N66 P20=P20+P0 [rotation incrementN67 {P20&g...

  • Page 97

    S3000 – S4000 SERIES CNCProgramming Examples89PROG78 Semicircular channel on XZ (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-102.I196.Y-85.1J105.K-45.Q30.N2 [Programme to carry out semicircular channel on XZN3 [the channel has a variable radius in the circular sectionN...

  • Page 98

    S3000 – S4000 SERIE CNC90Programming ExamplesPROG79 Slots on a circumference with a spiralcutter (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-225.I245.Y-147.J153.K45.Q50.N2 [Programme to create slots on a circumfere...

  • Page 99

    S3000 – S4000 SERIES CNCProgramming Examples91PROG80 Spiral milled rectangle (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-156.I157.Y-102.J97.9K45.Q30.N2 [Finishing of a rectangle using a spiral cu...

  • Page 100

    S3000 – S4000 SERIE CNC92Programming ExamplesPROG81 Cylinder head (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-337.I358.Y-169.J275.K45.Q30.N2 [Programme to create a R 675 cylinder headN3 [starting from a R 329 external d...

  • Page 101

    S3000 – S4000 SERIES CNCProgramming Examples93PROG82 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 G17XYZN2 [Programme to arrange any profile on any o...

  • Page 102

    S3000 – S4000 SERIE CNC94Programming ExamplesPROG83 Union of two profiles by a 180° arch (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-90.5I97.3Y-59.7J60.3K45.Q50.N2 [N3 [Programme to unite two profiles (internal andexternal) with a 180 degree arch...

  • Page 103

    S3000 – S4000 SERIES CNCProgramming Examples95N54 E13=E11,E12N55 E14=E11,E12K2N56 E15=G10E14,G11E13N57 E16=E5,E15N58 P5=E16 [P5=X P6=YN59 P11=(SQR((P25-P20)*(P25-P20)+(P21-P26)*(P21-P26)))/2 [radiusN60 G32N61 L=1 [external profileN62 P60=-18N63 *1=G20X0...

  • Page 104

    S3000 – S4000 SERIE CNC96Programming ExamplesPROG84 Union of two profiles by means of a thirdprofile (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-114.I121.Y-74.7J75.3K45.Q50.N2 [N3 [Programme to unite two profiles together(external and internal) byN4 ...

  • Page 105

    S3000 – S4000 SERIES CNCProgramming Examples97N55 E14=E11,E12K2N56 E15=G10E14,G11E13N57 E16=E5,E15N58 P5=E16 [P5=X P6=YN59 P11=(SQR((P25-P20)*(P25-P20)+(P21-P26)*(P21-P26)))/2 [RADIUSN60 G32N61 L=1 [external profileN62 P60=-18N63 *1=G20X0Y0I-50N64 G41N6...

  • Page 106

    S3000 – S4000 SERIE CNC98Programming ExamplesPROG85 Six cams (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-17.6I21.6Y-11.5J13.6K25.Q30.N2 [Programme that arranges a section profile on a profiledeveloped along aN3 [circumference (6...

  • Page 107

    S3000 – S4000 SERIES CNCProgramming Examples99PROG86 Three cams (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-149.I165.Y-105.J95.1K25.Q30.N2 [Programme that arranges a profile section along acircumferenceN3 [N4 [the cutter must b...

  • Page 108

    S3000 – S4000 SERIES CNC100Programming ExamplesN30 G751 ROTX90 ROTYP9N31 L2N32 P5=P5+1N33 P7=P7+P6N34 E1=E35KP5N35 P10=E1N36 {P10=0}L50N37 P9=360/(P1/P10)N38 G751 ROTX90 ROTYP9N39 G754N40 L2N41 G753N42 P5=P5+1N43 P7=P7+P6N44 E1=E35KP5N...

  • Page 109

    S3000 – S4000 SERIES CNCProgramming Examples101PROG87 Programme to create a vacuum cleanernozzle (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-248.I64.9Y-58.7J141.K45.Q30.N2 [Programme to create a nozzle for avacuum cleanerN3 [N4...

  • Page 110

    S3000 – S4000 SERIES CNC102Programming ExamplesN59 {P10<P99}L11N60 L=21N61 X0Y30RN62 [N63 P10=0 [point counterN64 P18=33N65 P2=P0N66 L=12N67 L9 [point calculationN68 G751 TRSYP21 ROTX90N69 L5 [machiningN70 {P10>=P99}L22N71 L9 [point calc...

  • Page 111

    S3000 – S4000 SERIES CNCProgramming Examples103PROG88 Small parametrical tubs repeated at angles(CNC S3040GE/S3045/S3045P)(CNC S4060D/S4040GE/S4045/S4045P)N1 [profile with different sections created parametricallyN2 [and repeated 6 times with an angular rotationN3 $2X-300Y-2...

  • Page 112

    S3000 – S4000 SERIES CNC104Programming ExamplesN63 P34=E26N64 E24=E24Q-7.5N65 E26=E20,E24K2N66 P32=E26N67 E23=G10XP34YP35,G11XP32YP33N68 E23=E23Q-P40N69 E22=G10XP32Y-P33,G11XP34Y-P35N70 E22=E22Q-P40N71 G41K2N72 E20N73 G21IP12N74 E22N75 G21IP30...

  • Page 113

    S3000 – S4000 SERIES CNCProgramming Examples105PROG89 Punch with operating field limitations (CNC S3045/S3045P) ...

  • Page 114

    S3000 – S4000 SERIES CNC106Programming ExamplesPROG90 Tube intersection (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-42.9I35.6Y-29.6J20.5K45.Q30.N2 [intersection of profiles with different sections to createN3 [a tube rack toolN4 G17N5 ...

  • Page 115

    S3000 – S4000 SERIES CNCProgramming Examples107N32 G40N33 G737N34 G41N35 G20X-13Y0N36 G13X0Y0I13J-90N37 G13J-30N38 G13Y-13.2J0N39 G13X0Y0I13J30N40 G13J90N41 G20X13Y0N42 G40N43 G738N44 Z10RN45 X0Y-25.6RN46 G736I.5Q2N47 G42N48 ...

  • Page 116

    S3000 – S4000 SERIES CNC108Programming ExamplesPROG91 Three-dimensional push-button (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-15.I16.3Y-12.J7.98K45.Q30.N2 [punch for a three-dimensional push-buttonN3 G17N4 O1N5 T1M6N6 F1000S2000M3N7 G49I0Q0 [i...

  • Page 117

    S3000 – S4000 SERIES CNCProgramming Examples109PROG92 Cogs (CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-62.1I63.2Y-52.8J27.2K45.Q30.N2 [grooved surfaces to create 6 cogs around a cyilinderN3 G17N4 O1N5 T1M6N6 F1000S2000M3N7 G49I0Q0 [input desired cutt...

  • Page 118

    S3000 – S4000 SERIES CNC110Programming Examples PROG93 Tub with different depths(CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-57.8I67.4Y-52.7J27.3K-45.Q30.N2 [rectangular tub with two sections to obtain differentdepthsN3 G17N4 O1N5 T1M6N6 F2000S4000M13N7 ...

  • Page 119

    S3000 – S4000 SERIES CNCProgramming Examples111PROG94 Hourglass(CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-156.I158.Y-111.J89.9K45.Q30.N2 [revolution solid to create an hourglassN3 G17N4 O1N5 T1M6N6 F1000S1000M3N7 Z100RN8 X-160Y-40RN9 Z...

  • Page 120

    S3000 – S4000 SERIES CNC112Programming ExamplesPROG95 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 pocketN2 [conical ( or cylindrical) pocket that is sphericalat the top and b...

  • Page 121

    S3000 – S4000 SERIES CNCProgramming Examples113N58 P20=P4*TAN(P6/2)N59 P21=-P4N60 P22=0N61 [P22= initial angleN62 [P14=radius plus machining allowanceN63 P14=P4+P11N64 [repetitive cycleN65 L=99N66 P22=P22+P18N67 P30=P20-P14*SINP22N68 P31=P21+P14*COS...

  • Page 122

    S3000 – S4000 SERIES CNC114Programming ExamplesPROG96 Parametric conical punch(CNC S3040/S3040GE/S3045/S3045P)(CNC S4060D/S4040/S4040GE/S4045/S4045P)N1 $2X-157.I157.Y-82.5J118.K45.Q30.N2 [PARAMETRIC CONICAL PUNCHN3 [conical (or cylindrical) punch that is spherical at thetop an...

  • Page 123

    S3000 – S4000 SERIES CNCProgramming Examples115N56 P18=P6/P16N57 P16=P16-1N58 [P20 P21 radius centre position in relation to cornerN59 P20=P4*TAN(P6/2)N60 P21=-P4N61 P22=0N62 [P22= initial angleN63 [P14=radius minus machining allowanceN64 P14=P4-P11N65 ...

  • Page 124

    S3000 – S4000 SERIES CNC116Programming ExamplesPROG97 Grooved between 2 specular profiles(CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-203.I110.Y-69.8J130.K45.Q30.N2 [grooved surfaces achieved by uniting 2 specular profiles on ZN3 G17N4 O1N5 T1M6N6 F1200S200...

  • Page 125

    S3000 – S4000 SERIES CNCProgramming Examples117PROG98 Parametric conical punch on acircumference (CNC S3045/S3045P) (CNC S4060D/S4045/S4045P)N1 $2X-394.I389.Y-242.J258.K45.Q30.N2 [repetition of parametrical punch on a circumferenceN3 G17N4 O1N...

  • Page 126

    S3000 – S4000 SERIES CNC118Programming ExamplesN30 ZP21RN31 P22=INT(P6/P8+0.999) [ calculates number of cutsN32 P8=P6/P22 [ if necessary reduces cut incrementN33 P22=P22-1 [ subtracts a cut in that the firstN34 [ is carried out previous to the recallN35 P23=...

  • Page 127

    S3000 – S4000 SERIES CNCProgramming Examples119PROG99 Parametric conical punch on a grid(CNC S3045/S3045P)(CNC S4060D/S4045/S4045P)N1 $2X-338.I445.Y-80.1J420.K45.Q30.N2 [repetition of a parametric punch on a linear gridN3 G17N4 O1N5 T1M6N6 F1000S1000M3N7 ...

  • Page 128

    S3000 – S4000 SERIES CNC120Programming ExamplesN32 P2=P2/2 [halve X axis dimensionsN33 P20=P1+P0+TANP7*P6+2 [X quote for initial positioningN34 Z100RN35 XP20Y0R [ initial positioningN36 P21=P5+2 [ safety quoteN37 ZP21RN38 P22=INT(P6/P8+0.999) [ calculates num...

x