0% found this document useful (0 votes)
39 views111 pages

Mill Programming ManualEN V70r

G00 is the positioning command that moves all axes simultaneously to the specified point without interpolation. It moves the axes at the maximum feed rate. G00 is used to rapidly move the tool from one point to another between machining operations. The final position is specified with absolute (G90) or incremental (G91) coordinates for X, Y, and Z axes.

Uploaded by

ayman emmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views111 pages

Mill Programming ManualEN V70r

G00 is the positioning command that moves all axes simultaneously to the specified point without interpolation. It moves the axes at the maximum feed rate. G00 is used to rapidly move the tool from one point to another between machining operations. The final position is specified with absolute (G90) or incremental (G91) coordinates for X, Y, and Z axes.

Uploaded by

ayman emmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 111

SYNTEC MILL MACHINE PROGRAMMING MANUAL

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

MILL MACHINE PROGRAMMONG MANUAL 5

一. G FUNCTION DESCRIPTION 5

1.1 G code list 5


G code drscription 7
1.2.1 G00:POSITIONING 7
1.2.2 G01:LINEAR INTERPOLATION 8
1.2.3 G02、G03:CIRCULAR INTERPOLATION 10
1.2.4 G04:DWELL 16
1.2.5 G09、G61:EXACT STOP 17
1.2.6 G10:PROGRAMMABLE DATA INPUT 18
1.2.7 G15、G16 POLAR COORDICATES COMMAND MODE 19
1.2.8 G17、G18、G19:PLANE SELECTION 23
1.2.9 G28:RETURE TO REFERENCE POSITION 24
1.2.10 G29:RETURE FROM REFERENCE POSTION 26
ND RD TH
1.2.11 G30:2 ,3 AND 4 REFERENCE PPOSTION RETURE 28
1.2.12 G31:SKIP FUNCTION 30
1.2.13 G33:THREAD INTERPOLATION 32
1.2.14 G40/G41/G42:CUTTER COMPENSTAION 34
1.2.15 G43/G44/G49:TOOL LENGTH COMPENSATION 41
1.2.16 G51、G50:SCALING 44
1.2.17 G51.1、G50.1:PROGRAMMABLE MIRROR IMAGE 46
1.2.18 G52:LOCAL COORDINATE SYSTEM 51
1.2.19 G53:MECHINE COORDICATE SYSTEM SELECTION 54
1.2.20 G54...G59.9:WORKPIECE COORDICATE SELECTION 56
1.2.21 G64:CUTTING MODE 58
1.2.22 G65:SIMPLE CALL 59
1.2.23 G66、G67:MACRO CALL 59
1.2.24 G68/69:COORDINATE ROTATION 60
1.2.25 G70/G71:INPUT IN INCH/MM 64
1.2.26 G73:HIGH SPEED PECK DRILL CYCLE 66
1.2.27 G74:LEFT HAND TAPING CYCLE 70
1.2.28 G76:FINE BORING CYCLE 73
1.2.29 G81:DRILLING CYCLE 76

-3-
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.30 G82:DRILLING CYCLE OF DWELL ON THE HOLE BOTTOM 78


1.2.31 G83:PECK DRILL CYCLE 80
1.2.33 G85:DRILLING CYCLE 86
1.2.34 G86:HIGH SPEED DRILLING CYCLE 88
1.2.35 G87:FINE BORING CYCLE OF BACK SIDE 90
1.2.36 G88:FINE BORING CYCLE OF HALF AUTOMATIOM 93
1.2.37 G89:BORING CYCLE OF DWELL ON THE HOLE BOTTOM 95
1.2.38 G90/G91:ABSOLUTE/INCREMENT COMMEND 97
1.2.39 G92:SETTING OF WORK COORDICATE SYSTEM 98
1.2.40 G94/G95:FEED UNIT SETTING 99
1.2.41 G96/G97:CONSTANT LINEAR VELOCITY CONTROL ON SURFACE 101
1.2.42 G134:CIRCUMFERENCE HOLE CYCLE 103
1.2.43 G135:ANGULAR STRAIGHT HOLE CYCLE 104
1.2.44 G136:ARC TYPE HOLE CYCLE 105
1.2.45 G137.1:CHESS TYPE HOLE CYCLE 105
1.2.45 G137.1:CHESS TYPE HOLE CYCLE 106
1.2.46 TOOL FUNCTION : T CODE COMMAND 108
1.2.47 SPINDLE SPEED FUNCTION : S CODE COMMAND 108
1.2.48 FEED FUNCTION : F CODE COMMAND 108
二、M Code description: 109

-4-
SYNTEC MILL MACHINE PROGRAMMING MANUAL

MILL MACHINE PROGRAMMONG MANUAL


一. G function description

1.1 G code list


G code Function PS. Item Function name PS.
G00 Positioning G65 Marco call ※
G01 Linear interpolation G66 Marco modal call ※
Circular interpolation
G02 /Helical interpolation G67 Marco modal call cancel ※
(CW)
Circular interpolation
G03 /Helical interpolation G68 Coordinate rotation
(CCW)
G04 Dwell ,exact stop G69 Coordinate rotation cancel
G09 Exact stop G70 Inch perform
G10 Programmable data input G71 Mm perform
Polar coordinates
G15 G73 Peck drilling cycle
command cancel
Polar coordinates
G16 G74 Counter tapping cycle
command
G17 XpYp plane selection G76 Fine boring cycle
G18 ZpXp plane selection G80 Canned cycle cancel
G19 YpZp plane selection G81 Drilling cycle
Return to reference Drilling cycle of dwell on
G28 G82
positon the hole ottom
Return from reference
G29 G83 Peck drilling cycle
position
2nd ,3rd and 4th reference
G30 G84 Tapping cycle
position return
G31 Skip function G85 Doring cycle
G33 Thread cutting G86 High speed doring cycle
Cutter compensation Fine boring cycle of back
G40 G87
cancel side
Fine boring cycle of half
G41 Cutter compensation left G88
automatiom
Cutter compensation Boring cycle of dwell on
G42 G89
right the hole bottom
Tool length
G43 G90 Absolute command
compensation + direction
Tool length
G44 G91 Increment command
compensation - direction
Tool length Setting of work coordicate
G49 G92
compensation cancel system
G50 Scaling G94 Feed per minute(mm/min.)
G51 Scaling cancel G95 Feed per rotation

-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:

1.first way(absolute): G90 G00 X90.0 Y40.0;


//use difference value between appointed point and zero point to do
straight interpolation to appointed point

2.second way(increment): G91 G00 X70.0 Y20.0;


// use difference value between appointed point and initial point to
do straight interpolation to appointed point

-7-
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.2 G01:LINEAR INTERPOLATION


command form:
G01 X Y Z F__;

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

1.absolute command: G90 G01 X90.0 Y40.0;


//do linear interpolation from zero point to the specified
point(90,40)

2.increment command: G91 G01 X70.0 Y20.0;


// the tool does linear interpolation X + 70 and Y + 20 to specified
point

-8-
SYNTEC MILL MACHINE PROGRAMMING MANUAL

Example 2:processing example

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

1.2.3 G02、G03:CIRCULAR INTERPOLATION

command form:
(1). X-Y plane circular interpolation:
G02 R
G17 X Y F ;
G03 I J_

(2). Z-X plane circular interpolation:


G02 R
G18 X Z F ;
G03 I K

(3).Z-X plane circular interpolation :


G02 R
G19 Y Z F ;
G03 J K

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:

Setting Data Command Difinition


G17 XpYp plane setting
1 Plae selection G18 XpZp plane setting
G19 YpZp plane setting
G02 Clockwise direction (CW)
2 Deirection G03 Counterclockwise direction
(CCW)
G90 Two axises of End coordinate of arc
End X、 Y、 Z
3
positon G91 Two axises of Vector value from start
X、 Y、 Z point to end point

- 10 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

Distance from start Two axises of Vector value from start of


4 point to center of I、 J、 K arc to center of circle
circle
Radius of arc R Radius of arc
5 Speed of feed F Federate along the arc
(federate)

example :

1. G02 、 G03 direction

Y G03 X G03 Y G03

G02 G02 G02

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

Arc α≦180。 Arc α>180。


(R positive) (R negative)

Program example one :


Y
4000

4000 End point


終點
End
point G03 2000
Start point

起點
Starting point
2000
R=3162 Center -1000
of circle
圓心
certered
-3000
X
1500 5500

G90 G00 X5500 Y4000;//positioning to start point of arc


G17 G90 G03 X1500 Y4000 I-3000 J-1000 F200;
//absolute command
(G17 G91 G03 X-4000 Y2000 I-3000 J-1000 F200;//increment
command)

- 12 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

example two : (interpolation a circle)

Starting point
X
End point 1000 2000

G90 G00 X0 Y0;


G02 I1000 F100; ................................. interpolation a circle

- 13 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.3.1 G02、G03:HELICAL INTERPOLATION

Command form:
(1).
G02 R
G17 X Y Z F ;
G03 I J

X、Y:end position of arc;


Z:end position of straight line;
R:radius of arc;
I、J:center position of arc;
F:speed of tool feed(feed rate);
(2).
G02 R
G18 X Z Y F ;
G03 I K

X、Z:end position of arc;


Y:end position of straight line;
R:radius of arc;
I、K:center position of arc;
F:speed of tool feed(feed rate);
(3).
G02 R
G19 Y Z X F ;
G03 J K

Y、Z:end position of arc;


X:end position of straight line;
R:radius of arc;
J、K:center position of arc;
F:speed of tool feed(feed rate);
Description:
When the 3rd axis which is vertical to arc plane moves,G02/G03 is to be
Helical Interpolation。The choice of Helical Interpolation is the same as
circular interpolation。Helical Iterpolation uses G code(G17/G18/G19) to
dicide which plane to do circular interpolation。
G17 form:synchronously with arc of XpYp plane。
G18 form:synchronously with arc of ZpXp plane。

- 14 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

G19 form:synchronously with arc of YpZp plane。

※example: Z

900 End point

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

X:specify a time (decimal point permitted 0.001∼ 9999.999s)


P: specify a time (decimal point not permitted)

Description: By specifying a dwell , the execution of the next block is


delayed by the specified time. In addition ,a dwell can be
specified to make an exact check in the cutting mode.

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

1.2.5 G09、G61:EXACT STOP

command form:G09 X__ Y__ Z__ ;


G61;

X、Y、Z:position of exact stop

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。

notice : G01 check window : parameter 421-440 ,


G00 check window : parameter 461-480

Example:

Position check

Y
Next block
path with G09/G61

path without G09/G61

tool

front block

- 17 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.6 G10:PROGRAMMABLE DATA INPUT

command form:
L10
L11
G10 P__ R__ ;
L12
L13

L10: for tool length(H)geometric compensation value


L11:for tool length(H)wear compensation value
L12:for tool diameter(D)geometric compensation value
L13:for tool diameter(D)wear compensation value
P: tool NO.;
R: compensation value(data of tool length or tool diameter);

description:
G10 command: it can directly use program command to enter
tool compensation value。

Under G90 it is absolute value , value of G10 is the new


compensation value;under G91 it is increment value,value of
G10 need to add the new compensation value。

example :

Reference
position

OFSG

OFSW

- 18 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.7 G15、G16 POLAR COORDICATES COMMAND MODE

command form:

G16; polar coordinate mode


G X Y ;
: polar coordinate command

G15; polar coordinate command cancel

X: polar coordinate radius


Y: polar coordinate angle( “+ ” for CW, ”- ” for CCW)

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 :

1. when polar coordinate zero point is the same as working


coordinate

Command point Command point


Radius Radius

Angle Angle
Actual position Actual position

a. When angle is specified b. when angle is specifed with


with an absolute command an increment command

2. when polar coordinate zero point is in normal position

Command point
Command point
Angle
Radius Radius

Angle

Actual position Actual position

b. When angle is specified b. when angle is specifed with


with an absolute command an increment command

- 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

1.2.8 G17、G18、G19:PLANE SELECTION

command form:
G17; XpYp plane selection

G18; ZpXp plane selection

G19; YpZp 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 :

Y G03 X G03 Y G03

G02 G02 G02

X Z X
G17 G18 G19

X-Z plane

X Y-Z plane

X-Y plane

- 23 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.9 G28:RETURE TO REFERENCE POSITION

command form:

G28 X Y Z ;

X、Y、Z:mid-point position;(absolute value in G90 mode,


increment value in G91 mode)

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。

<notice>this command usually use in auto tool exchange, for


safity,before doing G28,must cancel tool compensation

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 :

G28 X0; //only X axis return to reference point


G28 Y0; //only Y axis return to reference point
G28 Z0; //only Z axis return to reference point

- 25 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.10 G29:RETURE FROM REFERENCE POSTION

command form:

G29 X Y Z ;

X、Y、Z:specified coordinate;(absolute value in G90 mode,


increment value in G91 mode)

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)

(1). Absolute command:


N001 G90 G28 X20.0 Y30.0;
//AÆBÆC, mid-point(20,40), in absolute command mode
N002 M06; //change the tool
N003 G29 X40.0 Y0.0;
// CÆBÆD, the specified point is absolute coordinate

- 26 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

(2). Increment command:


N001 G91 G28 X20.0 Y40.0;
//AÆBÆC, mid-point(20,40), in increment command mode
N002 M06; //change the tool
N003 G29 X40.0 Y-40.0;
//CÆBÆD, the specified position is the increment value from
mid-point to specified point

- 27 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.11 G30:2nd,3rd and 4th REFERENCE PPOSTION RETURE


command form:
G30 Pn X Y Z ;

X 、 Y 、 Z: mid-point coordinates ; (absolute value under


G90, increment value under G91)
Pn: specified reference point(parameter #2801 ~ #2860)
P1: mechanical origin point;
P2: second reference point;
P_: defualt is P2;
Description:
for the convenience that change tool and check , we use
parameter to set a reference point to suitable position,it can let
tool need not return to mechanical zero point , increase
efficiency in changing the tool, the usage of this command is
the same as G28 only expect returned point。 Floating reference
position return command , usually use in the position of
automatically change the tool differ from the origin point 。
Movement mode G00。

<notice>usually this command use in automatically change the


tool,for safety,before do G30,need to cancel the tool
compensation function。
Example :
Y Third
reference
point Second reference point

workpiece

B (75,25)
C (15,10)
A (60,10)
X
Mechanical origin point

Program description:presume tool is in A (60,10)


1. to second reference point -------- G30 P2 X75.0 Y25.0;//AÆBÆ second
reference point

- 28 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

2. to third reference point -------- G30 P3 X15.0 Y10.0;//AÆCÆ third reference


point

- 29 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.12 G31:SKIP FUNCTION

command form:G31 X__ Y__ Z__ F__;

X、Y、Z:specified point
F:feedrate

description:skip command use in a unknow program point,and it specify that point,


when measurement runs into impede,when machine get skip signal,
LADDER C BIT ON,G31 will record the present mechanical position
and interrupt motion of G31,run next block。

Example one:increment command(G91)

Skip signal is input here(contact point)


100.0

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

Example two:absolute command for 1 axes(G90)


Y100.0

Skip signal is input here

Zero point X200.0


Actual motion
Motion without skip signal
Program description:
N001 G31 G90 X200.0 F100;//original path until running into impede
N002 X200.0 Y100.0;//use zero point to be the relative coordinate to change the
path to the specified position,and it does not wait to the
finished of front block。

Example three:absolute command for 2 axes(G90)

(130,70)
Skip signal is input here

Zero point (100,0)


Actual motion
Motion without skip signal
Program description:
N001 G31 G90 X100.0 F1000;// original path until running into impede
N002 X130.0 Y70.0;// use zero point to be opposite coordinate to change
the path to specify position,it does not wait to the
finished of front block

- 31 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.13 G33:THREAD INTERPOLATION

command form:
G33 Z F ;

Z : Absolute command(G90) , coordinates of Z axis for end


point;
Increment command(G91) , for length of thread in axle
direction;
F: the thread of a screw(0.01mm);
description:
when spindle turned ,at the same time tool feed in Z axis
direction,after repeating many times,finish thread interpolation。
In general, the lag of the servo system ,etc. They will produce
somewhat incorrect leads at the starting and ending points of a
thread cut. To compensate for this ,a thread cutting length
somewhat longer than required should be specified, in thread
interpolation, limit of spindle speed(R):

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

Program form:G33 Z10.0 F1.5;


//thread cutting at a pitch of 1.5mm,the end is at Z axis 10mm

- 33 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.14 G40/G41/G42:CUTTER COMPENSTAION


command form:
G41
X Y Z ;
G42

G40;

G41: cutter compensation left。


G42: cutter compensation right。
G40: cutter compensation cancel。
X、 Y: end coordinate of each axis。
D : code for specifying as the cutter compensation value。

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

2.direction decide of cutter compensation:

compensation
G41 G value positive negative
code
Compensation Compensation
G41
G42 left right
G40 Compensation Compensation
G42
right left

G41 CW

G41

CCW

a. G41-outline cut (CW) b. G41-inline cut (CCW)

G42
CCW
CW

G42

c. G42-outline cut (CCW) d. G42-inline cut (CW)

3.cutter compensation of corner interpolartion:

- 35 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

<1>. When the corner 90°≦α<180°

a. straight line Æ straight line

Programmed path

Tool center path

b. straight line Æ arc

r Programmed path
Tool center path
S L C

c. arc Æ straight line

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

<2>. When corner α<90°

- 36 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

a. straight line Æ strainght line

L r α

S Programmed path
r
L
Tool center path
L

b. straight line Æ arc


Tool center path
Programmed path

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

Tool center path Programmed path

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

2. if under MDI mode,can not use cutter compensation。


3. G41/G42 and G40 can not be used with G02 and G03 in the same block,only can
use with G00 and G01 in the same block。
4. when processing the step shape workpiece,if the step higher than workpiece
radius ,then system will send alarm because of 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

N017 M09;//cutting liquid OFF


N018 M05;//spindle stop
N019 M30;//program end

- 40 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.15 G43/G44/G49:TOOL LENGTH COMPENSATION

command form:
G43
Z H ;
G44

G49;

G43: compensation along positive direction;


G44: compensation along negative direction;
G49: compensation cancel;
Z: Z axis end coordinates;
H : tool number;

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。

Compensation value setting: (conslut『 milling machine controller


manual』 )
First way:use manual that let the tool go down from machine zero
point of Z axis until it touch the surface of workpiece,
enter the ditance to tool setup in operation interface
and do this for each tools. Set the number of tool in H
value of program command form。
Second way:chose a tool to be basis,in system operation interface
do tool length adjust in work coordinates setting to
G54 system, after that we can use it to be the
difference between tools of basis tool,we can convert
length of compensation。

- 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

Tool NO.1 diameter


20mm

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

command form:X__Y __Z __ I__ J__ K__


P__
X、Y、Z:center coordinate value of scaling;
I、J、K:scaling magnification for X axis Y axis and Z axis respectively;
P : scaling magnification for X axis Y axis and Z axis are the same
magnification;
Description:G51 let the tool path magnify and reduce at our own choise。
G50 scaling cancel。

Example:

Y (100,150) (150,150)
N005 Program path-before scaling

N004 N006

Actual path-after scaling

(50,70) (125,90 ) (200,70)


center of scaling
N003 N007

N002 (50,50) N008 (200,50)


N009

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

N006 G01 X200.0 Y70.0;// linear interpolation


N007 Y50.0;
N008 X50.0;
N009 G00 X0.0 Y0.0;//return
N010 G50;//scaling cancel
N011 M30;//program end

- 45 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.17 G51.1、G50.1:PROGRAMMABLE MIRROR IMAGE

command form:

G51.1 X___Y___Z___;

G50.1 ;programmable mirror image cancel

X、Y、Z:mirror point (axis) coordinate value;

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

1. if there is only one axis specify mirror image on specified plane,

circular、 tool length compensation or the direction of coordinate

rotation or direction of compensation,all of those execute reverse。

2. because of this function use in part coordinates,when counter reset

or work coordinates change, center of mirror image is changed。

3. G28, G30 in programmable mirror image, before the mid-point ,

programmable mirror image is effective , after the mid-point ,

programmable mirror image is not execute。

4. execute G29 in programmable mirror image, that is effective to

mirror image of mid-point。

- 46 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

Notice:

Execute mirror image cancel out of the center point, absolute

value can not match with mechanical position, as the below PIC

(this status continues until executing G90、 G28 or G30)。 If you

specify the center of mirror image again in the absoluted static


status, it will be specified to a unable expect position。 Please

use absolute positioning after mirror image cancel。

Absolute value(specified position Mechanical position


by program)

Use increment to move after


canceling mirror image

Mirror image
cancel

Specify the axis of symmery

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

Tool path that


map X=60 O
(10,75) (40,75) A (80,75) B (120,75)
Y=55
symmery axis X=60,Y=55 (80,35) (120,35)

Tool path that


map Y=55
(80,15) (120,5)

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

Example two:processing example

Y
Thickness
10mm

Original interpolation path


X=0 tool strating point after
Program Original tool starting
mirror image zero point X point and
And X=0,Y=0 tool starting
Y=0 tool starting
point after mirror image
point after mirror
image

Program description:process a trough that flower shaped


N001 T1 S1000 M03;//tool No.1(diameter 10mm),1000rpm(CW)
N002 G41 D01;//set cutter compensation left of tool No.1(D01 = 5)
N003 M98 H100;//execute sub-program
N004 G51.1 X0.0;//execute programmable mirror image at symmery axis X=0
N005 M98 H100;//execute sub-program
N006 G50.1;//programmable mirror image cancel
N007 G51.1 X0.0 Y0.0;// execute programmable mirror image at symmery point
X=0, Y=0
N008 M98 H100;// execute sub-program
N009 G50.1;// programmable mirror image cancel
N0010 G51.1 Y0.0;// execute programmable mirror image at symmery axis Y=0
N0011 M98 H100;// execute sub-program
N0012 G50.1;// programmable mirror image cancel
N0013 G40;//cutter compensation cancel
N0014 M05;//spindle stops
N0015 M30;//program ends

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

G03 X40.5415 Y29.2641 R50.0;// circular interpolation(CCW),radius 50mm


G03 X29.2641 Y40.5415 R8.0;// circular interpolation(CCW),radius 8mm
G03 X7.9744 Y49.36 R50.0;// circular interpolation(CCW),radius 50mm
G03 X0.0 Y58.0 R8.0;// circular interpolation(CCW),radius 50mm
G00 Z10.0;//positioning to above of end point
M99 ;//sub-program end,continue to execute main program

- 50 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.18 G52:LOCAL COORDINATE SYSTEM

command form:

G52 X__ Y__ Z__ ;

X、Y、Z:coordinate values

Description:specify a work coordinate system(G54~G59),when workpiece need to


set another coordinate system,that coordinate system is local
coordinate system。
G52 X0.0 Y0.0 Z0.0:cancel the coordinate system

Coordinate system:

Local 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

1.2.19 G53:MECHINE COORDICATE SYSTEM SELECTION

command form:
G53 X___ Y___ Z___ ;

X:move to specify machine coordinate of X position。


Y:move to specify machine coordinate of Y position。
Z:move to specify machine coordinate of Z position。
Description:
Mechine origin point is the fixed origrn point when factory build the CNC
machine,this coordinate system is fixed;when G53 is specified tool will
move to the specified position on mechine coordinate,when tool returns to
mechine zero point(0,0,0),this point is the origin point of mechine coordinate
system。
<notice>:
1. G53 only effective in specified block;
2. G53 only effective absolute moed(G90),not effective in increment
mode(G91);
3. before specify G53,must cancel related cutter compensation ,tool length
compensation or position compensation;
4. before use G53 to set coordinate system,must set coordinate system on the
basement of reference return position by manual。

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

N001 G92 X-200.0 Y-100.0;//specify to basic coordinate system


N002 G54 G90 X100.0 Y200.0;//to specified postion on workpiece
coordinate system
N003 G53 X300.0 Y100.0;//to specified position on mechine coordinate
system
N004 X300.0 Y0;
//because of G53 only effective in one block,this block continue G54 to the
specified position on workpiece coordinate system
N005 G52 X300.0 Y200.0;//set local coordinate to specified position on
workpiece coordinate system
N006 X0.0 Y0.0;

- 55 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.20 G54...G59.9:WORKPIECE COORDICATE SELECTION

command form:
G54
G55
G56
G57
G58
G59 X__ Y__ Z__ ;
G59.1
G59.2


G59.9

G54: 1st workpiece coordinate system


: :
: :
th
G59: 6 workpiece coordinate system
G59.1:7th workpiece coordinate system
:
:
G59.9:15th workpiece coordinate system

X、Y、Z:move to specified position on setting workpiece system;

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:

G54 G55 G56


Y

G57 G58 G59

Program
coordinate
Program zero point X
system

- 57 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.21 G64:CUTTING MODE


command form:
G64 ;

Description:G64 is smillar to G09、G61 in usage,NC use smooth cutting face mode


to cut。This mode does not decelerate and stop between G61 and reverse
cutting feed block,the mode will continue to execute next block。G64
can be canceled by G61、G62、G63。

Command name G code range description


When tool decelerate
to the end of path .The
precision will have
Only effective in block with
error in the corner
Exact stop G09 G09。
when the tool turn a
corner. We use G09 to
control the error。
G61 is simullar to
G61 effective until we set G09. The difference is
Exact stop G61 G62、G63、G64。 G61 effective until we
set G62、G63、G64。
Tool does not
decelerate on the end
G64 effective until we set
of path , and continue
Cutting mode G64 G61、G62、G63。
to execute next path
after to specified point

- 58 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.22 G65:SIMPLE CALL

command form:
G65 P L ;

P:number of the program to call;


L:repetition count;

Description:after calling macro,P is called to execute,but it effective only in the


block with G65;please consult SYNTEC『OPEN CNC Macro develop tools
manual』。

1.2.23 G66、G67:MACRO CALL

command form:
G66 P L ;macro call
G67 ;macro call cancel

P:number of the program to call;


L:repetition count;

Description:after G66 is called,P is called to execute,until use G67 to cancel it;


please consult SYNTEC『OPEN CNC Macro develop tools manual』。

- 59 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.24 G68/69:COORDINATE ROTATION


format
start coordinate rotation
(G17) G68 X_ Y_ R_;
G18 G68 Z_ X_ R_;
G19 G68 Y_ Z_ R_;

X_,Y_,Z_ absolute coordinate of center of rotation


R_ angle of rotation

Disable coordinate rotation


G69;

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

G03 X50. Y99.207 R8.;


M99; // orbit sub-program return
Program edit

Absolute mode

Ready Auto run alarm

stepping continue Enlarge and return cancel


reduce

- 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

G90 G00 X-70. Y10.;


G91 G03 X-20. R10.;
G03 Y-20. R10.;
G03 X20. R10.;
G03 Y20. R10.;
M99; // sub-program return(flower)
Program edit

Absolute mode

Ready Auto run alarm

stepping continue Enlarge and return cancel


reduce

- 63 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.25 G70/G71:UNIT SETTING OF ENGLISH/METRIC

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

1.2.25.1 Decimal Point Input

When parameter is inputed by decimal point input,will to be the common


measurement unit,mm、inch、sec…etc.,if input by whole number ,it will
to be the Min unit that system defualt,µm、ms…etc.
example:
decimal point: {{.{{
whole number: {{{{

- 64 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

Cycle permform function

G Code Cutting Bottom of the hole Escape Application


Intermittent Speedy High speed peck drill
G73 ----
cutting feed movement cycle
After stoping, spindle rotate Cutting
G74 Cutting feed Left hand taping cycle
clockwise feed
Spindle location stop and Speedy
G76 Cutting feed Fine boring cycle
offset a displacement value movement
G80 ---- ---- ---- Cycle cancel
Speedy
G81 Cutting feed ---- Drilling cycle
movement
Speedy Drilling cycle of dwell
G82 Cutting feed Dwell
movement on the hole bottom
Intermittent Speedy
G83 ---- Peck drill cycle
cutting feed movement
Cutting
G84 Cutting feed Spindle reverse after dwell Tapping drilling cycle
feed
Cutting
G85 Cutting feed ---- Drilling cycle
feed
Speedy
G86 Cutting feed Spindle dwell Boring cycle
movement
Speedy Fine boring cycle of
*G87 Cutting feed Spindle rotate CW
movement back side
Manual Fine boring cycle of
*G88 Cutting feed Spindle stop after dwell
movement half automatiom
Cutting Boring cycle of dwell
G89 Cutting feed Dwell
feed on the hole bottom

Fixed cycle address and meaning

Address Address meaning


G Selection of fixed cycle
X Selection position of drilling point(increment or absolute)
Y Selection position of drilling point(increment or absolute)
Z Selection position of hole bottom(increment or absolute)
P Dwell time when hole is in the bottom
Cutting value in G73 、 G83 , or specified movement value
Q
(increment) in G76、G87

- 65 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

R Selection of R position(absolute or increment)


F Selection of federate
L Specify fixed cycle times 0~999

G17、G18、G19 can set axis of drilling,list as below:

G Code Plane Axis of drilling


G17 XY plane Z axis
G18 ZX plane Y axis
G19 YZ plane X axis
Return to R point:
When tool perform to the bottom of the hole,the tool can return to initial
position or R point。And that is decided by G98/G99,G98 is back to initial
position,G99 is back to R point
Number of repeats K:
If we want to perform mamy holes in the same distance,we can specify
nimberof repeats K,range of K 0∼9999,but the first hole need to use
increment mode(G91) to specify,or it will repeat drilling in the same place。
When K=0,drilling data will be setted,X,Y movement command cannot be
executed in block,drilling can not be execute too。
Cancel cycle:
G80 or G code of 01 group(G00/G01/G02/G03…ect.) can cancle cycle。

Increment (G91)/ absolute(G90) mode:

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 ;

X or Y :hole position data(absolute/increment)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial level to R point level(dierctional)
Q :depth of cut for each cutting feed(increment and positive,minus will be
ignore)
F :feedrate
K :number of repeats(movement of repeats and action of drilling ,G91
incremant effective)
X,Y,Z,R can use G90/G91 to deicde absolute or increment

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:

1. use G00 to mive to specified (X,Y) when performance start


2. use G00 to reach specified R point。

3. use G01 to interpolate a distance Q at the present depth

4. use G00 to return a distance d (CNC parameter 4002)

5. repeat drilling hole until reach the Z point

- 67 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

6. use G00 to return initial point(G98) or programmable R point(G99)

Notes:

1. d distance is difined in CNC parameter No.4002。


2. before using G73,please use M Code let the drill start to turn。
3. if M Code and G73 are specified in the same block ,this M Code only
executes in the first time of positioning in that block,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。
4. G73 is module G Code ,when use G73 once ,it is effectively always ,we only
give the (X,Y) in the next line of program ,then controller will start to drill of
(X,Y)
5. this module G code ,use G80 to cancel ,or G00 ,G01,G02,G03 or other cycle
this G code will be canceled automatically,

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

X10. Y10. Z-20.; // hole 5,and set new Z point be -20


G80;
M05; // stop drill
M02;

- 69 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.27 G74:LEFT HAND TAPING CYCLE

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

(X,Y) Initial point (X,Y) Initial point

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:

1.use G00 to mive to specified(X,Y) when start to perform


2.use G00 to specified point R。

3.use G01 to reach the bottom of the hole ,point Z

4.dwell P(s) then revese the drill

5.use G01 raise to point R

- 70 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

6.dwell P(s) then reverse the drill

7.use G00 to raise to initial point (G98) or programmable point R(G99)

tapping pitch/feed rate reduce :

G94 : F (mm/min) =S (r.p.m) * P (mm/rev)

G95: F (mm/rev) = P (mm/rev)

G74 when performing ,feed rate(F) ,spindle r.p.m(S) ,they are not controlled by
turning switch(fixed at 100%)
Note:

1.before G74,use M Code let drill start to rotate CCW


2.if M Code and G74 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。G74 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 module G code ,use G80 to cancel ,when program run into G00 , G01,
G02 , G03 or other cycle ,this module G code will be canceled automatically,
5.because there is a little time when spindle CW to CCW in tapping ,please use
P add dwell in G code
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 that R specified only be setted in blocks of executing drilling,it can not
be setted in blocks of no executing drilling。
4、G code 01 group and G74 can be specified in the same block,or G74 Canned
Cycle will be canceled。
5、in Canned Cycle,tool length compensation(G41/G42/G40) will be ignored。

Program example:

F1000. S500;
G90;
G00 X0. Y0. Z10.; // positioning to initial point
G17;

- 71 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

M04; // start drill to rotate CCW


G90 G99;
//specify point R、point Z and hole 1 coordinate values,dwell 2 s
G74 X5. Y5. Z-10. R-5. P2.;
X15.; // hole 2
Y15.; // hole 3
G98 X5.; // hole 4,and set to return to initial point
X10. Y10. Z-20.; // hole 5,and set new point Z to be -20.
G80;
M05; // drill stops
M02;

- 72 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.28 G76:FINE BORING CYCLE

command form:

G76 X Y Z R Q P F K ;

X or Y :hole positon data(absolute/increment position)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
Q :shift amount at the bottom of the hole(positive,negative will be ignored)
P :dwell time at the bottom of the hole(s)
F :feedrate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point


Rotate CCW
R point R point
Rotate CCW
Dwell P(s) q Z point Dwell P(s) q Z point
OSS OSS

Tool

OSS
(Oriented Spindle Stop) offset q

Oriented Spindle Stop(OSS) PIC

- 73 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

Description:

1. use G00 to move tool to specified (X, Y) point ,when performance start

2. use G00 reach the specified R point(not include spindle positioning)

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

5. use G00 raise to initial point (G98) or programmable point R (G99)

6. drill reverse start

※ 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。

※ OSS(Oriented Spindle Stop) direction is decided by parameter No. 4020:


Parameter G17 G18 G19
4020
0 +X +Z +Y
1 -X -Z -Y
2 +Y +X +Z
3 -Y -X -Z
Note:

1. before G76,use M Code let drill start to rotate CW。


2. if M Code and G76 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。
4. G76 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)
5. this module G code ,use G80 to cancel ,when program run into G00 , G01,
G02 , G03 or other cycle ,this module G code will be canceled automatically,

- 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

1.2.29 G81:DRILLING CYCLE

command form:

G81 X Y Z R F K ;

X or Y :hole position data(absolute/increment positon)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point

R point R point

Z point Z point
Dwell P(s) Dwell P(s)

Description:

1. use G00 to positioning to specified (X,Y) when start to perform


2. use G00 to reach specified point R。

3. use G01 to reach point Z the bottom of the hole


4. use G00 to raise to initial point(G98) or program point R(G99)

- 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

1.2.30 G82:DRILLING CYCLE OF DWELL ON THE HOLE

BOTTOM

command form:
G82 X Y Z R P F K ;

X or Y :hole position data(absolute/increment mode)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

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:

1. use G00 to positioning to specified (X,Y) when start to perform


1. use G00 to reach specified point R。

2. use G01 to reach point Z the botteom of the hole


3. dwell P (s)
4. use G00 raise to initial point(G98) or program point R(G99)

- 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

1.2.31 G83:PECK DRILL CYCLE

Command form:
G83 X Y Z R Q F K ;

X or Y :hole position data(absolute/increment mode)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

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:

1. use G00 to positioning to specified (X,Y) when start to perform


2. use G00 to reach specified point R。

- 80 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

3. use G01 to interpolate a distance Q at the present depth


4. use G00 raise to point R of workpiece interface。

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。

8. repeat performing until the bottom of the hole point Z


9. use G00 raise to initial point (G98) or program point R(G99)

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

1.2.32 G84:TAPPING DRILLING CYCLE


Command form:
G84 X Y Z R P F K ;

X or Y :hole position data(absolute/increment mode)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point

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:

1.use G00 to positioning to specified (X,Y) when start to perform


2. use G00 to reach specified point R。

2.use G01 to reach point Z the botteom of the hole


3.dwell P(s) and reverse the drill
4.use G01 to raise to point R
5.dwell P(s) and reverse the drill
6.use G00 to raise to initial point(G98) or program point R(G99)
tapping pitch/perform speed ,reduce :

- 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

1.2.33 G85:DRILLING CYCLE

Command form:
G85 X Y Z R F K ;

X or Y :hole position data(absolute/increment mode)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point

R point R point

Z point Z point

Perform description:

1. use G00 to positioning to specified (X,Y) when start to perform


3. use G00 to reach specified point R。
2. use G01 to reach point Z the botteom of the hole,

3. G01 command to raise to point R


4. G00 command to raise to initial point(G98) or program point R(G99)

- 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

1.2.34 G86:HIGH SPEED DRILLING CYCLE

Command form:
G86 X Y Z R F K ;

X or Y :hole position data(absolute/increment mode)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feed rate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point


Drill start to rotate
R point R point
Drill start to rotate

Z point Z point

Drill stops Drill stops

Perform description:

1. use G00 to positioning to specified (X,Y) when start to perform


4. use G00 to reach specified point R。
2. use G01 to reach point Z the botteom of the hole,
3. use G00 to raise to initial point (G98) or program point R(G99)

- 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

1.2.35 G87:FINE BORING CYCLE OF BACK SIDE

Command form:
G87 X Y Z R Q P F K ;

X or Y :hole positon data(absolute/increment position)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
Q :shift amount at the bottom of the hole(positive,negative will be ignored)
P :dwell time at the bottom of the hole(s)
F :feedrate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99 not be used

OSS
Initial point
Rotate CW

OSS
Z point
Dwell P(s)

R point
Rotate CW q

Tool

OSS
(Oriented Spindle Stop) Offset q

Oriented Spindle Stop(OSS) PIC


Perform description:

- 90 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1. use G00 to positioning to specified (X,Y) when start to perform


2. after OSS stops ,use the direction that parameter 4020 specify ,and shift
amount a Q distance in reverse direction
3. use G00 to reach specified point R,shift amount a Q distance,
4. drill rotate CW。

5. G01 command to raise to point Z


6. after dwell P(s) and shift amount a Q distance in reverse direction
7. G00 command to raise to initial point
8. after drill rotate CW and shift amount a Q distance。

※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

specified to positive value(absolute value) ,data Q and data R specified only


be setted in drilling block,it will not be setted in notdrilling block。
4、G Code group 01 and G87 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;
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

1.2.36 G88:FINE BORING CYCLE OF HALF AUTOMATIOM


Command form:
G88 X Y Z R P F K ;

X or Y :hole positon data(absolute/increment position)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feedrate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point


Drill rotate CW
R point R point
Drill rotate CW

Z point Z point
Drill stops after dwell P(s) Drill stops after dwell P(s)

※ for positioning by manual。

Perform description:

1. use G00 to positioning to specified (X,Y) when start to perform


5. use G00 to reach specified point R。
2. use G01 to reach point Z the botteom of the hole,
3. drill stops after dwell P(s),

4. make the tool out of workpiece in manual mode and reset


5. use G01 to move to point R
6. use G00 to raise to initial point(G98) or program point R(G99)

- 93 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

7. drill rotate CW。

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

1.2.37 G89:BORING CYCLE OF DWELL ON THE HOLE

BOTTOM
Command form:
G89 X Y Z R P F K ;

X or Y :hole positon data(absolute/increment position)


Z :the distance from point R to the bottom of the hole(directional)
R :the distance from initial point to point R(directional)
P :dwell time at the bottom of the hole(s)
F :feedrate
K :number of repeats(repeat moving and drilling ,G91 is effectived)
X,Y,Z,R is absolute or increment mode ,deceide by G90/G91

PIC:

G98 G99

(X,Y) Initial point (X,Y) Initial point

R point R point

Z point Z point
Dwell P(s) Dwell P(s)

Description:

6. use G00 to positioning to specified (X,Y) when start to perform


7. use G00 to reach specified point R。

8. use G01 to reach point Z the botteom of the hole


9. dwell P (s)
10.use G01 to raise to point R
11.use G00 to raise to initial point (G98) or program point R(G99)

- 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

1.2.38 G90/G91:ABSOLUTE/INCREMENT COMMEND

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 :

1.first way(absolute) : G90 G00 X90.0 Y40.0 ;


//use the different distance from specified point to program
zero point , to linear interpolation to specified point

2.second way(increment) : G91 G00 X70.0 Y20.0 ;


//use the different distance from specified point to starting
point , to linear interpolation to specified point

- 97 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.39 G92:SETTING OF WORK COORDICATE SYSTEM

Command form:
G92 X Y Z ;

X、Y、Z:set the position that work coordinate system(G92) in


programmable coordinate system;

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

New setting coordinate system


X’

Tool starting point


Y 20

Program coordinate system


15
20 X
Program zero point

Format: G92 X20.0 Y15.0 Z20.0;

- 98 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.40 G94/G95:FEED UNIT SETTING

Command form:

G94 F ;

G95 F ;

Description:this command set the unit of feedrate of F function (tool


move distance per unit time or move distance per revolution) ;
G94 is feed value per minute , unit : mm/min, inch/min , G95 is
feed value per revolution , unit : mm/rev, inch/rev 。

PIC :

workpiece

G94. feed per minute(mm/min or inch/min)

- 99 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

G95. feed per revolution(mm/rev or inch/rev)

- 100 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.41 G96/G97:CONSTANT LINEAR VELOCITY CONTROL ON

SURFACE
Command form :

G96 S ; constant linear velocity control on srtface:ON


G97 S ; constant linear velocity control on srtface:OFF

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

V:surface speed,it can use G96 to specify to fixed value,unit


M/MIN or FEET/MIN 。
D : diameter of tool , unit mm
N:spindle speed,it can udr G97 to specify to fixed value,unit
RPM 。

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

Through G92 the spindle max revolution is 2000rpm , in order to


prevent spindle revolution too big 、 centrifugal too big , workpiece is
not tight with the machine , so some accident will happen ; so we use
G92 to match G96 in some times

3. spindle revolution fixed : G97 S1300 M03 ;


//for spindle keep 1300 rev/min

- 102 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.42 G134:CIRCUMFERENCE HOLE CYCLE

Command form:

G134 X Y I J K ;

X、Y:center position of circumference hole;effective by G90/G91。


I:radius of circle (r),unit is specified by G70/G71,must in positive value。
J:angle of initial drilling hole。
K:number of holes。Range 1~9999,can not be zero。It is specified positive
when CCW, negative when CW。
Description:
Use the point between X axis and angle ,start to make the circle in n parts、n
holes. The point is on the circle that center is specified (X,Y) and the radius is r。

Example﹕
r =100 mm

20°

Y=100 mm

X=200 mm

Program description:

N001 G92 X500.0 Y100.0;//set absolute zero point coordinate system


N002 G91 G81 Z-10.0 R5.0 K0 F200;
//execute drilling cycle,feedrate 200mm/min,depth 10 mm,and return to
initial point when finish
N003 G134 X200.0 Y100.0 I100.0 J20.0 K6;
//execute circumference hole cycle,X=200mm,Y=100mm drill the first hole,
radius 100mm,starting angle 20°,6 holes
N004 G80;//cancel cycle
N005 G90 G0 X0.0 Y0.0;//return to the system zero point

- 103 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.43 G135:ANGULAR STRAIGHT HOLE CYCLE

Command form:
G135 X Y I J K ;

X、Y:starting position,effective by G90/G91。


I:interval,unit is specified by G70/G71,if it is negative then use starting
point to be the center and drill holes in symmetry direction。
J:angle of horizontal,CCW is positive。
K:number of holes,include starting point,range 1~9999。

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

1.2.44 G136:ARC TYPE HOLE CYCLE

Command form:

G136 X Y I J P K ;

X、Y:center coordinate of arc,effective by G90/91。


I:radius of arc,unit is specified by G70/G71,present in positive value。
J:angle of the first drilling hole,positive in CCW。
P:interval of angle,positive in CCW。
K:number of holes。

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°

Starting angle 10°


10
0
300.0

- 105 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.45 G137.1:CHESS TYPE HOLE CYCLE

Command form:

G137.1 X Y I P J K ;

X、Y:coordinates of starting point,effectived by G90/91。


I:X axis interval,unit is decided by G70/G71,if the interval value is
positive ,then go through positive direction from starting point,if it is
negative ,then go through negative direction。
P:interval of X axis direction,range 1~9999。
J:interval of Y axis direction
K:number of Y axis direction,range 1~9999。
Description:
The starting point is specified (X,Y),we get the interval at horizontal direction
of X axis,and drill nx chess type holes。we get the interval at horizontal
direction of Y axis,and drill ny chess type holes。

Example:

ny = 8
y interval 100mm
10

10

300m nx = 10
50 0
x interval 50mm

N001 G91;//use incremental mode


N002 G81 Z-10.0 R5.0 K0 F20;
//execute drilling cycle,cutting feedrate 20mm/min,depth of each hole 10
mm,then return to initial point
N003 G137.1 X300.0 Y-100.0 I50.0 P10 J100.0 K8;

- 106 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

//execute chess type hole cycle,X=300mm,Y=-100mm to be strating point,


X axis interval is 50mm,number of the hole is 10,Y axis interval is 100mm,
number of the hole is 8

- 107 -
SYNTEC MILL MACHINE PROGRAMMING MANUAL

1.2.46 Tool Function : T Code command

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

1.2.47 Spindle Speed Function : S Code Command

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

1.2.48 Feed Function : F Code Command

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:

Ancillary function is used to control machine function ON or OFF。The description is


as below:

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。

2、M01:Selectivity program dwell


M01 is similar to M00;but M01 is controlled by "selectivity stop";when the
switch is ON,M01 is effective,program dwell;when the switch is OFF,then M01
is not effective。

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

Milling machine parameter description:


NO. Description Range Unit Operation description
4002 Drilling cycle return [0,999999999] LIU LIU Min input unit,this
tool value unit is effective by
G70/G71。
4010 Percentange of [1,100] Percentange of perform
perform feed depth feed depth to tool diameter
on perform cycle on perform cycle
plant
4020 Boring spindle stop [0,3] XY work plan
direction 0:X+,1:X-,2:Y+,3:Y-
ZX work plan
0:Z+,1:Z-,2:X+,3:X-
YZ work plan
0:Y+,1:Y-,2:Z+,3:Z-

- 111 -

You might also like