Professional Documents
Culture Documents
NCT
Milling Machine and Machining Center Controls
Collection of Part Program Examples
Produced and developed by NCT Ipari Elektronikai kft.
H1148 Budapest Fogarasi út 7
: B.O. Box: H1631 Bp. pf.: 26
F Phone: (+36 1) 467 63 00
F Fax:(+36 1) 363 6605
E-mail: nct@nct.hu
Home page: www.nct.hu
© Copyright NCT 06.07.19
3
Table of Contents
06.07.19
4
Collection of Part Program Examples
00
O1 X
Diagram 1
%O7011(1.1)
N100 T1
N110 G54 G0 X0 Y-100 The first block contains the selection of tool
N120 G43 Z50 H1 needed. The second block includes
N130 S1000 M3 M8 orientation in plane X-Y in the appropriate
N140 G0 Z5
N150 G1 Z-10 F20 coordinate system. The third block is
N160 G1 X0 Y-50 F50 responsible for taking tool length
N170 G3 J50 compensation into account. Other program
N180 G1 X0 Y-100
N190 G0 Z100 examples of the collection is shown with
N200 M30 similar program start, therefore they are not
% discussed further on. The program start also
contains a percent symbol as well as four
digits after letter O, which is the program
identifier. The program is finished also with
a percent symbol. These characters are to be
indicated only when programming on
external device, otherwise the control creates
them automatically. Tool path definition is
started from the fourth block. Programming
of the whole circle is done with the help of
address J, which is the incremental definition
of circle center according to circle start
position. Program is closed with code M30.
5
Collection of Part Program Examples
0 X
10
O
Diagram 2
6
Collection of Part Program Examples
00 X
O1
Diagram 3
7
Collection of Part Program Examples
0 X
10
O
Diagram 4
8
Collection of Part Program Examples
00 X
O1
Diagram 5
9
Collection of Part Program Examples
00 X
O1
Diagram 6
10
Collection of Part Program Examples
0
R4
00 X
O1
Diagram 7
11
Collection of Part Program Examples
100
X
200
Diagram 8
12
Collection of Part Program Examples
100
X
200
Diagram 9
13
Collection of Part Program Examples
100
X
200
Diagram 10
14
Collection of Part Program Examples
100
X
200
11. ábra
15
Collection of Part Program Examples
Y R4 0
100
X
200
12. ábra
16
Collection of Part Program Examples
100
Y
200
Diagram 13
17
Collection of Part Program Examples
50
50
100
Y
X
200
Diagram 14
18
Collection of Part Program Examples
R6
20
X
30
Diagram 15
19
Collection of Part Program Examples
40
30
Y
30
X
100
Diagram 16
20
Collection of Part Program Examples
X
100
Diagram 17
21
Collection of Part Program Examples
X
100
Diagram 18
22
Collection of Part Program Examples
10
X
100
Diagram 19
23
Collection of Part Program Examples
10
10
X
100
Diagram 20
24
Collection of Part Program Examples
°
10
Y
0 X
R5
Diagram 21
25
Collection of Part Program Examples
10°
0 X
R5
Diagram 22
26
Collection of Part Program Examples
°
10
Y
0 X
R5
Y
X
Diagram 23
27
Collection of Part Program Examples
X
100
24. ábra
28
Collection of Part Program Examples
X
100
Diagram 26
29
Collection of Part Program Examples
X
100
Diagram 27
30
Collection of Part Program Examples
75
100
R505
4
R1
R185
Diagram 28
%O7081(8.1)
N100 G54 G90 G17 G0
N110 T1
N120 G43 Z50 H1
N130 S1000 M3
N140 G0 X0 Y0
N150 G0 Z2
N160 G1 Z-19
N170 G0 X0 Y0
N180 G41 G1 X17.5 Y-20 D1
N190 G3 X37.5 Y0 R20
N200 G3 XI-505 YI505 R505 ,R14
N210 G3 I0 J-135 R185 Q-1 ,R14
N220 G3 I467.5 J0 R505 Q-1 ,R14
N230 G3 I0 J135 R185 Q-1 ,R14
N240 G3 X37.5 Y0 I-467.5 J0 R505 Q-1
N250 G3 X17.5 Y20 R20
N260 G1 G40 X0 Y0
N270 Z50
N280 M30
%
31
Collection of Part Program Examples
X
200
R460
R200
R18
Diagram 29
%O7082(8.2)
N100 G54 G90 G17 G0
N110 T1
N120 G43 Z50 H1
N130 S1000 M3
N140 G0 X0 Y0
N150 G0 Z2
N160 G1 Z-19
N170 G0 X90 Y-70
N180 G42 G1 X40 Y-50 D1
N190 G1 Y0
N200 G3 XI-460 YI460 R460 ,R18
N210 G3 I0 J-100 R200 Q-1 ,R18
N220G3 I420 J0 R40 Q-1 ,R18
N230 G3 I0 J100 R200 Q-1 ,R18
N240 G3 X40 Y0 I-420 J0 R460 Q-1
,R18
N260 G1 X40 Y50
N270 G1 G40 X90 Y70
N280 Z50
N290 M30
%
32
Collection of Part Program Examples
262
Y
R31
R5
X
R9
57
22
R11 22
1
R1
Diagram 30
33
Collection of Part Program Examples
40°
80°
Diagram 31
34
Collection of Part Program Examples
Y
R50
X
R45
R5 R5
Diagram 32
35
Collection of Part Program Examples
Y
R50
X
R45
R5 R5
Diagram 33
36
Collection of Part Program Examples
Diagram 34
37
Collection of Part Program Examples
Diagram 35
In case the start position of the needed curve is not the origin or if its amplitude is not 1 unit or
its length is not 360 mm, line N180 can be modified as follows:
N180 G1 X[A+[#1*B]] Y[C+[#2*D]] F100,
where A and C are the offset values (X;Y), B is the length and D is the amplitude.
38
Collection of Part Program Examples
39
Collection of Part Program Examples
Diagram 36
40
Collection of Part Program Examples
Diagram 37
41