Navigation

  • Page 1

    NCT®Milling Machine and Machining Center ControlsCollection of Part Program Examples

  • Page 2

    Produced and developed by NCT Ipari Elektronikai kft.H1148 Budapest Fogarasi út 7 : B.O. Box: H1631 Bp. pf.: 26F Phone: (+36 1) 467 63 00 F Fax:(+36 1) 363 6605E-mail: nct@nct.huHome page: www.nct.hu

  • Page 3

    3 © Copyright NCT 06.07.19The Publisher reserves all rights for thecontents of this Manual. No reprinting, evenin extracts, is permissible unless our writtenconsent is obtained. The text of this Manualhas been compiled and checked with utmostcare, yet we assume no liability for ...

  • Page 4

    4Table of Contents1 Programming Circular Interpolation with Positioning ............................. 52 Programming Circular Interpolation with Contour Tracking ........................ 63 Programming Circular Interpolation with Positioning in Tangential Direction .......... 74 Programming Circu...

  • Page 5

    Collection of Part Program Examples5YXO100Diagram 11 Programming Circular Interpolation with Positioning%O7011(1.1)N100 T1N110 G54 G0 X0 Y-100N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 X0 Y-50 F50N170 G3 J50N180 G1 X0 Y-100N190 G0 Z100N200 M30%The first block contains the se...

  • Page 6

    Collection of Part Program Examples6YXO100Diagram 22 Programming Circular Interpolation with Contour Tracking%O7012(1.2)N100 T1N110 G54 G0 X0 Y-100N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G42 X0 F50 D1N170 G3 J-50N180 G1 G40 Y-100N190 G0 Z100N200 M30%The difference from pr...

  • Page 7

    Collection of Part Program Examples7YO100XDiagram 33 Programming Circular Interpolation with Positioning in TangentialDirection%O7013(1.3)N100 T1N110 G54 G0 X-50 Y-50N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 X0 F50N170 G3 J50N180 G1 X50N190 G0 Z100N200 M30%The difference fr...

  • Page 8

    Collection of Part Program Examples8YXO100Diagram 44 Programming Circular Interpolation with Contour Tracking%O7014(1.4)N100 T1N110 G54 G0 X-70 Y-70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G42 X-50 Y-50 D1 F50N170 G1 X0N180 G3 J50N190 G1 X50N200 G1 G40 X70 Y-70N210 G0 Z100N22...

  • Page 9

    Collection of Part Program Examples9YXO100XDiagram 55 Circular Interpolation on Internal Contour%O7021(2.1)N100 T1N110 G54 G0 X0 Y0N120 G43 Z0 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 X0 Y50 F50N170 G3 J-50N180 G1 X0 Y0N190 G0 Z100N200 M30%In this case, as in example 1.1, the problemar...

  • Page 10

    Collection of Part Program Examples10YXO100Diagram 66 Inner Circular Interpolation with Contour Tracking%O7022(2.2)N100 T1N110 G54 G0 X0 Y0N120 G43 Z0 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G41 X0 Y50 F50 D1N170 G3 J-50N180 G1 G40 X0 Y0N190 G0 Z100N200 M30%Only G41-G42 change in rela...

  • Page 11

    Collection of Part Program Examples11YXR40O100XDiagram 77 Programming Inner Circular Interpolation with Positioning in TangentialDirection%O7023(2.3)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G41 X40 Y10 D1 F50N170 G3 X0 Y50 R40N180 G3 J-50N190 G3 X-40 Y...

  • Page 12

    Collection of Part Program Examples12YX100200Diagram 88 Programming Straight Contour%O7031(3.1)N100 T1N110 G54 G0 X-120 Y-70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 X-100 Y-50 F50N170 G1 X100N180 G1 Y50N190 G1 X-100N200 G1 Y-50N210 G1 X-120 Y-70N220 G0 Z100N230 M30%Round-m...

  • Page 13

    Collection of Part Program Examples13YX100200Diagram 99 Programming Straight Contour with Contour Tracking%O7032(3.2)N100 T1N110 G54 G0 X-120 Y-70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G42 X-100 Y-50 F50 D1N170 G1 X100 N180 G1 Y50N190 G1 X-100N200 G1 Y-50N210 G1 G40 X-12...

  • Page 14

    Collection of Part Program Examples14YX100200Diagram 1010 Programming Zero Circles in Case of Contour Tracking%O7033(3.3)N100 T1N110 G54 G0 X-120 Y-70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G42 X-100 Y-50 F50 D1N170 G1 X100 ,R0N180 G1 Y50 ,R0N190 G1 X-100 ,R0N200 G1 Y-50N...

  • Page 15

    Collection of Part Program Examples15YX10020011. ábra11 Contour Tracking with Rounding%O7034(3.4)N100 T1N110 G54 G0 X-120 Y-70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G42 X-100 Y-50 F50 D1N170 G1 X100 ,R10N180 G1 Y50 ,R10N190 G1 X-100 ,R10N200 G1 Y-50 ,R10N210 G1 X-70N220...

  • Page 16

    Collection of Part Program Examples16R40YX10020012. ábra12 Rectangle with Inner Contour Tracking and with Positioning in TangentialDirection%O7041(4.1)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G41 X80 Y10 F50 D1N170 G3 X40 Y50 R40N180 G1 X-100 N190 ...

  • Page 17

    Collection of Part Program Examples17YX100200Diagram 1313 Programming Optional Contour with Contour Tracking%O7051(5.1)N100 T1N110 G54 G0 X-40 Y-40N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G42 X0 Y0 F50 D1N170 G1 X50 N180 G1 Y30N190 G2 X100 R25N200 G1 Y0N210 G1 X200 ,C10N22...

  • Page 18

    Collection of Part Program Examples18YX1002005050Diagram 1414 Definition of Optional Contour with Inner Contour Tracking%O7052(5.2)N100 T1N110 G54 G0 X160 Y50N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G41 X150 Y100 I-1 J1 F50 D1N170 G1 X0 ,R20N180 G1 Y0N190 G1 X50 N200 G1 Y3...

  • Page 19

    Collection of Part Program Examples19YX2030R6Diagram 1515 Optional Inner Contour (Subprogram)%O7053(5.3)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 Z5N150 G1 Z-10 F20N160 G1 G41 X-6 F50 D1N170 G3 X0 Y-6 R6N180 G1 X9N190 G3 Y6 R6 N200 G1 X6N210 G1 Y14N220 G3 X-6 R6N230 G1 Y6N24...

  • Page 20

    Collection of Part Program Examples20YX100303040Diagram 1616 Subprogram Technique with Zero Position Offset%O7061(6.1)N100 T1N110 G54 N120 G43 Z50 H1N130 S1000 M3 M8N140 G52 X30 Y10N150 M98 P7053N160 G52 X70 Y10N170 M98 P7053N180 G52 X30 Y40N190 M98 P7053N200 G52 X70 Y40N210 M98 P7053N220 G52 X30...

  • Page 21

    Collection of Part Program Examples21YX100Diagram 1717 Use of Increment with Subprogram Call%O7062(6.2)N100 T1N110 G54 N120 G43 Z50 H1N130 S1000 M3 M8N140 G52 X50 Y50N150 G51 X0 Y0 P2N160 M98 P7053N170 G50 X0 Y0N180 G52 X0 Y0N190 G0 Z100N200 M30%G52 is responsible for activating localcoordinate-s...

  • Page 22

    Collection of Part Program Examples22YX100Diagram 1818 Programming Increment around Optional Position%O7063(6.3)N100 T1N110 G54 N120 G43 Z50 H1N130 S1000 M3 M8N140 G52 X50 Y50N150 G51 X0 Y-40 P2N160 M98 P7053N170 G50 X0 Y0N180 G52 X0 Y0N190 G0 Z100N200 M30%The specified coordinates must be given ...

  • Page 23

    Collection of Part Program Examples23YX10010Diagram 1919 Programming a Series of Bores%O7071(7.1)N100 T1N110 G54 G0 X0 Y50N120 G43 Z50 H1N130 S1000 M3 M8N140 G81 XI10 Y50 R2 Z-10 L9N150 G80N160 G0 Z100N170 M30%The programming of bores 10mm apart fromeach other is defined incrementally withrepetit...

  • Page 24

    Collection of Part Program Examples24YX1001010Diagram 2020 Programming Bore Series%O7072(7.2)N100 T1N110 G54 G0 X0 Y50N120 G43 Z50 H1N130 S1000 M3 M8N140 G81 XI10 Y50 R2 Z-10 L9N150 G80N160 G0 X50 Y0N170 G81 X50 YI10 R2 Z-10 L4 N180 G80N190 G0 X50 Y50N200 G81 X50 YI10 R2 Z-10 L4N210 G80N220 G0 Z1...

  • Page 25

    Collection of Part Program Examples25YXR5010°Diagram 2121 Programming Center Circle%O7073(7.3)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G16 G0 X50 Y-10N150 G81 X50 YI10 R2 Z-10 L36N160 G80 G15N170 G0 Z100N180 M30%Programming center circle differs from boreseries in the use of p...

  • Page 26

    Collection of Part Program Examples26YXR5010°Diagram 2222 Programming Center Circle Part%O7074(7.4)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G16 G0 X50 Y-10N150 G81 X50 YI10 R2 Z-10 L10N160 G80 G15N170 G0 Z100N180 M30%Programming center circle part differs fromprogramming cente...

  • Page 27

    Collection of Part Program Examples27YXR5010°YXDiagram 2323 Programming Center Circle to Optional Position%O7075(7.5)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G52 X60 Y60N150 G16 G0 X50 Y-10N160 G81 X50 YI10 R2 Z-10 L36N170 G80 G15 N180 G52 X0 Y0N190 G0 Z100N200 M30%In this cas...

  • Page 28

    Collection of Part Program Examples28YX1001024. ábra25 Programming Bore Net with the Help of Subprogram%O7077(7.7)N100 T1N110 G54 G0 X10 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 M98 P7076 L9N150 G0 Z100N160 M30%This task can be accomplished in moredifferent ways. The simplest method is toprogram ho...

  • Page 29

    Collection of Part Program Examples29YX10010Diagram 2626 Programming Bore Net with Cycle%O7078(7.8)N100 T1N110 G54 G0 X10 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 #1=1N150 WHILE[#1LE9] DO1N160 G0 X10 Y0N170 G81 YI10 R2 Z-10 L9N180 G80N190 G52 XI10 Y0N200 #1=#1+1N210 END1N220 G52 X0 Y0 N230 G0 Z100N2...

  • Page 30

    Collection of Part Program Examples30YX10010Diagram 2727 Programming Bore Net with Two Cycles Embedded in Each Other %O7079(7.9)N100 T1N110 G54 G0 X10 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 #1=10N150 WHILE[#1LE90] DO1N140 #2=10N150 WHILE[#2LE90] DO2N170 G81 X#1 Y#2 R2 Z-10N200 #2=#2+10N210 END2N20...

  • Page 31

    Collection of Part Program Examples31YX10075R505R185R14Diagram 2828 Automatic Geometric Calculation between Circle Arcs (Inner Contour)%O7081(8.1)N100 G54 G90 G17 G0N110 T1N120 G43 Z50 H1N130 S1000 M3N140 G0 X0 Y0N150 G0 Z2N160 G1 Z-19N170 G0 X0 Y0N180 G41 G1 X17.5 Y-20 D1N190 G3 X37.5 Y0 R20N200...

  • Page 32

    Collection of Part Program Examples32YXR46020080R18R200Diagram 2929 Automatic Geometric Calculation between Circle Arcs (Outer Contour)%O7082(8.2)N100 G54 G90 G17 G0N110 T1N120 G43 Z50 H1N130 S1000 M3N140 G0 X0 Y0N150 G0 Z2N160 G1 Z-19N170 G0 X90 Y-70N180 G42 G1 X40 Y-50 D1N190 G1 Y0N200 G3 XI-46...

  • Page 33

    Collection of Part Program Examples33YXR5R31R9262R112222R1157Diagram 3030 Automatic Geometric Calculation between Circle Arcs (Inner Contour)%O7083(8.3)N100 G17 G0 G90 G94N110 T1N120 G0 X0 Y0N130 G43 Z50 H1N140 S1000 M3N150 G0 Z-50N160 G0 X0 Y-35N170 G1 G41 Y-46 D1N180 G3 X11 Y-35 R11N190 G1 Y-11...

  • Page 34

    Collection of Part Program Examples3440°80°Diagram 3131 Programming Cogging - Subprogram%O7091(9.1)N100 G1 X0 Y50N110 G3 X-4.587 Y49.789 R50 N120 G3 X-8.846 Y46.468 R5N130 G2 X-12.206 Y43.313 R5N140 G3 X-15.391 Y42.286 R45N150 G3 X-18.490 Y41.026 R45N160 G2 X-23.093 Y41.282 R5N170 G3 X-28.490 Y...

  • Page 35

    Collection of Part Program Examples35YXR50R5R45R5Diagram 3232 Programming Cogging - Main Program%O7092(9.2)N100 T1N110 G54 G0 X40 Y70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 G42 X30 Y50 D1N150 G1 X0 Y50 N180 M98 P7091 L9N220 G69N230 G1 X-30 Y50N240 G0 G40 X-40 Y70N250 G0 Z100N260 M30%In this progra...

  • Page 36

    Collection of Part Program Examples36YXR50R5R45R5Diagram 3333 Programming Cogging with a Program%O7093(9.3)N100 T1N110 G54 G0 X40 Y70N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 G42 X30 Y50 D1N150 G1 X0 Y50 N160 #1=0N170 WHILE[#1LT9] DO1N180 G68 X0 Y0 R[#1*40]N190 G1 X0 Y50N200 G3 X-4.587 Y49.789 R50 N...

  • Page 37

    Collection of Part Program Examples37Diagram 3434 Programming Center Circle with Mirroring - Subprogram%O7101(10.1)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G52 X10 Y10N150 M98 P7102N160 G51.1 Y0N170 M98 P7102N180 G51.1 X0N190 M98 P7102N200 G50.1 Y0N210 M98 P7102N220 G50.1 X0N23...

  • Page 38

    Collection of Part Program Examples38Diagram 3536 Programming Macro - Sinusoidal Curve%O7111(11.1)N100 T1N110 G0 G90 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G1 Z-10N150 #1=0N160 WHILE[#1LE360] DO1N170 #2=SIN#1N180 G1 X#1 Y#2 F100N190 #1=#1+0.1N200 END1N210 G0 Z50N220 M30%In this example programm...

  • Page 39

    Collection of Part Program Examples3937 Programming Macro - Circular Milling, Cylindrical Interpolation%O7112(11.2)N100 T1N110 G43 Z50 H1N120 S1000 M3 M8N130 G0 X50 Y0N140 #1=0N150 WHILE[#1LE360] DO1N160 #2=50*SIN[#1]N170 #3=50*SIN[#1]N180 G1 X#2 Y#3 Z[50-#1]N190 #1=#1+1N200 END1N210 G0 Z50N220 M...

  • Page 40

    Collection of Part Program Examples40Diagram 3638 Programming Macro - Hemisphere%O7118(11.8)N100 T1N110 G54 G0 X0 Y0N120 G43 Z50 H1N130 S1000 M3 M8N140 G0 X-50 Y-50 Z0N150 #1=-50N160 WHILE[#1LE50] DO1N170 #2=-50N180 WHILE[#2LE50] DO2N190 #3=0N200 IF[[[#1*#1]+[#2*#2]]GT1600] GOTO220N210 #3=SQRT[16...

  • Page 41

    Collection of Part Program Examples41Diagram 3739 Programming Macro - Hemisphere Creation%O7119(11.9)N100 POPEN31N110 DPRNT[O7120(FELGOMB)]N120 DPRNT[T1]N130 DPRNT[G54 G0 X-50 Y-50]N140 DPRNT[G43 Z50 H1]N150 DPRNT[G90 G01 S1000 M3 M8 F1000]N160 #1=-50N170 WHILE[#1LE50] DO1N180 #2=-50N190 WHILE[#2...

  • Page 42

x