Mill Programming ManualEN V70r
Mill Programming ManualEN V70r
SYNTEC
MILL MACHINE PROGRAMING
MANUAL
By:SYNTEC
Data:2001/07/01
Ver:7.0
-1-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
版本更新記錄
項次 更改內容紀錄 更改日期 作者 更改後版本
01 初版定稿 2001/07/01 V70
-2-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Menu
一. G FUNCTION DESCRIPTION 5
-3-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
-4-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
-5-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
(mm/minrev.)
Problemmable mirror Constant linear velocity
G50.1 G96
image cancel control on surface
Programmable mirror Constant linear velocity
G51.1 G97
image control on surface cancel
Local coordinate system Return to initial point in
G52 G98
setting canned cycle
Machine coordinate Return to R point in
G53 G99
system setting canned cycle
Workpiece coordinate
G54 G134 Circumference hole cycle
system 1 selection
Workpiece coordinate Angular strainght hole
G59 G135
system 6 selection cycle
G61 Exact stop mode G136 Arc typr hole cycle
G64 Cutting mode G137.1 Chess type hole cycle
※SYNTEC 900M G code use RS274D standards ,and the only difference with
FANUC 0M is G70,G71 G20,G21
-6-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G code drscription
1.2.1 G00:POSITIONING
command form:
G00 X Y Z ;
X、Y、Z:specified point
description:
each axles move to appointed point in no interpolation status,
X、 Y、 Z is the final position, use G90/G91 to design absolute
or increment value。
<notice>: the movement mode can decide by parameter #411
(0 : linear , 1 : each axle move in max speed
independently)
PIC:
Y
End point
20
start point
20
Program
20 70 X
zero point
Program description:
-7-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
X、Y、Z:specified point
F:speed of tool feed (feed rate)(mm/min)
description:
G01 do straight interpolation , and it depends on working
program, it can use G90/G91 to decide absolute or incremant
mode,use the speed of tool feed that ”F” provide,to appointed
position。
Example one :
Y
End point
20
Start point
20
Program 20 70 X
zero point
-8-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Y 20 35
P1(0,38) P2 P3
P1
35
Thickness 10mm
P4
10
P0(0,0) P5(45,0) X
Program description:
1.absolute way:
N001 G00 X0.0 Y0.0 Z10.0;//positioning to above of P0
N002 G90 G01 Z-10.0 F1000;//straingh interpolation to bottom of workpice,speed
1000mm/min
N003 Y38.0;//P0 Æ P1
N004 X20.0 Y45.0;//P1Æ P2
N005 X55.0;//P2 Æ P3
N006 Y10.0;//P3 Æ P4
N007 X45.0 Y0.0;//P4 Æ P5
N008 X0.0;//P5 Æ P0
N009 G00 Z10.0;//positioning back to above of P0
N010 M30;//program end
2.increment way
N001 G00 X0.0 Y0.0 Z10.0;//positioning to above of P0
N002 G91 G01 Z-20.0 F1000;//straingh interpolation to bottom of workpice,speed
1000mm/min
N003 Y38.0;//P0 Æ P1
N004 X20.0 Y7.0;//P1Æ P2
N005 X35.0;//P2 Æ P3
N006 Y-35.0;//P3 Æ P4
N007 X-10.0 Y-10.0;//P4 Æ P5
N008 X-45.0;//P5 Æ P0
N009 G00 Z20.0;//positioning back to above of P0
N011 M30;//program end
-9-
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
(1). X-Y plane circular interpolation:
G02 R
G17 X Y F ;
G03 I J_
X、 Y、 Z: specified point
I、 J、 K: the vector value that starting point of arc to the
centerof a circle(centerof a circle- starting point)
R: radius of arc
F: feed rate
G90/G91 decide absolute or increment
Description:
G02 、 G03 do circular interpolation according to appointed
plane 、 coordinate system 、 size of arc and speed of
interpolation, and the rotate direction decide by G02(CW)、
G03(CCW)。 Description of the command format as below:
- 10 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
example :
X Z X
G17 G18 G19
2.I 、 J 、 K difinition :
Stast position
End position
Y Z Z J K
End position Center
Center
Center
K
J I
I
Start position End position
Start positin
X X Y
a. arc of XpYp plane b. arc of ZpXp plane c. arc of YpZp plane
- 11 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
3.how to use R :
(1). When θ ≦ 180 degree, R is positive。
G02
X__ Y__ R25.0;
G03
(2). When 180 degree< θ < 360 degree, R is negative。
G02
X__ Y__ R - 25.0;
G03
(3). When θ =360 degree, only use I 、 J 、 K 。
Center #2
Start point
Center #1
α>180
α≦180
起點
Starting point
2000
R=3162 Center -1000
of circle
圓心
certered
-3000
X
1500 5500
- 12 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Starting point
X
End point 1000 2000
- 13 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
(1).
G02 R
G17 X Y Z F ;
G03 I J
- 14 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
※example: Z
Y
R1000
1000
F600
Start point
X
Program description:
G17 G03 X0.0 Y1000.0 R1000.0 Z900.0 F600;
// synchronously with arc of XpYp plane(CCW),do helical interpolation with feed
rate 600mm/min
- 15 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
1.2.4 G04:Dwell
command form:
X
G04 ;
P
Program example:
G04 X2500; //delay 2.5 sec
G04 X2.5; //delay 2.5 sec
G04 P2500; //delay 2.5 sec
G04 P2.5; //delay 2 sec(decimal point not permitted)
- 16 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Description:when cut the corner,because tool moves too fast or servo system
delays,tool can not cut the exact shape of corner,but when you need to
cut high precision rectangular,you can use G09 or G61 to make it,it
slow down the tool when approach to corner,when reach to the specified
position(in CNC parameter range),it will run the next block。G09 exact
stop only effected in one block which has G09;G61 exact stop effected
each cutting command (G01~G03) after G61,until G62 or G63 or G64
is specifed。
Example:
Position check
Y
Next block
path with G09/G61
tool
front block
- 17 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
L10
L11
G10 P__ R__ ;
L12
L13
description:
G10 command: it can directly use program command to enter
tool compensation value。
example :
Reference
position
OFSG
OFSW
- 18 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
Description: start polar coordinate mode in first line, G16 for polar
coordinate command start , G15 for polar coordinate
command cancel , it can use polar coordinate mode to
enter position(radius and angle), G90/G91 can specify in
it 。 First address is radius , second address is angle 。
Absolute or increment is decided by G90 or G91, G90 is
absolute,G91 is increment,in absolute mode,the increase
of radius or angle from origin point;in increment mode,
angle or radius total from the last radius or angle。
- 19 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
example :
Angle Angle
Actual position Actual position
Command point
Command point
Angle
Radius Radius
Angle
- 20 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Program example :
120 Y
First hole
Thickness 10 mm
120° 100
120°
130
Second Third
hole hole
1. absolute command :
N001 T1 S1000 M03;
//NO.1 tool(diameter 10 mm drill), spindle 1000rpm (CW)
N002 G17 G90 G16;
//XpYp plane, absolute mode, start polar coordinate mode
N003 G99 G81 Z-12.0 R2.0 F600 K0;
//do drilling cycle, deepth 12mm, feedrate 600mm/min, back to
R point when finish
N004 X100.0 Y90.0;
//specified a distance 100mm, angle 90 degree(first hole)
N005 Y210.0;
//specified a distance 100mm and angle 210 degree, from the
origin point(second hole)
N006 Y330.0;
//specified a distance 100mm and angle 330 degree, from the
origin point(third hole)
N007 G15 G80 M05;
//polar coordinate mode cancel, cycle cancel, spindle stop
N008 M30; //program end
- 21 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
2. increment command :
N001 T1 S1000 M03;
// NO.1 tool(diameter 10 mm drill), spindle 1000rpm (CW)
N002 G17 G90 G16;
// XpYp plane, absolute mode, start polar coordinate mode
N003 G99 G81 Z-12.0 R2.0 F600 K0;
// do drilling cycle,deepth 12mm,feedrate 600mm/min,back to
R point when finish
N004 X100.0 Y90.0;
//specified a distance 100mm, angle 90 degree(first hole)
N005 G91 Y120.0 K2;
//increment command, angle totals 120 degree from last point
(second hole)
N006 Y120.0;
//increment command, angle totals 120 degree from last point
(third hole)
N007 G15 G80 M05;
// polar coordinate mode cancel, cycle cancel, spindle stop
N008 M30; //program end
- 22 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G17; XpYp plane selection
description:
when use circular interpolation 、 tool radius compensation or
polar coordinate command, need to use G17、 G18、 G19 to set
cutting plane, tell controller the working plane(default G17)。
Example :
X Z X
G17 G18 G19
X-Z plane
X Y-Z plane
X-Y plane
- 23 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G28 X Y Z ;
description:
it can return to reference position or return to origin point, in
order not to let the tool crush, it will use G00 mode to move
from present position , it will move to the specified safity
mid-point first and then return to origin point or reference
point。
Example one :
G90 G28 X50.0 Y30.0; //AÆBÆC, mid-point(50,30)
Y
C Reference point
mid-point(50,30)
A X
Starting point
- 24 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Example two :
- 25 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G29 X Y Z ;
Description:
G29 can let tool from reference point through mid-point to
specified point after setting G28。 Notice that G29 can not use
alone, because G29 does not specify mid-point, G29 use the
mid-poimt from G28, therefore, before do G29 must do G28
first。
Under G90, the specified point is the absolute coordiate; under
G91, it is the increment distance from mid-point to specified
point。
example:
Y C
Reference point
B mid-point(20,30)
A
D X
Specified point(40,0)
- 26 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 27 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
workpiece
B (75,25)
C (15,10)
A (60,10)
X
Mechanical origin point
- 28 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 29 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
X、Y、Z:specified point
F:feedrate
100.0
Actual motion
Motion without skip signal
Pregram description:
N001 G31 G91 X100.0 F100; //original motion until run into impede
N002 Y100.0;//use contact point to be opposite coordinate,change path to
specified position,it does not wait to the finished of front
block
- 30 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
(130,70)
Skip signal is input here
- 31 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G33 Z F ;
Max feedrate
1≦ spindle speed( R ) ≦
Thread lead
R: spindle speed(rpm)
Thread lead(F): mm or inch
Feedrate: mm/min or inch/min
<notice>: max feedrate can be setting by parameter #405
acceleration and deceleration time of thread interpolation
can be setting by parameter #409
- 32 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Example :
Z
Start point
Tool
End point
- 33 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G40;
Description:
In general ,when the tool is moved ,if tool center is cutting
along the workpiece ,and the tool radius is overcut.In cutter
compensation ,the tool is moved ,the tool path can be shifted by
the radius of tool. It can let the shape which is after process is
equal with layout. Therefore we can enter the size of
layout ,and match this function ,to get the right size of
workpice ,we can ignore tool radius in the program
Example :
1.cutter compensation:
Compensation
value
Program path
Tool path
- 34 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
compensation
G41 G value positive negative
code
Compensation Compensation
G41
G42 left right
G40 Compensation Compensation
G42
right left
G41 CW
G41
CCW
G42
CCW
CW
G42
- 35 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Programmed path
r Programmed path
Tool center path
S L C
r Programmed path
r
C
S L Tool center path
d. arc Æ arc
r
r Programmed path
C
Tool center path
S L
L C
- 36 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
L r α
S Programmed path
r
L
Tool center path
L
L r α
S
r
L
L C
c. arc Æ straight line
C
r
L α
S Programmed path
r
L
Tool center path
L
- 37 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
d. arc Æ arc
r
L α
S
r
L
L
C
Notice:
1. when process a fillister,if the width less than twice of tool,than system will send
the alarm because of over cutting。
Over cutting
Over cutting
G41
Over cutting
- 38 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Perform example:
Y
A
M B
H
C
G X
D
Program zero
point F E
Program description:
N001 T1 S1000 M03;//tool NO.1(diameter 10mm),spindle 1000rpm (CW)
N002 G00 X0.0 Y0.0 Z10.0;//positioning above programmed zero point
N003 M08;//open cutting liquid
N004 G90 G01 Z-10.0 F600;//linear interpolation to bottom of workpiece,feedrate
600mm/min
N005 G42 Y24.0 D01;//cutter compensation left,program zero pointÆA
N006 G03 X9.0 Y30.0 R10.0;//AÆB circular interpolation (CCW)
N007 G02 X30.0 Y9.0 R15.0;//BÆC circular interpolation (CW)
N008 G03 X30.0 Y-9.0 R10.0;//CÆD circular interpolation (CCW)
N009 G02 X9.0 Y-30.0 R15.0;//DÆE circular interpolation (CW)
N010 G03 X-9.0 Y-30.0 R10.0;//EÆF circular interpolation (CCW)
N011 G02 X-30.0 Y-9.0 R15.0;//FÆG circular interpolation (CW)
N012 G03 X-30.0 Y9.0 R10.0;//GÆH circular interpolation (CCW)
N013 G02 X-9.0 Y30.0 R15.0;//HÆM circular interpolation (CW)
N014 G03 X0.0 Y24.0 R10.0;//MÆA circular interpolation (CCW)
N015 G00 Z10.0;//Z axis rise,return to start point
N016 G40 X0.0 Y0.0;//cutter interpolation cancel,return to start point
- 39 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 40 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G43
Z H ;
G44
G49;
Description:when use machine to process each workpieces,there are many tools that
we use,and the length of each tool is different,during programming,
after change the tool the differerce between tool length will make Z axis
direction have errors,tool length compensation(G43/G44) is used to Z
axis position compensation and to correct the difference between tool
length。
- 41 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Example:
+
Compensation
value Positive Negaive
Z
G43 G code value value
- G49
G44 Positive Negative
G43
direction direction
Negative Positive
G44
direction direction
Example :
Y 10 40 40 20
R=40 E D
20
F
80
A B
5
Program zero point X
- 42 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
10
10
Program description:
T1 S1000 M03;//use tool NO.1(diameter 20mm),spindle 1000rpm(CW)
G42 D01;//tool radius compensation right(D01=10)
G00 X10.0 Y5.0 Z15.0;//positioning above A point
G43 H01;//tool length compensation positive(H01=-10)
G01 Z-10.0;//linear interpolation to bottom of A point
X110.0;//AÆB
Y85.0;//BÆC
X90.0 Y105.0;//CÆD
X50.0;//DÆE
G02 X10.0 Y65.0 R40.0;//EÆF
G01 Y5.0;//FÆA
G00 Z15.0;//positioning return above A point
G40 G49;//compensation cancel
M05;//spindle stop
M30;//program end
- 43 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
1.2.16 G51、G50:SCALING
Example:
Y (100,150) (150,150)
N005 Program path-before scaling
N004 N006
Program description:
N001 G00 X50.0 Y50.0;//positioning
N002 G51 X125.0 Y90.0 P0.5;//dicide center of scaling X125,Y90 scaling
magnification value 0.5,do scaling to steps
N003~N009
N003 G01 Y70.0 F1000;//linear interpolation,feedrate 1000mm/min
N004 X100.0 Y150.0;
N005 G03 X150.0 I25.0;//circular interpolation,radius 25mm;
- 44 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 45 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G51.1 X___Y___Z___;
Description:when cut symmetry shape,we only need one program between left side
or right side,and use this function we can process another side。G51.1
specify point(position) and axis of symmetry for producing a mirror image
- 46 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notice:
value can not match with mechanical position, as the below PIC
Mirror image
cancel
Axis of symmery
- 47 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Example one:
Y
(10,105)
C (120,105)
(40,95) D (80,95) Origin tool path
X=60 X
symmery axis
Program description:
N001 T1 S1000 M03;//use tool NO. 1,1000rpm(CW)
N002 M98 H100;//execute sub-program
N003 G51.1 X60.0;//execute programmable mirror image that symmery axis X=60
N004 M98 H100;// execute sub-program
N005 G50.1;//programmable mirror image cancel
N006 G51.1 Y55.0;//execute programmable mirror image that symmery axis Y=55
N007 M98 H100;// execute sub-program
N008 G50.1;// programmable mirror image cancel
N009 M05;//spindle stops
N0010 M30;//program ends
N100;//sub-program list
G00 X60.0 Y55.0;//positioning to specified point
G01 Y75.0;//linear interpolation to O point
X80.0;//OÆA
X120.0;//AÆB
Y105.0;//BÆC
X80.0 Y95.0;//CÆD
Y75.0;//DÆA
M99;//sub-program ends
- 48 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Y
Thickness
10mm
Sub-program
N100;sub-program list
G00 X58.0 Y0.0 Z10.0;//positioning to the above of strating position
G01 Z-10.0;//linear interpolation to bottom of workpiece
G03 X49.36 Y7.9744 R8.0;//circular interpolation(CCW),radius 8mm
- 49 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 50 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
X、Y、Z:coordinate values
Coordinate system:
Y G52
G54 G55
Work coordinate
Program
coordinate
G56
Program zero X
point
- 51 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Example:
thickness10mm
10 3rd hole
20 (100, 65)
G
1st hole 2nd hole
20
(90,15) (110, 15)
10
10
X
20 20 10
Program description:
N001 T1 S1000 M03;//tool No.1(diameter 10mm),spindle 1000rpm (CW)
N002 G54 X0.0 Y0.0 Z0.0;//specify work coordinate(G54)
N003 G00 X90.0 Y15.0 Z10.0;//positioning to above of specified position
N004 G43 H01;//tool length compensation(tool No.1)
N005 G99 G81 Z-15.0 R2.0 F1000;//execute drilling cycle,stop at R point when
return,feedrate 1000mm/min,drill 1st hole
N006 X110.0;//drill 2nd hole
N007 X100.0 Y65.0;//drill 3rd hole
N008 G80;//cancel cycle
N009 M05;//spindle stops
N010 G28 X0.0 Y0.0 Z10.0;//reference point return,X0.0,Y0.0,Z10.0 to be center
point
N011 T2 M06 S1000 M03;//execute tool exchange(tool No.2 diameter 10mm),after
finishing,spindle start to turn,1000rpm(CW)
N012 G52 X30.0 Y30.0 Z0.0;//specify local coordinate zero point to the work
coordinate(G54) of X40.0,Y40.0,Z0.0(geometry
center of workpiece)
N013 G00 X0.0 Y0.0 Z10.0;//positioning to local coordinate X0.0,Y0.0,Z10.0(above
the hole)
N014 G01 Z-12.0;//linear interpolation to bottom of the hole
N015 G17 G41 D02;//cutter compensation left (tool No.2)
N016 G91 X20.0;//specify to use increment to interpolation
N017 Y10.0;
N018 X-10.0;
- 52 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
N019 Y10.0;
N020 X-20.0;
N021 Y-10.0;
N022 X-10.0;
N023 Y-20.0;
N024 X10.0;
N025 Y-10.0;
N026 X20.0;
N027 Y10.0;
N028 X10.0;
N029 Y10.0;
N030 G90 G00 Z10.0;//specify to use absolute positioning
N031 G52 X0.0 Y0.0 Z0.0;//cancel local coordinate
N032 G40 M05;//cancel compensation,spindle stops
N033 M30;//program ends
- 53 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G53 X___ Y___ Z___ ;
Example:
600 50 30 100
0 0 N002 N005
500 40 20 Local coordinate system
3 100
0 0 G5
400 30 10
N004
0 0
300 20 Workpiece coordinate system
100 200 300 400
0 G5
200 10
N00
0
100 Mechine coordinate system
100 200 300 400 500
G5
Basic coordinate system
N001 100 200 300 400 500 600 700
G9
Program description:
- 54 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 55 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G54
G55
G56
G57
G58
G59 X__ Y__ Z__ ;
G59.1
G59.2
:
:
G59.9
Description:
In general when we operate numerical machine,if there are many
workpieces on the machine,we can use workpiece coordinate system G54 to
G59 six G codes G59.1~G59.9 to present 15 different coordinate systems,it
is convenient to specify each workpieces poisition on machine coordinate,
and it is more convenient to our processed。Use parameter #3229 to「disable
workpirce coordinate system」(0:enable ; 1:disable)。
- 56 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
※G54……G59.9 settings:
“setting workpiece coordinate system”in operation interface,setup G54 …G59.9 by
each other。(consult『milling machine controller operation manual』)
Example:
Program
coordinate
Program zero point X
system
- 57 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 58 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G65 P L ;
command form:
G66 P L ;macro call
G67 ;macro call cancel
- 59 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Description
After coordinate rotation start,all movement command will rotate with rotation
center,so the geometric figure rotate a angle。Rotation center only effective in
absolute command,if all command is increment,the actual rotation center is the
starting point of path。
Example
Program one
G54 X0 Y0 F3000.;
G16; // start polar coordinates
G90 G00 X50. Y9.207 R8.; // positioning to strating point
M98 H100; // first process
G68 X0 Y0 R90.; // coordinate rotates 90°
M98 H100; // second process
G68 X0 Y0 R180.; // coordinate rotates 180°
M98 H100; // third process
G68 X0 Y0 R270.; // coordinate rotates 270°
M98 H100; // fourth process
G69; // coordinate rotation cancel
G15; // polar coordinate cancel
M02; // main program end
N100 // orbit sub-program start
G90 G01 X50. Y9.207 R8.;
G03 X50. Y80.793. R50.;
- 60 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Absolute mode
- 61 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Program two
G54 X0 Y0 F3000.;
G16; // start polar coordinate
G90 G00 X50. Y9.207 R8.; // positioning to starting point
M98 H100; // first process
G68 X0 Y0 R45.; // coordinate rotates 45°
M98 H100; // second process
G68 X0 Y0 R90.; // coordinate rotates 90°
M98 H100; // thied process
G68 X0 Y0 R135.; // coordinate rotates 135°
M98 H100; // fourth process
G68 X0 Y0 R180.; // coordinate rotates 180°
M98 H100; // fifth process
G68 X0 Y0 R225.; // coordinate rotates 225°
M98 H100; // sexth process
G68 X0 Y0 R270.; // coordinate rotates 270°
M98 H100; // seventh process
G68 X0 Y0 R315.; // coordinate rotates 315°
M98 H100; // eighth process
G69; // coordinate rotates cancel
G15; // polar coordinate cancel
G00 X-80. Y0.
M98 H200; // process first “flower”
G51.1 Y-40.; // symmetry axis Y-40.
M98 H200; // process second “flower”
G50; // mirror image cancel
G90 G81 Z-20. R2. F1000. K0; // start G81 drilling cycle
G134 X0 Y0 I75. J30. K6; // circumference hole cycle
G137.1 X60. Y-60. I20. J-20. P3 K3; // chess type hole cycle
G80; // drilling cycle cancel
M02; // main program end
N100 // orbit sub-program
G90 G01 X50. Y9.207;
G03 X50. Y35.793 R50.;
G03 X50. Y54.207 R8.;
M99; // sub-program return
N200 // sub-program start (flower)
- 62 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Absolute mode
- 63 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
SYSTEM
command form:
G70;
G71;
Description:
G70: english system
G71: metric system
After change english/metric system , origin offset value of
workpiece coordinate 、 tool data 、 system patemeter 、 and
reference point, all of that is still correct。 Sysem will deal the
change of unit automatically 。 After change english/metric
system, item below will change as follow:
coordinate、 unit of speed
increment JOG unit
MPG JOG unit
- 64 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 65 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Absolute Increment
-R
R point R point
+R
-Z
-Z
workpiece workpiece
1.2.26 G73:HIGH SPEED PECK DRILL CYCLE
- 66 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G73 X Y Z R Q F K ;
PIC:
G98 G99
(X,Y) (X,Y)
Initial point Initial point
R point R point
Q Q
d d
Q Q
d d
Q Q
Z point Z point
d:parameter setting d:parameter setting
Dwell P(s) Dwell P(s)
Description:
- 67 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
Condition:
1、befroe drilling axis be changed,Canned Cycle must be canceled first。
2、if a Block is not included movement command of any axes(X, Y, Z),then
drilling can not be executed。
3、the data that Q and R specified ,only be setted in the block we execute
drilling,it can not be setted in the block we do noe execute drilling。
4、G Code group 01 and G73 can not be specified in the same block,or G73
Canned Cycle will be cancel。
5、in Canned Cycle,tool length compensation(G41/G42/G40)will be ignored。
Program example:
F1000. S500;
M03; // start the drill to turn CW
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
G90 G99;
//set the R point、Z point and hole 1,cutting rate 2.0
G73 X5. Y5. Z-10. R-5. Q2.;
X15.; // hole 2
Y15.; // hole 3
G98 X5.; // hole 4,and return to initial point
- 68 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 69 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G74 X Y Z R P F K ;
X or Y :coordinates of holes(absolute/increment)
Z :the distance from point R to the bottom of the hole(directional ,it can be
increment or absolute)
R :the distance from initial point to point R(directional ,it can be increment or
absolute)
P :dwell time(s)
F :feedrate
K :number of repeats(repeat movement and drilling ,G91 is effectived)
X,Y,Z,R:use G90/91 to decide absolute or increment
PIC:
G98 G99
R point R point
Rotate reverse after dwell P(s) Rotate reverse after dwell P(s)
Z point Z point
Rotate CW after dwell P(s) Rotate CW after dwell P(s)
Description:
- 70 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G74 when performing ,feed rate(F) ,spindle r.p.m(S) ,they are not controlled by
turning switch(fixed at 100%)
Note:
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
- 71 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 72 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G76 X Y Z R Q P F K ;
PIC:
G98 G99
Tool
OSS
(Oriented Spindle Stop) offset q
- 73 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Description:
1. use G00 to move tool to specified (X, Y) point ,when performance start
3. use G01 reach point Z at the bottom of the hole ,dwell P(s) and spindle
positioning and stop the drill
4. shift q distance
※ alarm:
Q is a Modal Value that requst in G76 cycle,we must specify this Q value
carefully,because it also use in G73/G83。
- 74 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Condition:
1、before drilling axis be changed,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、Q must be specified a positive value。If Q is negative value ,it will be thought
to be a positive value(absolute value),data that Q and R specified only be
setted in drilling blocks,it will not be setted in not drilling blocks。
4、G Code group 01 and G76 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation(G41/G42/G40)will be ignore。
Program example:
F1000. S500;
M03; // start drill rotate CW
G90;
G00 X0. Y0. Z10.; // position to initial point
G17;
G90 G99;
//specify point R、point Z and hole 1,shift amount at bottom of hole2.0,dwell
time 5 s
G76 X5. Y5. Z-10. R-5. Q2. P5.;
X15.; // hole 2
Y15.; // hole 3
G98 X5.; // hole 4,and return to initial point
X10. Y10. Z-20.; // hole 5,and specify the new point Z to be -20.0
G80;
M05; // drill stops
M02;
- 75 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
command form:
G81 X Y Z R F K ;
PIC:
G98 G99
R point R point
Z point Z point
Dwell P(s) Dwell P(s)
Description:
- 76 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Note:
1.before G81,use M Code to let drill start to rotate。
2.if M Code and G81 are specified in the same block ,this M Code only executes
in the first time of positioning in that block,
3.when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis be changed,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in not
drilling block。
4、G Code group 01 and G81 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation(G41/G42/G40)will be ignore。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
G90 G99;
//setting point R、point Z and hole 1
G81 X5. Y5. Z-10. R-5.;
X15.; // hole 2
Y15.; // hole 3
G98 X5.; // hole 4,and return to initial point
X10. Y10. Z-20.; // hole 5,and set new point Z to be -20
G80;
M02;
- 77 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
BOTTOM
command form:
G82 X Y Z R P F K ;
PIC:
G98 G99
(X,Y) (X,Y)
Initial point Initial point
R point R point
Z point Z point
Dwell P(s) Dwell P(s)
Description:
- 78 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
1.before G82,use M Code to let drill start to rotate。
2.if M Code and G82 are specified in the same block ,this M Code only executes
in the first time of positioning in that block
3.when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in not
drilling block。
4、G Code group 01 and G82 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
G90 G99;
//specified point R、point Z and hole 1,dwell time 2 s
G82 X5. Y5. Z-10. R-5. P2.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 79 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G83 X Y Z R Q F K ;
PIC:
G98 G99
(X,Y) (X,Y)
Initial point Initial point
R point R point
Q Q
d d
Q Q
d d
Q Q
Z point Z point
d:parameter setting d:parameter setting
Dwell P(s) Dwell P(s)
Perform description:
- 80 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
5. use G00 reach a distance “d” that opposite to the present depth(parameter
4002)
6. use G01 to interpolate a distance Q at the present depth
7. use G00 raise to point R of workpiece interface。
Notes:
1. peck drill of returning tool value “d” ,it is specified by CNC parameter
No.4002。
2. before using G83,use M Code let the drill to rotate first。
3. if M Code and G83 are specified in the same block ,this M Code only
executes in the first time of positioning in that block
4. when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z)
,then
drilling will not be executed
3、data Q and data R specified only be setted in drilling block,it will not be
setted in not drilling block。
4、G Code group 01 and G83 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
M03; // start drill to rotate CW
- 81 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
G90 G99;
// specify point R、point Z and hole 1,cutting federate 3.0
G83 X5. Y5. Z-10. R-5. Q3.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 82 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
PIC:
G98 G99
R point R point
Rotate “+” direction after dwell P(s) Rotate “+” direction after dwell P(s)
Z point Z point
Reverse after dwell P(s) Reverse after dwell P(s)
Perform description:
- 83 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G94 : perform speed(F mm/min) =spindle rotate rate(S r.p.m) * pitch(P mm/rev)
G95: perform speed(F:mm/rev) = pitch(P mm/rev)
G84 when performing ,perform speed(F) spindle rotate rate(S) ,they are not
controlled by turning switch(fix 100%)
Notes:
1. before using G84,use M Code to let the drill rotate CCW
2. if M Code and G84 are specified in the same block ,this M Code only
executes in the first time of positioning in that block
3. when the K is used to specify numbers of repeats,this M Code is executed in
the first hole only。G84 is module G Code ,it is always effectived when we
use once ,we only specify (X,Y) in next line of program ,controller will
execute drilling at (X,Y)
4. this modul G Code ,will be canceled when G80 command ,or we command
G00 ,G01,G02,G03 or other cycle G code ,this modul G code will be
canceled automatically
5. because there is a period of time that spindle from CW to CCW at tapping ,
please command P to dwell a period of time
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in
notdrilling block。
4、G Code group 01 and G84 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
- 84 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
G90 G99;
//specify point R、point Z and hole1
G84 X5. Y5. Z-10. R-5.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 85 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G85 X Y Z R F K ;
PIC:
G98 G99
R point R point
Z point Z point
Perform description:
- 86 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
1. before G85 command,use M Code to let the spindle rotate。
2. if M Code and G85 are specified in the same block ,this M Code only
executes in the first time of positioning in that block
3. when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in
notdrilling block。
4、G Code group 01 and G85 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
G90 G99;
//specify point R、point Z and hole 1
G85 X5. Y5. Z-10. R-5.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 87 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G86 X Y Z R F K ;
PIC:
G98 G99
Z point Z point
Perform description:
- 88 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
1.before using G86,use M Code to let the drill to rotate。
2.if M Code and G86 are specified in the same block ,this M Code only executes
in the first time of positioning in that block
3.when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in
notdrilling block。
4、G Code group 01 and G86 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
G90 G99;
//specify point R、point Z and hole 1
G86 X5. Y5. Z-10. R-5.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 89 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G87 X Y Z R Q P F K ;
PIC:
OSS
Initial point
Rotate CW
OSS
Z point
Dwell P(s)
R point
Rotate CW q
Tool
OSS
(Oriented Spindle Stop) Offset q
- 90 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
※Arlam:
Q is a Modal Value that request in G87 cycle,this Q value must be specified
carefully,because it is used in G73/G83。
※OSS(Oriented Spindle Stop) direction is decided by parameter No. 4020:
Parameter
4020 G17 G18 G19
0 +X +Z +Y
1 -X -Z -Y
2 +Y +X +Z
3 -Y -X -Z
Notes:
1. before G87 command,use M Code to let the spindle rotate。
2. if M Code and G87 are specified in the same block ,this M Code only
executes in the first time of positioning in that block
3. when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、Q must be specified to a positive value。If Q were a negative value,it will be
- 91 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
G90 G99;
M03; // start drill to rotate CW
//specify point R、point Z and hole 1,shift amount 5.0,dwell time 4.0s
G87 X5. Y5. Z10. R-30. Q5. P4.;
X15.; // hole2
Y15.; // hole3
G80;
M05; // drill stops
M02;
- 92 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
PIC:
G98 G99
Z point Z point
Drill stops after dwell P(s) Drill stops after dwell P(s)
Perform description:
- 93 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
1. before G88 command,use M Code to let drill start to rotate first。
2. if M Code and G88 specify in the same block ,this M Code only executes
once when the first time positioning in that block
3. when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in
notdrilling block。
4、G Code group 01 and G88 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
G90 G99;
//specify point R、point Z and hole1,dwell 2.0s
G88 X5. Y5. Z-10. R-5. P3.;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 94 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
BOTTOM
Command form:
G89 X Y Z R P F K ;
PIC:
G98 G99
R point R point
Z point Z point
Dwell P(s) Dwell P(s)
Description:
- 95 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Notes:
1. before G89 command,use M Code to let the drill start to rotate。
2. if M Code and G89 are specified in the same block ,this M Code only
executes in the first time of positioning in that block
3. when K is used to specify numbers of times,this M Code is executed for the
first only,for the second hole and subsequent holes,the M Code is not
executed。
Condition:
1、before drilling axis changes,Canned Cycle must be canceled first。
2、if the Block does not include movement command of any axes(X, Y, Z) ,then
drilling will not be executed。
3、data R specified only be setted in drilling block,it will not be setted in
notdrilling block。
4、G Code group 01 and G89 can not be specified in the same block,or G76
Canned Cycle cancel。
5、in Canned Cycle,tool length compensation mode(G41/G42/G40)will be
ignored。
Program example:
F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;
M03; // start drill to rotate CW
G90 G99;
//specify point R、point Z and hole1,dwell 2.5s
G89 X5. Y5. Z-10. R-5. P2.5;
X15.; // hole2
Y15.; // hole3
G98 X5.; // hole4,and return to initial point
G80;
M05; // drill stops
M02;
- 96 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form :
G90 ;
G91 ;
Description :
G90 : absolute command 。
G91 : incremental command 。
PIC :
Y
Specified point
20
Initial point
20
Program
zero point 20 70 X
Program description :
- 97 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G92 X Y Z ;
Description:
When we design the program,we must set another program coordinate zero
point,we can use G92 to set a new coordinate system at this time,this
command is set a new zero point of coordinate system when the tool is in any
position,after setting tool will start to perform at this point,absolute command
is competered by this new coordinate system。
PIC:
Z’
Y’
Z
- 98 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G94 F ;
G95 F ;
PIC :
workpiece
- 99 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 100 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
SURFACE
Command form :
Description : G96 specify the surface speed (relative speed between the
tool and workpiece) , G97 command can cancel G96
command,it also can specify spindle speed;in performance ,
use the tool in different radius , but we need surface speed in
a fixed value , we can use G96 S to control surface speed ;
if you do not mind how big is the diameter of tool when
perform,and we fix the spindle speed,we can use G97 S to
control spindle speed , follow the formula :
πDN
V=
1000
Program example :
1.spindle surface speed fixed: G92 S2000; //use G92 to restrict spindle
max revolution
G96 S130 M03 ;
//for interpolation speed is 130 m/min
※ Notice : G92 always used with G96 , it restricts max revolution of
spindle , example is tool NO.2 diameter 10mm , then :
- 101 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
1000× 130
N = =4140rpm
π ×10
- 102 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G134 X Y I J K ;
Example﹕
r =100 mm
20°
Y=100 mm
X=200 mm
Program description:
- 103 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G135 X Y I J K ;
Description:
Use the interval to drill n holes in the direction that X axis and a angle,the
starting point is specified (X,Y)
n=5
d = 100mm
30°
10
0
Starting point
200.0
Example:
Program description:
N001 G91;//use increment mode
N002 G81 Z-10.0 R5.0 K0 F100;
//execute drill cycle,feedrate 100mm/min,depth of each hole 10 mm,return
to starting point when finish
N003 G135 X200.0 Y100.0 I100.0 J30.0 K5;
//execute angular straight hole cycle,X=200mm,Y=100mm be starting
position,interval 100mm,angle with horizontal 30°,5 holes
- 104 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G136 X Y I J P K ;
Description:
Use the point make between X axis and a angle to be starting point ,and drill a
hole every angular. The hole is drilling in the arc that specified (X,Y) is center
and “r” is radius。
Example:
N001 G91;//use incremental mode
N002 G81 Z-10.0 R5.0 K0 F100;
//execute drilling cycle,cutting feedrate 100mm/min,depth of each holes 10
mm,and return the initial point
N003 G136 X300.0 Y100.0 I300.0 J10.0 P15000 K6;
//execute arc type hole cycle,X=300mm,Y=100mm to be the center of the
arc,radius 300mm,starting angle value10°,interval angle15°,6 holes
n=6
Interval 15°
- 105 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form:
G137.1 X Y I P J K ;
Example:
ny = 8
y interval 100mm
10
10
300m nx = 10
50 0
x interval 50mm
- 106 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 107 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
Command form :
T
Description :
Tool function is also called T function,it is used to choose to tools,we
usually use it to change tool with M06,we can auto do tool exchange
according to the number of the tools。
Example:
T03 M06;//for change to tool No.3
Command form :
S
Description :
S function is spindle speed command,specify spindle r.p.m/min or constant
linear velocity,it is specified by G96/G97。
Example:
G96 S150 M03;//constant linear velocity on surface,150 m/min
G97 S500 M03;//keep 500 rev/min
Command form:
F
Description:
When interpolate workpiece,the only speed we specify to tool in the
program,is called feedrate。There is two to specify the feedrate
(G94/G95)。If we use G94 , F300 is for 300 mm/min。If we use G95 ,F0.5 is
for 0.5mm/rev。
Example:
G94 G01 X100.0 Y100.0 F300;//linear interpolartion,feedrate is 300mm/min
G95 G01 X100.0 Y100.0 F0.5;//linear interpolartion,feedrate is 0.5mm/rev
- 108 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
二 、 M Code description:
M function table
M Code Function
M00 Program dwell
M01 Selectivity program dwell
M02 End program
M03 Spindle rotate(CW)
M04 Spindle rotate(CCW)
M05 Spindle stop
M06 Tool exchange
M08 Coolant liquid ON
M09 Coolant liquid OFF
Spindle positioning , let spindle stop at a
M19
specified position
M30 Program end,return to starting point
M98 Call the sub-program
M99 From sub-program return to main program
1、M00:Program dwell
When CNC executes M00 command,the spindle will stop to rotate,feed will
dwell,cutting oil will stop,it is convenient to size check and compensate for
operator;we can specify the program is dwell or not by “M00 cancel switch” on
the interface。
3、M02:program end
- 109 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
when there is M02 command in the end of main program。When CNC executes
this command,machine will stop,if we need to execute the program again,we
must click "RESET",and then click "program start"。
4、M03:spindle rotate (CW)
M03 command can let the spindle rotate CW,it can use with S function,spindle
can rotate CW in specified speed。
5、M04:spindle rotate (CCW)
M04 command can let the spindle rotate CCW
6、M05:spindle stop
M05 command can let spindle stop,when you want to change the gear or change
the rotate direction,must use M05 to stop the spindle before we change the gear
or change the rotate direction。
7、M06:tool exchange
M06 command can execute tool exchange,this command does not include tool
selection,it must use with T function。
8、M08/M09:coolant liquid ON/OFF
M08 command for coolant liquid ON,M09 for OFF
9、M19:spindle positioning stop
this command let spindle positioning on a specified corner
10、M30:program end
M30 command for program ends,when program execute M30 command,will
action stops,and the momery will return to the initial of the program。
11、M98/M99:sub-program control
sub-program is parameter which has fixed perform method or be executed
usually,we prepare first and put it into momery,when we need to use,we can call
by main program。We use M98 to call the sub-program and use M99 to end that。
Command form:
Sub-program called
M98 P H L ;
P is specified number of program(when we ignore P,it specify the program
itself,and it is only used in memory perform or MDI perform)
H is the number of ranking in specified program。
L is the number of repeats that sub-program executes。
Sub-porgram end
M99 P ;
P is the number that return to main program after sub-program ends。
- 110 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL
- 111 -