Lathe Programming ManualEN V77
Lathe Programming ManualEN V77
Lathe Programming ManualEN V77
SYNTEC
Instruction Guide of Lathe Programming
By:SYNTEC
Data:2006/11/10
Ver:7.7
-I-
SYNTEC Instruction Guide of Lathe Programming
The record of version update
item The content Date Author The latest version
01 the first craft 2005/10/01 Jerry V7.1
02 1.add G68,G69 2.Modify G10 2006/01/25 Jerry V7.2
1. modify the specification of
G01,G04,C
2. modify the feedrate F in the examples
and define its unit
03 mm/rev 2006/06/06 Jerry V7.3
04 1.add the specification of G65 G66 G67 2006/07/18 Jerry V7.4
05 1. add the specification of G12.1 G13.1 2006/07/20 Jerry V7.5
06 1. add the specification of G07.1 2006/10/05 Jerry V7.6
07 1. mdify M99 descriptions 2006/11/10 Jerry V7.7
- II -
SYNTEC Instruction Guide of Lathe Programming
Menu
- III -
SYNTEC Instruction Guide of Lathe Programming
- IV -
SYNTEC Instruction Guide of Lathe Programming
-5-
SYNTEC Instruction Guide of Lathe Programming
-6-
SYNTEC Instruction Guide of Lathe Programming
1.2、Command Description
1.2.1 G00:positioning
Format:
G00 X(U) Z(W) ;
Description:The G00 command moves a tool to the position in the workpiece system
specified with an absolute or an incremental command at a rapid traverse
rate。There is no any cutting action in this command。The main aim is
saved the movement time in no cutting status;in the lathe program,it is
usually used in the tool from machine zero point to start cutting point,or
from end point to machine zero point。In absolute mode(G90),tool
moves to specified position in coordinate system ; in increment
mode(G91),tool moves to specified position by specified distance。
Example:
X
100.0
B. (1) A.
(2) (3)
Ø100.0
O. C. D.
Ø40.0
Program description:There are several ways to make tool move from point A to point
O。There are three kinds as below:
1. Absolute mode:
(1). G00 Z0.0;// A.ÆB.
X40.0;// B.ÆO.
-7-
SYNTEC Instruction Guide of Lathe Programming
-8-
SYNTEC Instruction Guide of Lathe Programming
Format:
G01 X(U) Z(W) F ;
Example:
X
(50,160)
P7 P6
P5 P4 C2
P3 1.0
P2 P1
∅40
∅30
P0
∅20
20 40 30 20
110
Program description:
G92 X50.0 Z160.0 S10000;
//set the program zero point,max. speed 10000 rpm
T01;//use tool NO. 1
G96 S130 M03;
//constant surface speed,surface speed 130m/min,spindle rotate CW
M08;//cutting liquid ON
G00 X20.0 Z111.0;//positioning to specified point P0
G01 Z90.0 F600;//linear interpolation P0ÆP2
-9-
SYNTEC Instruction Guide of Lathe Programming
X26.0;//P2ÆP3
X30.0 Z88.0;//P3ÆP4
Z60.0;//P4ÆP5
X40.0 Z20.0;//P5ÆP6
Z0.0;//P6ÆP7
G00 X50.0;//return the tool
Z160.0;//return to zero point
M05 M09;//spindle stops,setting liquid OFF
M30;//program end
- 10 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G02 R
X(U) Z(W) F ;
G03 I K
G02:Circular Interpolation(CW)
G03:Circular Interpolation(CCW)
X(U)、Z(W):end point of the arc
R:radius of arc(under 180°)
I、K:X(Z) axis distance from starting point of arc to centered。There are
differences in positive and negative,It depends on the direction
F:Feedrate of cutting
Description:The G02、G03 command will move a specified tool along a circular arc
on XpZp plane,the parameter setting as below:
R R
Z
G02 G03
- 11 -
SYNTEC Instruction Guide of Lathe Programming
X
Centered
End point
R
U/2
X Starting point
Z W
Z
b. Use I、K
X
Centered
End point
I
U/2
X Strating point
Z W K
Z
- 12 -
SYNTEC Instruction Guide of Lathe Programming
End point
U/2
X R Starting point
Z W
Z
Centered
K
b. Use I、K
End point
U/2
X Starting point
Z W
I
Z
Centered
K
- 13 -
SYNTEC Instruction Guide of Lathe Programming
Example one:
20 20 1 O. (100,65)
P9 R=5
P8 P7
P6
R=5 R=5
P5 P4 P3
∅50
P2
∅ 20
R=5
P0
P1
Program description:
N001 T01;//use tool NO.1
N002 G92 S10000;//spindle max. speed 10000 rpm
N003 G96 S130 M03;
//constant surface speed,surface speed 130 mm/min,spindle rotate CW
N004 M08;//cutting liquid ON
N005 G00 X0.0 Z41.0;//positioning O.ÆP0
N006 G01 Z40.0 F600;//linear interpolation,feedrate 600 mm/rev,P0ÆP1
X10.0;//P1ÆP2
N007 G03 X20. Z35.0 R5.0;//circular interpolation CCW P2ÆP3,radius 5mm
N008 G01 Z25.0;//P3ÆP4
N009 G02 X30.0 Z20. R5.0;//circular interpolation CW P4ÆP5,radius 5mm
N0010 G01 X40.0;//P5ÆP6
N0011 G03 X50.0 Z15.0 R5.0;//circular interpolation CCW P6ÆP7,radius 5mm
N0012 G01 Z5.0;//P7ÆP8
N0013 G02 X60.0 Z0.0 R5.0;//circular interpolation CW P8ÆP9,radius 5mm
N0014 G00 X100.0;//tool escape,escape from workpiece
N0015 G00 Z65.0;//return to initial point
N0016 M09;//cutting liquid OFF
N0017 M05;//spindle stops
N0018 M30;//program end
- 14 -
SYNTEC Instruction Guide of Lathe Programming
Example two:
10 20 20 20 13.82 26.18
P0 (100,160)
P6 P5
P7
P8 P4
∅50
∅30
R=15
∅20
P3 P2 P1
Program description:
N001 T01;//use tool NO.1
N002 G92 S10000;//spindle max. speed 10000 rpm
N003 G96 S130 M03;
//constant surface speed,surface speed 130 mm/min,spindle rotate CW
N004 M08;//cutting liquid NO
N005 G00 X0.0 Z110.5;//positioning,close to the starting point
N006 G01 Z110.0 F500;//linear interpolation,feedrate 500mm/min
N007 G03 X20.0 Z83.82 K-15.0;
//circular interpolation CCW,P1ÆP2,radius 15 mm
N008 G01 Z70.0;//linear interpolation,P2ÆP3
X30.0;//P3ÆP4
X50.0 Z50.0;//P4ÆP5
N009 G02 X50.0 Z30.0 R10.0;
//circular interpolation CW,P5ÆP6,radius 10 mm
N0010 G03 X50.0 Z10.0 R10.0 ;
//circular interpolation CCW,P6ÆP7,radius 10 mm
N0011 G01 Z0.0;//linear interpolation,P7ÆP8
N0012 M09;//cutting liquid OFF
N0013 G00 X100.0;//tool escape,escape from workpiece
Z160.0;//return to initial point
N0014 M05;//spindle stops
N0015 M30;//program end
- 15 -
SYNTEC Instruction Guide of Lathe Programming
1.2.4 G04:Dwell
Format:
X(U)
G04 ;
P
X(U)、P:dwell time
Description:We can use G04 command to let the tool dwell a specified time when we
process to the specified position。It can cut the offscourings of iron,
improve the precision,let the surface more luminosity(as below)。When
G04 command match with G94 or G95 in usage,the unit of time is
second。※G04 command is only effective in single block。
PIC:
Example:
G04 X0.5;//dwell 0.5s
G04 U0.5;//dwell 0.5s
G04 P500;//dwell 0.5s,※Notice:P is not allowed to be decimal point
*Referenced formula:
T:dwell time (s)
Z×60
T= Z:dwell coils
N
N:rev/min
(Notice:Syntec controller didn’t offer the Command to wait for Coils Number
finish)
- 16 -
SYNTEC Instruction Guide of Lathe Programming
1.2.5 G07.1:Cylinder Interpolation
Format :
G19 Z0 C0; //select the working platform
G07.1 C ; //start the cylinder difference, C the cylinder radius
、
、 //the description of the route
、
G07.1C0; //end the cylinder difference
PIC:
Unfold 2πr
360
EX:
Program
G28 U0 W0;
T0202;
G97 S1000; // set up the rotational speed of the main shaft
G00 X50.0 Z0.;
G94 G01 X40.0 F100.;
G19 C0 Z0; // choose CZ the working platform
- 17 -
SYNTEC Instruction Guide of Lathe Programming
G07.1 C20.0; // start G07.1,the radius is 20.0
G41; // start process
G01 Z-10.0 C80.0 F150.0;
G01 Z-25.0 C90.0;
G01 Z-80.0 C225.0;
G03 Z-75.0 C270.0 R55.0;
G01 Z-25.0;
G02 Z-20.0 C280.0 R80.0;
G01 C360.0;
G40; // end process
G07.1 C0; // cancel G07.1
G01 X50.0;
G00 X100.0 Z100.0;
M30;
- 18 -
SYNTEC Instruction Guide of Lathe Programming
Description:When we process the corner,because the tool moves too fast or servo
system delays。We can not cut the exactly corner and the error occurs。
But in the situation that we need a right-angled,we can use G09 to make
it。It can let the tool deceleration when tool approaches to the corner。
When the tool reach to specified position,then the next block will be
executed。
PIC:
Specified position
X
the next block
path with G09
tool
- 19 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G10 P X Z R Q ;
or
G10 P U W C Q ;
P:offset number
Tool wear offset value:P =number of tool wear offset
Tool geometry offset value:P=10000 + number of tool geometry
offset value
X:offset value on X axis(absolute)
Y:offset value on Y axis(absolute)
Z:offset value on Z axis(absolute)
U:offset value on X axis(incremental)
V:offset value on Y axis (incremental)
W:offset value on Z axis (incremental)
R:tool nose radius offset value(absolute)
C:tool nose radius offset value (incremental)
Q:imaginary tool nose number(setting method is in next page)
- 20 -
SYNTEC Instruction Guide of Lathe Programming
- 21 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G12.1: Start polar coordinates interpolation
Linear axis
(radius axis)
- 22 -
SYNTEC Instruction Guide of Lathe Programming
With G12.1,the planes (chose by G17、G18 or G19)used before are canceled but
with G13.1 they are retored. If we reset the system polar coordinates interpolation
is canceled and use G17、G18 or G19 to assign the plane.
3. We can use G code with polar coordinates interpolation
G01 linear interpolation
G02,G03 circular interpolation
G04 pause
G40,G41,G42 tool nose radius compensation
G65,G66,G67 program calling
5. The motion along the axis of the plane of the un-polar coordinates interpolation in
polar coordinates interpolation:
The knives move along these axes and have no relationship with polar coordinates
interpolation.
Restriction :
1. the coordinates in polar coordinates interpolation:
We should set new working coordinates before G12.1 and the center of the
rotational aeis is the origin in the coordinate . With G12.1 we cannot change
coordinates absolutely(G92、G52、G53、G54~G59 and so on.).
- 23 -
SYNTEC Instruction Guide of Lathe Programming
Imagination axis
axis
程式說明:
N001 T0101
N100 M30
- 24 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G17; XpYp plane selection
Description:
When use circular interpolation command 、 tool radius
compensation command,we must use G17、G18、G19 to select the
cutting plane。
PIC :
X Z X
G17 G18 G19
chuck
workpiece Z+
Tool
Tool
seat
X+
Y+
- 25 -
SYNTEC Instruction Guide of Lathe Programming
Format:
- 26 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
1. Linear cutting cycle
X
R:rapid traverse
Z W
F:specified by F code
4(R)
Starting point
3(F) 1(R) U/2
2(F)
X/2
Z
X
R:rapid traverse
Z W
F:specified by F code
4(R)
Starting point
U/2 3(F) 1(R)
2(F)
R
X/2
*action description:
0. positioning the tool to starting point before cycle start;
1. after executing G20 command,tool move to specified X(U) position in X
direction;
2. then the tool starts cutting to the specified X(U)、Z(W) position in specified
feedrate;
- 27 -
SYNTEC Instruction Guide of Lathe Programming
3. after cutting,tool return to starting point;
4. after reaching the starting point,tool will repeat cutting in the path by changed
X(U) value;
5. when cut to specified size,the tool will stop at starting point,and the tool will
wait the next cycle。
※ when we use increment mode,the relationship of U、W、R(plus or minus) and the
tool path as below:
4 (R) 2 (F) R
2 (F) 4 (R)
R
W X
Z
(c). U<0,W<0,R>0,at ∣R∣≦∣U/2∣ (d). U>0,W<0,R>0,at ∣R∣≦∣U/2∣
4 (R) W
- 28 -
SYNTEC Instruction Guide of Lathe Programming
15 50
k. a
f. b.
g. c.
h. d. 30
i e
∅50
∅30
Z
Program description:
N001 G92 S5000;//max. speed 5000 rpm
N002 T01;//use tool NO. 1
N003 G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
N004 M08;//cutting liquid ON
N005 G00 X60.0 Z65.0;//positioning to a.(starting point)
N006 G20 X45.0 Z15.0 F600;
//execute Straight cutting cycle,feedrate 600 μm/rev, a.Æb.Æf.Æk.Æa.
X40.0;//a.Æc.Æg.Æk.Æa.
X35.0;//a.Æd.Æh.Æk.Æa.
X30.0;//a.Æe.Æi.Æk.Æa.
N007 G28 X60.0 Z70.0;
//positioning to specified mid-point then return to machine zero point
M09;//cutting liquid OFF
N007 M05;//spindle stops
N008 M30;//program ends
- 29 -
SYNTEC Instruction Guide of Lathe Programming
15 50
k. a
f.
g.
b.
h.
i c.
d. 30
e
∅50
∅35
∅30
∅20
Z
Program description:
N001 G92 S5000;//max. speed 5000 rpm
N002 T01;//use tool NO.1
N003 G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
N004 M08;//cutting liquid ON
N005 G00 X60.0 Z65.0;//positioning to a.(starting point)
N006 G20 X53.0 Z15.0 R-7.5 F600;
//Taper cutting cycle,feedrate 600 μm/rev, a.Æb.Æf.Æk.Æa.
X48.0;//a.Æc.Æg.Æk.Æa.
X42.0;//a.Æd.Æh.Æk.Æa.
X35.0;//a.Æe.Æi.Æk.Æa.
N007 G28 X60.0 Z70.0;
// positioning to specified mid-point then return to machine zero point
N008 M09;//cutting liquid OFF
N009 M05;//spindle stops
N0010 M30;//program ends
- 30 -
SYNTEC Instruction Guide of Lathe Programming
Format:
F
1.straight thread cutting cycle:G21 X(U) Z(W) H E ;
F
2.taper thread cutting cycle:G21 X(U) Z(W) R H E ;
- 31 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
1. Straight thread cutting cycle:G21 X(U) Z(W) F ;
X R:Rapid traverse
F:Specified by F code
Z W
r:value of chamfered angle,setting by
4 (R) A
parameter #4043
θ 3 (R) 1 (R) U/2
θ:angle of chamfered angle,setting by
B
2 (F)
r parameter #4018
X
Z
W F:Specified by F code
Z
r:value of chamfered angle,setting by
4 (R)
A
θ 3 (R) parameter #4043
1 (R)
B θ:angle of chamfered angle,setting by
r 2 (F) I parameter #4018
X
Z
* Action description:
6. We should positioning the tool to starting point before cycle starts;
7. After executing G24 command,tool moves at the X axis direction and reaches to
the specified X(U) position;
8. Then tool start cutting to the specified X(U)、Z(W) by specified F code;
9. After cutting,the tool returns to starting point;
10. After reaching to the starting point,tool will repeat cutting in the path by
changed X(U) value(the changed value is the value that we cutting each time,it
can reference tool feed value table in G33);
11. When tool cut to specified size,the tool will stop at starting point,and wait to the
next cycle。
- 32 -
SYNTEC Instruction Guide of Lathe Programming
4 (R) 2 (F) R
2 (F) 4 (R)
R
W X
Z
(c). U<0,W<0,R>0,at ∣R∣≦∣U/2∣ (d). U>0,W<0,R>0,at ∣R∣≦∣U/2∣
4 (R) W
1 (R) R
3 (R) 2 (F)
U/2 U/2 3 (R)
2 (F) 1 (R)
R
W 4 (R)
M40×2.5
20 45 5
- 33 -
SYNTEC Instruction Guide of Lathe Programming
Program description:
N001 T03;//use tool NO.3
N002 G97 S600 M03;//constant rotate speed,600 rpm CW
N003 G00 X50.0 Z70.0;//positioning to the starting point of cycle
N004 M08;//cutting liquid ON
N005 G21 X39.0 Z20.0 H3 F2.5;//execute thread cutting,3 teeth type,
first cycle
X38.3;//second cycle
X37.7;//third cycle
X37.3;//fourth cycle
X36.9;//fifth cycle
X36.75;//sixth cycle
N006 G28 X60.0 Z75.0;
//positioning to specified mid-point and return to machine zero point
N007 M09;//cutting liquid OFF
N008 M05;//spindle stops
N009 M30;//program ends
∅14
Program description:
N001 T03;//use tool NO.3
N002 G97 S600 M03;//constant rotate speed,600 rpm CW
N003 G00 X50.0 Z55.0;//positioning to the starting point of cycle
N004 M08;//cutting liquid ON
N005 G21 X39.0 Z15.0 R-10.0 F2.5;//execute taper thread cutting cycle,first
cycle
X38.3;//second cycle
- 34 -
SYNTEC Instruction Guide of Lathe Programming
X37.7;//third cycle
X37.3;//fourth cycle
X36.9;//fifth cycle
X36.75;//sixth cycle
N006 G28 X60.0 Z70.0;
// positioning to specified mid-point and return to machine zero point
N007 M09;//cutting liquid OFF
N008 M05;//spindle stops
N009 M30;//program ends
- 35 -
SYNTEC Instruction Guide of Lathe Programming
Format:
Description:G24 command is end face cutting cycle。It simplifies many repeating end
face cutting blocks into one single block。
- 36 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
X
R:Rapid traverse
1 (R) F:Specified by F
code
3 (F)
Z W
X/2
X
R:Rapid traverse
1 (R)
F:specified by F
3 (F)
X/2 R W
Z
Z
* Action description:
12. We should positioning the tool to starting point before cycle starts;
13. After executing G24 command,the tool will move at Z direction and reach the
specified Z(W) position;
14. Then the tool will cut to specified X(U)、Z(W) by specified feedrate;
15. After finishing cutting,the tool returns to starting point;
16. After reaching to the starting point,tool will repeat cutting in the path by
changed Z(W) value;
17. When reach to the specified size,the tool will stop at starting point,and wait the
- 37 -
SYNTEC Instruction Guide of Lathe Programming
next cycle。
R W
1 (R)
3 (F)
U/2 2 (F) 4(R) 2 (F)
U/2 4(R)
3 (F)
X
R W 1 (R)
W
1 (R)
3 (F)
U/2 2 (F) 4(R) U/2 2 (F) 4(R)
3 (F) 1 (R)
R W R
(52,35)
Fourth cycle
Second cycle
Third cycle
First cycle
∅50
∅20
Z
10 20 5
Program description:
N001 G92 S3000;//max. rotate speed 3000 rpm
N002 T01;//use tool NO. 1
- 38 -
SYNTEC Instruction Guide of Lathe Programming
N003 G96 S130 M03;//constant surface speed,surface speed 130 m/min
N004 M08;//cutting liquid ON
N005 G00 X52.0 Z35.0;//positioning to starting point of cycle
N006 G24 X20.0 Z25.0 F600;
//execute straight end face cutting,feedrate 600 μm/rev,first cycle
Z20.0;//second cycle
Z15.0;//third cycle
Z10.0;//fourth cycle
N007 G28 X70.0 Z40.0;
//positioning to specified mid-point,then return to the machine zero point
N008 M09;//cutting liquid OFF
N009 M05;//spindle stops
N0010 M30;//program ends
Third cycle
First cycle
(52,35)
∅50
∅20
Z
10 10 10 5
Program description:
N001 G92 S3000;//max. rotate speed 3000 rpm
N002 T01;//use tool NO.1
N003 G96 S130 M03;//constant surface speed,surface speed 130 m/min
N004 M08;//cutting liquid ON
N005 G00 X52.0 Z35.0;//positioning to starting point of cycle
N006 G24 X20.0 Z32.0 R-10.0 F600;
//execute taper end face cutting cycle,feedrate 600 μm/rev,first cycle
Z28.0;//second cycle
Z24.0;//third cycle
Z20.0;//fourth cycle
- 39 -
SYNTEC Instruction Guide of Lathe Programming
N007 G28 X70.0 Z35.0;
//positioning to specified mid-point,then return to machine zero point
N008 M09;//cutting liquid OFF
N009 M05;//spindle stops
N0010 M30;//program ends
- 40 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G28 X(U) Z(W) ;
X、Z:specified mid-point(absolute)
U、W:specified mid-point(incremental)
PIC:
mid-point
Reference point
Initial
point Path under G00,the tool will crash into the workpiece
- 41 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G29 X(U) Z(W) ;
X、Z:specified point(absolute)
U、W:specified point(incremental)
PIC:
mid-point
Refence point
Specified
point
The path under G00,the tool will crash into the workpiece
- 42 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G30 Pn X(U) Z(W) ;
Example: P1
mid-point (50, 78) Machine zero point
P0 P3
∅30
P2
25 50
Program description:
Path one ………G30 P01 X50.0 Z78.0;// P0Æmid-pointÆP1
Path two ………G30 P02 X50.0 Z78.0;// P0Æmid-pointÆP2
or G30 X50.0 Z78.0;//default P2
Path three ………G30 P03 X50.0 Z78.0;// P0Æmid-pointÆP3
- 43 -
SYNTEC Instruction Guide of Lathe Programming
X、Z:specified position(absolute)
U、W:specified position(incremental)
F:feedrate
100.0
Actual motion
Motion without skip signal
Program description:
N001 G31 W100.0 F100;//origin path until run into contact point
N002 U100.0;//use contact point to be the relative coordinate and change the
path to specified position
- 44 -
SYNTEC Instruction Guide of Lathe Programming
Example two:Absolute mode for one axis
X100.0
X
X (130,70)
Skip signal input
- 45 -
SYNTEC Instruction Guide of Lathe Programming
Format:
F
(1)continuous thread cutting: G33 Z(W) Q ;
E
F
(2)circular threading: G33 X(U) Z(W) Q ;
E
F
(3)multiple-thread cutting: G33 X(U) Q ;
E
X、Z:specified position(absolute)
U、W:specified position(incremental)
F: lead in longitudinal directionÅcommon thread、 Metric
system
E: lead in longitudinal directionÅpricise thread、 English
system
Q: the shift of the threading start angle, this function can
let the tool starting cutting point be the same when
cutting rotating workpiece。 Use in multiple-thread
cutting, we can use default value Q= 0 ° when
single-thread cutting, (range: 0.001~360.000° )
- 46 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
X
W
End point
U/2
Point of starting cutting
α
Starting point
Z L2 L1
Z
X ※ When α<45°,pitch in Z direction
Notice:
※ Input unit and modal of E、F value as below table:table 1. Metric system、table
2. English system
Command
F(inch/rev) E(inch/rev) E(pc/inch) F(inch/rev) E(inch/rev) E(pc/inch) F(inch/rev) E(inch/rev) E(pc/inch)
position
【Note 1】If the conversion feedrate is over than Max. cutting feedrate,the pitch will
vary,the pitch is not the specified one。
(1). Slant thread cutting command and spiral thread cutting command can not
use in constant surface speed mode。
(2). The spindle speed should be fixed from coarse cutting to fine cutting。
- 47 -
SYNTEC Instruction Guide of Lathe Programming
(3). If we use dwell in thread cutting,the thread will be damaged。So we can not
use dwell when thread cutting。If we push down the dwell button,the thread
cutting will be ended(not in G33 mode)。And it will stop in the next block。
(4). In the beginning of thread cutting,the varying cutting feed rate will be
compared with the limitation of cutting speed。The alarm of error operation
will be occurred if it excess the speed limitation【Note 1】。
(5). In the thread cutting,it is possible that the varying cutting speed excess the
limitation cutting speed for keeping the constant pitch。
(6). The limitation of spindle speed is as below:
Max. feedrate
1≦ Revolution( R ) ≦
Lead of thread
R: spindle rotate speed(rpm)
Lead of thread(F): mm or inch
Feedrate: mm/min or inch/min
(7). At the near of start and end thread cutting point,the incorrect pitch length
will occur due to the delayed of servo system。Therefore the thread length
we want should be the specified thread length(L1、L2) plus the thread
length。
S×P
L1∼
400
L2 ∼ S×P
1800
Tool
L2 L1
L1:Min. distance that tool from stop to specified speed in thread cutting
L2:Min. distance that tool from specified speed to stop in thread cutting
(8). The external speed control is effective during the thread cutting。But the
feed rate of external speed control and revolving of spindle could not be
allowed executed in synchronous。
- 48 -
SYNTEC Instruction Guide of Lathe Programming
(9). In non-synchronous feed(G94) command,the thread cutting command will
become synchronous feed type。
(10). During the thread cutting,manual adjustment of speed is effective,too。If
you manually adjust the speed during thread cutting,it will produce an
incorrect thread cutting due to delay of servo system。
(11). It will execute thread cutting and temporarily cancel tool nose radius
compensation when there is any thread cutting command executed during
tool nose radius compensation。
(12). During the G33 command executing,if you change to other automatic
modes it will not execute thread cutting。And terminate automatic spinning
after single block executing。
(13). During the G33 command executing,if you change to manual mode it will
not execute thread cutting。And terminate automatic spinning after single
block executing。During the spinning of single block,it will not execute
thread cutting 。 And terminate automatic spinning after single block
executing。
(14). During the thread cutting , it begins to move till the appearance of
synchronous signal per one revolution from spinning encoder。But in case
of a thread cutting on a system which there is another thread cutting
command,it will start to move and not wait the appearance of synchronous
signal per one revolution from backward encoder。Therefore,please do not
execute duplicated system of thread cutting command。
(15). Tool feed value of thread cutting reference table:
- 49 -
SYNTEC Instruction Guide of Lathe Programming
Example one:
T03.
M20×2.5
(30,10)
5 25 10
Program description:
T03;//use tool NO.3
G97 S1000 M03;//spindle rotate CW 1000 rpm,constant rotate speed
M08;//cutting liquid ON
G00 X30.0 Z10.0;//positioning to starting point of cutting
X19.0;//
G33 Z-30.0 F2.5;//
G00 X30.0;//
First cutting 1.0 mm
Z10.0;//
X18.3;//
- 50 -
SYNTEC Instruction Guide of Lathe Programming
- 51 -
SYNTEC Instruction Guide of Lathe Programming
T03.
Example two:Pitch = 2.5
T=1:5
(40,10)
∅20
∅15
5 25 10
Program description:
T03;//use tool NO.3
G97 S1000 M03;//spindle rotate CW 1000 rpm,constant rotate speed
M08;//cutting liquid ON
G00 X40.0 Z10.0;//positioning to starting point of cutting
X12.0;//
G33 X20.0 Z-30.0 F2.5;//
G00 X40.0;//
First cutting 1.0 mm
Z10.0;//
X11.3;//
G33 X19.3 Z-30.0 F2.5;//
G00 X40.0;//
Z10.0;// Second cutting 0.7 mm
X10.7;//
- 52 -
SYNTEC Instruction Guide of Lathe Programming
G33 X17.9 Z-30.0 F2.5;//
G00 X40.0;// Fifth cutting 0.4 mm
Z10.0;//
X9.75;//
G33 X17.75 Z-30.0 F2.5;//
G00 X40.0;// Sixth cutting 0.15 mm
Z10.0;//
G28 X50.0 Z30.0;
//positioning to specified mid-point,and return to machine zero point
M09;//cutting liquid OFF
M05;//spindle stops
M30;//program ends
- 53 -
SYNTEC Instruction Guide of Lathe Programming
Description:
Two code form : for tool number、 tool length compensation
and wear compensation selection。
Four code form:the front two code for tool number,the back
two code for tool length and wear compensation。
Z
Tool length compensation at Z axis
- 54 -
SYNTEC Instruction Guide of Lathe Programming
Basic tool
Basic point
Z
Tool length compensation at Z axis
- 55 -
SYNTEC Instruction Guide of Lathe Programming
N01 T0100;
Path after
compensation N04
N02 G01 X10.0 Z10.0 F200;
N02 N05
N03 G01 X13.0 Z15.0 F300;
N03
Compensation
value (old)
Compensation
value((new)
N04 T0200;
N05 G01 X13.0 Z20.0 F205;
Path of perform
Path of perform
Path of perform
- 56 -
SYNTEC Instruction Guide of Lathe Programming
Tool nose
- 57 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G41
X(U) Z(W) ;
G42
G40;compensation cancel
X、Z:specified position(absolute)
U、W:specified position(incremental)
Description:We grind a small and round nose on the tip of tool,it can increase
intension of tool tip、increase the life of tool、decrease the stress、help
to release the hot and improve the smooth of surface。It is called tool
nose,and its radius is called tool nose radius。But when we use tool
nose to cut corner、slant line or an arc,errors will occur because of the
arc of tool tip,we can not perform the exactly shape of workpiece,we
can use G41、G42 to adjust the error of tool nose,it can compute the
error of tool nose radius exactly and compensate it。
- 58 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
1. Relationship between tool feed direction and workpiece,setting of
compensation:
workpiece
X
Cutting direction G41
G42
Cutting direction
workpiece
X X
G42
G41
G41
Z Z
- 59 -
SYNTEC Instruction Guide of Lathe Programming
3. Imaginary tool nose number setting:
- 60 -
SYNTEC Instruction Guide of Lathe Programming
1. Compensation Starts:
When a block which satisfies all the following conditions is executed in start
mode, the system enters the offset mode. Control during this operation is called
start-up
(a). G41 or G42 is contained in the block, or has been specified to set the
system enters the offset mode;
(b). The offset number of tool nose compensation is not “ 00 ”;
(c). X or Z moves are specified in the block and the move distance is not
zero
- 61 -
SYNTEC Instruction Guide of Lathe Programming
Programmed path
r r
r
SL S
L
L Tool nose radius center path C
Programmed path
L G42
L G42 S
L α
S
L α
Program path
L
Program path
L
L C
L Tool nose radius center path
r L
G41
α:<1°
- 62 -
SYNTEC Instruction Guide of Lathe Programming
2. Compensation mode:
In compensation mode,it uses compensation even during positioning;In
compensation mode,it does not specify movement block(M Function or dwell .etc.) it
can not be specified continuity;If it is specified continuity,over cutting or not enough
cutting will occur。
r:compensation value
r Program path
r r
Program path
Compensation vector
Program path
r
- 63 -
SYNTEC Instruction Guide of Lathe Programming
( b ). Outer Side(90°≦α<180°)
( i ). LinearÆLinear ( ii ). LinearÆCircular
α α
Program path
r
L L r
α C
r
Program path r
C r
r L
S L
C Program path
L L Tool nose radius center path
S
Tool nose radius center path
L L
L r α
L r α
Program path
L r
r Program path
L
S L
S C
L Tool nose radius center path
Tool nose radius center path
C
L r α
L r α
Program path
L r
Program path
L r
S L C
S L L Tool nose radius center path
Tool nose radius center path
3. Compensation Cancel
In compensation mode,when block satisfied below following conditions,system
will enter cancel mode:
- 64 -
SYNTEC Instruction Guide of Lathe Programming
a. Specify G40
b. The number of tool nose radius compensation is specified to “0”
α α
Program path
r Program path r
G40 G40
L:Tool nose radius center path S
C S
L L
G40
G40 α
α L
L
Program path r
r r
r
S L
L C
Tool nose radius center path L S Program path
G40 L
G40 L
α r L
α r L
Program path
r
Program path L
r
L S L
C
Tool nose radius center path S L
Tool nose radius center path
( d ). Tool movement around the outside linearÆlinear at an acute angle less than 1
degree(α<1°)
S L Program path
r L
G40
α:less then 1 degree
- 65 -
SYNTEC Instruction Guide of Lathe Programming
Example one:
∅30
P1
∅20
Z
10 10 30 20
70
Program description:
T02;//use tool NO.2
G92 S10000;//max. rotate speed,10000rpm
G96 S130 M03;//constant surface speed,spindle rotate 130 m/min CW
M08;//cutting liquid ON
G42 X21.0 Z0.0;//tool compensation start-up,move to P1
G01 X25.0 Z-2.0 F600;//linear interpolation,feedrate 600 μm/rev,
P1ÆP2
Z-20.0;// P2ÆP3
X30.0 Z-50.0;// P3ÆP4
Z-57.0;P4ÆP5
G02 X36.0 Z-60.0 R3.0;// P5ÆP6
G01 X39.0;// P6ÆP7
G03 X45.0 Z-63.0 R3.0;// P7ÆP8
G01 Z-70.0;// P8ÆP9
X60.0;//return the tool
G28 X70.0 Z-60.0;
//positioning to specified mid-point,then return to machine
zero point
M09;//cutting liquid OFF
- 66 -
SYNTEC Instruction Guide of Lathe Programming
M05;//spindle stops
M30;//program ends
Example two:
OFZ= 3.0 mm
OFX= -20.0 mm
Standard tool
0.5×45°
Tool nose radius=1.0 Tool will use
P5 P3 P1
P4 P2
P6 R5
∅38
∅46
P7
20 13
Program description:
T02;//use tool NO.2
G92 S1000;//max. rotate speed,10000rpm
G96 S130 M03;//constant surface speed,spindle rotate 130 m/min CW
M08;//cutting liquid ON
G41 X47.0 Z0.0;//start tool compensation,move to P1
G01 X46.0 Z-0.5 F600;// linear interpolation,feedrate 600μm/rev, P1Æ P2
Z-13.0;//P2Æ P3
X38.0;//P3Æ P4
Z-28.0;//P4Æ P5
G03 X28.0 Z-33.0 R5.0;//circular interpolation CCW,radius 5 mm,P5Æ P6
G01 X-1.0;//linear interpolation
M09;//cutting liquid OFF
G28 Z20.0;//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
- 67 -
SYNTEC Instruction Guide of Lathe Programming
Description:
When you specify a work coordinate system(G54~G59.9)。When perform the
workpiece,it need to establish another sub-coordinate,this sub-coordinate is
called local coordinate system。
Coordinate System:
X X
10
20
G52 X15.0 Z30.0; G52(local coordinate system)
Z
10
10
G54(workpiece coordinate system)
10 20 30 Z
Program description:
- 68 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G53 X___ Y___ Z___ ;
- 69 -
SYNTEC Instruction Guide of Lathe Programming
Example:
Chuck Workpiece
Machine zero point
Base on this point Z+
Tool
X+
Tool
Y+ seat
Program description:
1. G53 X20.0 Z20.0;//move to specified position in machine coordinate
2. G53 X10.0 Z40.0;//move to specified position in machine coordinate
- 70 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G54
G55
G56
G57
G58
G59 X__ Y__ Z__ ;
G59.1
G59.2
:
:
G59.9
Description:
When we operate the lathe,we may repeat perform different position in
same workpiece。By specifying G code from G54 to G59 and G59.1 to
G59.9,one of the workpiece coordinate system 1 to 15 can be selected。It
can be set by parameter #3229「disable workpiece coordinate system」(0:
enable ; 1:disable)。
- 71 -
SYNTEC Instruction Guide of Lathe Programming
54 …G59.9 one by one。
Example:
X+ Tool
Y+ seat
- 72 -
SYNTEC Instruction Guide of Lathe Programming
Ex:
G91
G66 P10 L2 X10.0 Y10.0 //call O0010 two times and put the value of X10.0
//Y10.0 into the program to calculate them
X20.0 //move X axis to 20.0,after finish and executeG66 P10 L2 X10.0 Y10.0
Y20.0 //move Y axis to 20.0,after finish and executeG66 P10 L2 X10.0 Y10.0
G67 //cancel the model marco mode
- 73 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G70 ;
G71 ;
Description:
G70: English unit system
G71: Metric unit system
After changing English/Metric, workpiece coordinate offset、
tool data、 system parameter、 and reference position are still
correct 。 System will transfer the unit automatically 。 After
transferring, unit will change too:
Coordinate display、 unit of speed
Incremental JOG unit
MPG JOG unit
This option canned cycles to make CNC programming easy。For instance,the data of
the finish work shape describes the tool path for rough machining。And also,a canned
cycles for the thread cutting is available。
- 74 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G72 P(ns) Q(nf) ;
ns:Sequence number of the first block for the program of finishing cycle
nf:Sequence number of the last block for the program of finishing cycle
Description:
G72 command is finishing cycle,this command must use together with stock
removal cycle in next block。In general,finishing cycle is written behind stock
removal cycle in the program,the range it executes only includes “P(ns)” to
“Q(nf)”。
After G73 / G74 / G75 cutting cycle,we must match G72 command to reach to
specified size。
※ Notice:
1. F、S and T functions specified in the block G73、G74 and G75 are not effective
but those specified between sequence number "ns"Æ"nf" are effective in G72。
2. When the cycle machining by G72 is terminated,the tool is returned to the start
point and the next block is read。
3. In blocks between “ns” and “nf” referred in G72 through G75,the subprogram
can not be called。
- 75 -
SYNTEC Instruction Guide of Lathe Programming
Example One:
X T01
R5
R3
T=1:5
∅60
1.5C
∅55
∅30
∅20
Z
15 10 25 20 15
Program description:
T01;//use tool NO. 1
G92 S5000;//Max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X60.0 Z15.0;//positioning to start point
M08;//cutting liquid ON
G73 U2.0 R1.0;//cut 3.0 mm in X axis direction,tool returned value 1.0 mm
G73 P01 Q02 U0.8 W0.1 F300;
//execute stock removal in turning,sequence number N01ÆN02,left 0.8mm for
finishing allowance in X axis direction,left 0.1mm for finishing allowance
in Z axis direction,feedrate 300 μm/rev
N01 G00 X17.0;
G01 Z0.0;
X20.0 Z-1.5;
Z-20.0;
X25.0;
X30.0 Z-45.0; shape of cutting
Z-52.0;
G02 X36.0 Z-55.0 R3.0;
G01 X45.0;
G03 X55.0 Z-60.0 R5.0;
N02 G01 Z-70.0;
G72 P01 Q02;//execute fine cutting cycle,sequence number N01ÆN02
- 76 -
SYNTEC Instruction Guide of Lathe Programming
M09;//cutting liquid OFF
M28 X60.0 Z20.0;
//tool positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
Example two: X
T01
5C
5R
∅60
∅60
1.5C
∅30
∅20
∅15
Z
15 10 15 15 8
Program description:
T01;//use tool NO. 1
G92 S5000;//Max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X60.0 Z8.0;//positioning to start point
M08;//cutting liquid ON
G74 W3.0 R1.0;//cut 3.0mm in Z axis direction,tool returned value 1.0 mm
G74 P01 Q02 U0.8 W0.2 F600;
//execute stock removal in facing,the sequence number N01ÆN02,left 0.8mm
for finishing allowance in X axis direction,left 0.2mm for finishing
allowance in Z axis direction,feedrate 600 μm/rev
- 77 -
SYNTEC Instruction Guide of Lathe Programming
(140,30)
R10
R5
∅120
∅60
∅40
Z
30 40 5 30
Program description:
T01;//use tool NO.1
G92 S5000;//max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X140.0 Z30.0;//positioning to start point
- 78 -
SYNTEC Instruction Guide of Lathe Programming
M08;//cutting liquid ON
G75 U15.0 W15.0 R3.0;
//cut 15.0mm in X axis direction,cut 3.0mm in Z axis direction,repeat 3 times
G75 P01 Q02 U0.8 W0.2 F300;
//execute pattern repeating cutting,the sequence number N01ÆN02,left 0.8mm
for finishing allowance in X axis direction,left 0.2mm for finishing
allowance in Z axis direction,feedrate 300 μm/rev
N01 G00 X40.0 Z5.0;
G01 Z-30.0;
X50.0;
X60.0 Z-35.0;
Z-70.0; shape of cutting
G02 X70.0 Z-75.0 R5.0;
G01 X100.0 ;
G03 X120.0 Z-85.0 R10.0;
N02 G01 Z-105.0;
G72 P01 Q02;//execute fine cutting cycle,the sequence number N01ÆN02
M09;//cutting liquid OFF
G28 X140.0 Z30.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
- 79 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G73 UΔd R e ;
- 80 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
1. TYPE I:there is only X axis motion command in first block “ns”,it usually use in
end face performing。Each block must satisfy that cut value must be
decrease or increase next block to last block in X axis and Z axis。
C
B A
(R) Δd
(F) e
45°
(F)
Program
command ΔU/2
A'
ΔW
Description:
(1). Tool should be positioning to point A(start point) before cycle starts;
(2). After executing G73,tool offsets to point C by specified finishing allowance
(ΔU/2 for X axis,ΔW for Z axis);
(3). Tool move to X axis in Δd distance,and then feed the outline face;
(4). Then escape e distance in X axis direction by 45°,Z axis feed in reverse
direction and return to the start point that parallel to X axis;
(5). Move Δd distance in X direction,continue next cycle;
(6). After finishing last cycle,tool will cut A'Æ B once;
(7). After finishing cutting,tool will positioning to point A,wait for next cutting
cycle start。
- 81 -
SYNTEC Instruction Guide of Lathe Programming
2. TYPE II:This is synchronous moving command (X axis and Z axis) in first block
“ns”,it usually performs in the middle of the workpiece。At TYPE
II,only Z axis need to satisfy increase or decrease condition。
30
4
1
3 13 5
29
2
12 18 9 24
14 10 6
23 8 25
11
17 19 15 7
16
20 26
22 28
21
27
e:Escaping amount
Å Escaping mode
※Notice:
- 82 -
SYNTEC Instruction Guide of Lathe Programming
this block。
5. Sub-program can not be called during block nsÆnf。
6. All tool nose compensation commands will be disable when G73 is in the
block,but the compensation value will be added to the preparation size。
Cancel awhile
G73 U W ;
Path of tool nose
center,when tool nose
(R) compensation
Program path
A B B A
A' A'
A' A'
A B B A
- 83 -
SYNTEC Instruction Guide of Lathe Programming
Example one:TYPE I
X T01
R5
R3
∅60
∅55 1.5C
∅30
∅20
Z
15 10 25 20 15
Program Description:
T01;//use tool NO. 1
G92 S5000;//max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X60.0 Z15.0;//positioning to start point
M08;//cutting liquid ON
G73 U2.0 R1.0;
//depth of cutting in X direction is 2.0 mm,escaping amount 1.0 mm
G73 P01 Q02 U0.8 W0.1 F300;
//execute stock removal in turning,the sequence of block N01ÆN02,
finishing allowance in X direction is 0.8 mm,finishing allowance in Z
direction is 0.1mm,feedrate 300 μm/rev
N01 G00 X17.0; Å TYPE I
G01 Z0.0;
X20.0 Z-1.5;
Z-20.0;
X25.0;
X30.0 Z-45.0; shape of cutting
Z-52.0;
G02 X36.0 Z-55.0 R3.0;
G01 X45.0;
G03 X55.0 Z-60.0 R5.0;
N02 G01 Z-70.0;
M09;//cutting liquid OFF
- 84 -
SYNTEC Instruction Guide of Lathe Programming
M28 X60.0 Z20.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
Example two:TYPE II
T01
(120,-10)
∅100
∅100
∅70
∅50
∅30
20 20 10 10 10 20 20 20
Program description:
T01;//use tool NO. 1
G92 S5000;//max. rotate speed 5000rpm
G96 S130 M03;//constant surface speed,surface speed 130 m/min
M08;//cutting liquid ON
G00 X120.0 Z-10.0;//positioning to start point
G73 U2.0 R1.0;
//depth of cutting in X direction is 2.0 mm,escaping amount is 1.0 mm
G73 P01 Q02 U0.8 W0.1 F300;
//execute stock removal in turning,the sequence of block N01ÆN02,finishing
allowance in X direction is 0.8 mm,finishing allowance in Z direction is 0.1mm,
feedrate 300 μm/rev
- 85 -
SYNTEC Instruction Guide of Lathe Programming
- 86 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G74 W d R e ;
G74 P (ns) Q (nf) UΔu WΔw F S T ;
d:depth of cut in Z axis direction,it can be specified by the parameter#4013 and the
parameter is changed by the program command
e:escaping amount,it can be specified by the parameter#4012
ns:sequence number of the first block for the program of finishing shape
nf:sequence number of the last block for the program of finishing shape
Δu:distance and direction of finishing allowance in X direction
Δw:distance and direction of finishing allowance in Z direction
F:feedrate T:number of the tools
S:spindle rotate speed
PIC:
Δd
A' C
A
(F)
(R)
45°
Program (F)
command ΔU/2
B
ΔW
- 87 -
SYNTEC Instruction Guide of Lathe Programming
Action description:
(1). Positioning to point A (start point) before cycle starts;
(2). After executing G74 command,tool offsets to C point according to specified
finishing allowance (ΔU/2 in X direction,ΔW in Z direction);
(3). After tool moves toward Z axis in Δd distance,feed to the outline face;
(4). Then escape e distance in Z axis direction by 45°,X axis feed in reverse
direction and return to the start point that parallel to X axis;
(5). Then move toward Z axis in Δd distance and continue next cycle;
(6). After finishing last cycle,tool will cut A'Æ B once;
(7). After finishing cutting,tool will positioning to point A,wait for next cutting
cycle start。
※Notice:
Cancel awhile
G74 U W ;
Path of tool nose center
when execute tool nose (R)
compensation
Program path
- 88 -
SYNTEC Instruction Guide of Lathe Programming
15. Direction of finishing allowance:the direction is depended on below figures。
Path is AÆA’ÆB。
X
A A’ A’ A
B B
B B
A A’ A’ A
Example: X
T01
5C
5R
∅60
∅60
1.5C
∅30
∅20
∅15
Z
15 10 15 15 8
Program description:
T01;//use tool NO. 1
G92 S5000;//max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X60.0 Z8.0;//positioning to start point
M08;//cutting liquid ON
G74 W3.0 R1.0;
//depth of cutting in Z direction is 3.0 mm,escaping amount is 1.0 mm
G74 P01 Q02 U0.8 W0.2 F600;
- 89 -
SYNTEC Instruction Guide of Lathe Programming
// execute stock removal in turning,the sequence of block N01ÆN02,
finishing allowance in X direction is 0.8 mm,finishing allowance in Z
direction is 0.2mm,feedrate 600 μm/rev
N01 G00 Z-55.0;
G01 X60.0;
Z-45.0;
X50.0 Z-40.0;
X40.0;
G03 X30.0 Z-35.0 R5.0; shape of cutting
G01 Z-30.0;
X20.0 Z-15.0;
X15.0;
Z-1.5;
N02 X12.0 Z0.0;
M09;//cutting liquid OFF
G28 X60.0 Z10.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M32;//program ends
- 90 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G75 UΔi WΔk R d ;
G75 P (ns) Q (nf) UΔu WΔw F S T ;
- 91 -
SYNTEC Instruction Guide of Lathe Programming
PIC: Δk+Δw
ΔW C.
Δi+ΔU/2
ΔU/2
2.
4. A
(R)
6.
(R)
B (F)
(F)
1.
3.
5.
A'
Action description:
(1). Positioning to point A (start point) before cycle starts;
(2). After executing G75,tool offsets to point C by specified finishing allowance
(ΔU/2 for X axis,ΔW for Z axis) and add cutting value (Δi for X axis,
ΔW for Z axis);
(3). Tool will be cutting by path AÆA'ÆB,according feed value and times of
cutting to finish the performance;
(4). After finishing cutting,tool will positioning to point A,wait for next cutting
cycle start。
- 92 -
SYNTEC Instruction Guide of Lathe Programming
Example:
X T01
(140,30)
R10
R5
5C
∅120
∅60
∅40
Z
30 40 5 30
Program description:
T01;//use tool NO. 1
G92 S5000;//max. rotate speed 5000 rpm
G96 S130 M03;
//constant surface speed,surface speed 130 m/min,spindle rotate CW
G00 X140.0 Z30.0;//positioning to start point
M08;//cutting liquid ON
G75 U15.0 W3.0 R3.0;
//cutting value of X axis 15.0 mm,cutting value of Z axis 3.0 mm,cut 3 times
G75 P01 Q02 U0.8 W0.2 F300;
//execute Pattern Repeating,sequence of the block N01ÆN02,finishing
allowance of X axis 0.8 mm,finishing allowance of Z axis 0.2 mm,
feedrate 300 μm/rev
N01 G00 X40.0 Z5.0;
G01 Z-30.0;
X50.0;
X60.0 Z-35.0;
Z-70.0; shape of cutting
G02 X70.0 Z-75.0 R5.0;
G01 X100.0 ;
G03 X120.0 Z-85.0 R10.0;
N02 G01 Z-105.0;
- 93 -
SYNTEC Instruction Guide of Lathe Programming
M09;//cutting liquid OFF
G28 X140.0 Z30.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
- 94 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G76 R e ;
G76 X(U) Z(W) PΔi QΔk Rd F ;
Description:G76 command is end face peck (Z axis) drilling cycle,it is used to slot
cutting on the end face or peck drilling in Z direction;After this
command is executed,tool will return e value every time when cutΔk
distance in Z direction。So G76 can be used in workpiece end face slot
or intermittent cutting or deep drilling of workpiece。
- 95 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
∆k′ ∆k ∆k ∆k ∆k
∆d A
C
∆i
(R)
(R) (R) (R)
(R) (R)
(F) (F)
(F) ∆i U/2
(F)
∆ i′
e
B
W X
Z
Action description:
(1). Positioning to point A (start point) before cycle starts;
(2). After executing G76,tool will start peck drilling from point A to point C,
and it will return e amount every time when tool cuts Δk distance,(and
escape Δd distance in X direction),then escape to parallel start point;
(3). And then tool move Δi distance toward X axis,and continue the same
action of cycle。Finally it performs to point B,tool will return to point A
from point B,and wait the next cutting cycle。
※Notice:
1. e and Δd is specified by parameter R,when X or Z are specified,
R is showed for escaping amount in X axis。
2. When there is only parameter R after G76 command,it is for escaping
amount in Z axis direction,G code of this mode is always effective until
changing to new program。
3. If QΔk is not be specified,then peck drilling cancels,tool cut to the end
position of Z axis once。
- 96 -
SYNTEC Instruction Guide of Lathe Programming
Example: X
Basic point
5
5
T05
A
20 ∅80
∅20
Z
20
Program description:
T05;//use tool NO. 5
G92 S1000;//max. rotate speed 1000 rpm
G96 S100 M03;
//constant surface speed,surface speed 100 m/min,spindle rotate CW
M08;//cutting liquid ON
G00 X60.0 Z5.0;//positioning to point A
G76 R1.0;
G76 X30.0 Z-20.0 P4.0 Q8.0 F100;
//execute end face peck drilling cycle,after cutting 8.0 mm,tool escape 1.0
mm distance,X axis moves 4.0 mm after cycle starts,feed rate 100 μ
m/rev
M09;//cutting liquid OFF
G28 X100.0 Z30.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
- 97 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G77 R e ;
G77 X(U)___ Z(W)___ PΔi QΔk RΔd F ;
(R) (R)
ΔU/2
(F)
(R)
(F)
(R)
(F)
C Δd
Δk
W
- 98 -
SYNTEC Instruction Guide of Lathe Programming
Action description:
(1). Positioning to point A(start point) before cycle starts;
(2). After executing G77,it will start peck cutting from point A,when cutting
distance Δi,then escaping distance e,it will cut to specified X,(escape
distance Δd in Z direction),then escape to parallel start point;
(3). Then tool moves Δk distance toward Z axis,continue the same cycle,finally
it performs to end point B。Tool will return to point A from point B,and wait to
next cutting cycle。
※Notice:
1. e and Δd is specified by parameter R,when X or Z are specified,
R is escaping amount at Z axis
2. When there is only R parameter after G77,it is for escaping amount at X
direction。It is modal G code,when it is specified once,it is effective during
this program,it is not effective when changing the new program。
3. If value of QΔk is not specified,then peck cutting cancels,and tool cut to
the end position of X axis。
Example:
Basic T05
X point
20 15
5
15
∅80
∅30
Program description:
T05;//use tool NO. 5
G92 S1000;//max. rotate speed 1000 rpm
G96 S100 M03;
//constant surface speed,surface speed 100 m/min,spindle rotate CW
M08;//cutting liquid ON
- 99 -
SYNTEC Instruction Guide of Lathe Programming
G00 X70.0 Z20.0;//positioning close to workpiece
Z-20.0;//positioning to start point of cutting
G77 R1.0;
G77 X30.0 Z-35.0 P8.0 Q4.0 D0.0 F150;
//execute Outer Diameter/Internal Diameter Drilling Cycle,after cut 8.0
mm,then tool escapes 1.0 mm,Z axis moves 4.0mm after cycle starts,
feed rate 100 μm/rev
M09;//cutting liquid OFF
G28 X80.0 Z50.0;
//positioning to specified mid-point,then return to machine zero point
M05;//spindle stops
M30;//program ends
- 100 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G78 P m r a Q___ R d ;
G78 X(U)___ Z(W)___ R i P k Q d H F___;
P:
m:repetitive count in finishing,specified by system parameter #4044。
r:chamfering amount,specified by system parameter #4043。
a:angle of tool tip,specified by system parameter #4042。
parameter #4045
d:finishing allowance, specified by system parameter #4041
X(U):X coordinate in end point(bottom of tooth)
Z(W):Z coordinate in end point(bottom of tooth)
∆i:difference of thread radius
∆k:height of thread
∆d:finishing allowance
F:Metric lead of thread(unit : mm/tooth)
E:English lead of thread(unit : tooth/inch)
H:numbers of thread(ex:H3 three thread type cutting,multiple thread F
function is for neighbor thread)
Description:G78 command, multiple thread cutting cycle can product many thread
cutting paths。Controller can help us computer numbers of thread
cutting、depth of cutting and start point of cutting according to specified
parameter。
- 101 -
SYNTEC Instruction Guide of Lathe Programming
command to finish thread cutting,therefore it wastes much time。
2. G21(thread cutting cycle):this is “single” cycle command of thread cutting,
we can use one block of command to finish thread cutting,but it also need to
repeating thread cutting many times so the program is also too long。
3. G78(multiple thread cutting cycle):only use one command,we can finish all
of the thread cutting,it can short the program。
PIC:
1. cutting path:
E.. A.
(R)
(R)
(R)
U/2
B.
(F)
D. Δd
i k
C.
r
X
Z W
Action description:
(1). Positioning to point A(start point) before cycle start;
(2). After executing G78,the tool will cut along path AÆBÆEÆA,tool depends
on the cutting feed to finish first time of threading;
(3). After first time of threading it depends on finishing allowance and repetivite
count in finishing to finish the threading;
(4). Final cuting (AÆCÆDÆEÆA),tool stops at point A,wait next cutting
cycle。
- 102 -
SYNTEC Instruction Guide of Lathe Programming
2. how to cut when threading and the depth of cutting:
The tool
Δd
First Δd n
Second k
Third
th
4
th
N
∅55
M40×2.5
20 45 5
Program description:
N001 T03;//use tool NO. 3
N002 G97 S600 M03;//constant rotate speed,600 rpm CW
N003 G00 X50.0 Z70.0;//positioning to the start point of cycle
N004 M08;//cutting liquid ON
N005 G78 P011060 Q0.15 R0.02;
//execute multiple repetitive cycle,finishing cutting once,escaping amount
=Lead,angle of tooth 60°,Min. depth of cutting 0.15 mm,finishing
allowance 0.02 mm
N006 G78 X36.75 Z20.0 R0.0 P1.624 Q1.0 H3 F2.5;
- 103 -
SYNTEC Instruction Guide of Lathe Programming
//difference radius of multiple thread cutting cycle is 0 mm,depth of
thread 1.624 mm,first cutting value is 1.0 mm,lead of thread 2.5 mm,
three tooth thread cutting
N007 G28 X60.0 Z75.0;
//positioning to specified mid-point and return to machine zero point
N008 M09;//cutting liquid OFF
N009 M05;//spindle stops
N0010 M30;//program ends
x
T03
15 40
∅50
10
∅40
∅14
Program description:
- 104 -
SYNTEC Instruction Guide of Lathe Programming
N005 G78 P011060 Q0.15 R0.02;
// execute multiple repetitive cycle,finishing cutting once,escaping
amount=Lead,angle of tooth 60°,Min. depth of cutting 0.15 mm,
finishing allowance 0.02 mm
N006 G78 X36.75 Z15.0 R-10.0 P1.624 Q1.0 F2.5;
// difference radius of multiple thread cutting cycle is 10.0 mm,depth of
thread 1.624 mm,first cutting value is 1.0 mm,lead of thread 2.5 mm,
single tooth thread cutting
N007 G28 X60.0 Z70.0;
//positioning to specified mid-point and then return to machine zero point
N008 M09;//cutting liquid OFF
N009 M05;//spindle stops
N0010 M30;//program ends
- 105 -
SYNTEC Instruction Guide of Lathe Programming
Z1 X1
R
Reverse tool in X Z+
axis
Z2
Reverse tool in Z
axis X+
M03,M04,M05(CW,CCW,stop)
is used rotating the tool
- 106 -
SYNTEC Instruction Guide of Lathe Programming
※G83/G87、G84/G88、G85/G89 the front is for Z axis and the back is for X axis。
In general,the drilling cycle consists of the following six operation sequence:
Operation 1 positioning of X(Z) and C axis
Operation 2 Rapid traverse up to point R level
Operation 3 Hole machining
Operation 4 Operation at the bottom of a hole
Operation 5 Retraction to point R level
Operation 6 Rapid traverse up to the initial point
Operation 2
Operation 5
Rapid traverse
Point R
Feed
Operation 3 Operation 6
Operation 4
※ In G code system A,the tool returns to the initial level from the bottom of a
hole。In G code system B or C,specifying G98 returns the tool to the initial level
from the bottom of a hole and specifying G99 returns the hole of the point-R level
from the bottom of a hole。
The following illustrates how the tool moves when G98 or G99 is specified。
Generally,G99 is used for the first drilling operation and G98 is used for the last
drilling operation。
The initial level does not change even when drilling is performed in the G99
mode。
- 107 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G83 X(U) C(H) Z(W) R Q P F K M ;
or
G87 Z(W) C(H) X(U) R Q P F K M ;
- 108 -
SYNTEC Instruction Guide of Lathe Programming
PIC:
TYPE I:High speed drilling cycle (Custom Parameter No.4001= 1)
G83/G87(G98) G83/G87(G99)
Mclamp Mclamp
Initial level Initial level
Munclamp
Point R Point R Munclamp
Q Q
d d
Q Q
d d
Q Q
Point Z Point Z
* Retraction distance d specified
in parameter#4002 Dwell P(s) Dwell P(s)
G83/G87(G98) G83/G87(G99)
Mclamp Mclamp
Initial level Initial level
Munclamp
Point R Point R Munclamp
Q Q
Q Q
Q Q
Point Z Point Z
Dwell P(s) Dwell P(s)
*Retraction distance d specified
in parameter#4002
- 109 -
SYNTEC Instruction Guide of Lathe Programming
G83/G87(G98) G83/G87(G99)
Mclamp Mclamp
Initial level Initial level
Munclamp
Point R Point R Munclamp
Point Z Point Z
Dwell P(s) Dwell P(s)
- 110 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G84 X(U) C(H) Z(W) R P F K M ;
or
G88 Z(W) C(H) X(U) R P F K M ;
Description:
G84 / G88 command is Front/Side Tapping cycle,it is used in tapping of the
lathe , it uses rotating tool to do front/side tapping cycle to clamped
workpiece(fixed)。
PIC:
G84/G88(G98) G84/G88(G99)
Mclamp Mclamp
Initial point Initial point
Point Z Point Z
Dwell P (s),spindle rotate CCW Dwell P (s),spindle rotate CCW
- 111 -
SYNTEC Instruction Guide of Lathe Programming
Action description:
1. Action starts,Z axis uses G00 moving to point R(R only uses incremental)
2. Start tapping,pitch is specified F value
3. Until Z axis reach the Z depth of G84(Z absolute / W incremental)
4. Spindle stops
5. Dwell P(s) (floating point,unit : 1 s,no floating point,unit : 0.001 s)
6. Spindle rotates CCW (use M04 in CNC)
7. use the feedrate of tapping,return to point R
8. Spindle rotates CW (M03)
9. Return to initial point(G98) or stop at point R(G99)
※Notice :
1. Spindle needs to rotate CW when first time tapping
2. If initial point is the same as point R,then we do not need to specify R
3. If there is no power tool seat on lathe,parameter X、C、K、M of G84 need not to
specify
4. When G84/G88 ends,spindle return to rotate CW
5. G84/G88 is canceled by G80,or when G00/G01/G02/G03 executed G84/G88 will
be canceled
- 112 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G84 X(U) C(H) Z(W) R P F K M ;
or
G88 Z(W) C(H) X(U) R P F K M ;
Description:
G84 / G88 command is Front/Side Boring cycle,it is used in boring of the
lathe , it uses rotating tool to do front/side tapping cycle to clamped
workpiece(fixed)。
PIC:
G85/G89(G98) G85/G89(G99)
Mclamp Mclamp
Initial point Initial point
f 2f f 2f
Point Z Point Z
Dwell P(s) Dwell P(s)
- 113 -
SYNTEC Instruction Guide of Lathe Programming
- 114 -
SYNTEC Instruction Guide of Lathe Programming
1.2.37 G92:Coordinate System Setting/Max. Spindle Speed Setting
Format:
G92 X Z ;
or
G92 S ;
181.2
Start point
∅200
- 115 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G94 F ;
G95 F ;
Description:
This command can set feed amount unit of F function(tool
movement of per minute or per revolution); G94 is for feedrate
per minute(mm/min inch/min), G95 is for feedrate per minute
(mm/rev, inch/rev)。
PIC :
F
- 116 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G96 S ; constant surface speed control ON
G97 S ; constant surface speed control OFF
Description:
G96 command can specify the surface speed of the contact point which
is between tool and workpiece,G97 is the canceled command,G97 can
set spindle speed too; If we need constant surface when cutting, we
can use G96 S to control the surface speed; whether the diameter
is big or small in machining, we can use G97 S to control spindle
rotate speed, follow the formula:
πDN
V=
1000
1000× 130
N = =4140rpm
π ×10
- 117 -
SYNTEC Instruction Guide of Lathe Programming
1.2.40-1.1 Chamfering ( , C_ )
In case of two continuous single blocks (including the arc),t the first single
block “,C_” command could execute corner chamfering。In case of arc,it bases on the
length of arc。
Format:
- 118 -
SYNTEC Instruction Guide of Lathe Programming
Example:(the chamfer of straight line and arc)
X
( 150 ,50) Pretend chamfering node
C20 C20
(50 ,0)
(50 ,100)
Z
Program description:
1. absolute command:
G28 X0.0 Z0.0;
G00 X50.0 Z100.0;
G01 X150.0 Z50.0 F100.0 ,C20.0; Chamfering C20.0 between
the movement of these two
G01 X50. Z0; blocks
2. incremental command:
G28 X0.0 Z0.0;
G00 U50.0 W100.0;
G01 U100.0 W-50.0 F100, C20.0; Chamfering C20.0 between
G01 U-100.0 W-50.0; the movement of these two
blocks
1.2.40-1.2 Corner Round R( , R_)
Responding to two continuous single blocks (including arc),at the first single
block,it could use “,R_” command to indicate the corner R executing function。
Format:
,R ;
- 119 -
SYNTEC Instruction Guide of Lathe Programming
Example:(corner between straight line and arc)
X
Pretend chamfering node
(160,50)
R10
(60,0)
(60,100)
Program description:
1. absolute command
G28 X0.0 Z0.0;
G00 X60.0 Z100.0;
G01 X160.0 Z50.0 F100 ,R10.0; Rounding R10.0 between the
G02 X60.0 Z0.0 I0.0 K-50.0; movement of these two blocks
2. incremental command
G28 X0.0 Z0.0;
G00 U60.0 Z100.0;
G01 U100.0 W-50.0 F100 , R10.0; Rounding R10.0 between the
G02 U-100.0 W-50.0 I0.0 K-50.0; movement of these two blocks
- 120 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G01 Z (X ) ,A a1 ;//specify the angle and the coordinate of X or Z。
X
(X ,Z)
a1
Example:
Program description:
(150,100) N01 G00 X50.0 Z50.0;
//positioning to specified point
N02 G01 Z100.0,A45.0;
45°
//the angle between tool path and
(50,50) horizontal axis is 45°
end point absolute coordinate
value of Z is 100
*after executing
programÆcoordinate value of X is
150
- 121 -
SYNTEC Instruction Guide of Lathe Programming
Format:
G01 ,A a1 F ;//specified angle
X x1 Z z1 ,A -a2 ;//specified the end coordinate value and the angle of the
next block
z
?
a2
a1
a3
Present position
(X1 , Z1)
End position
Example:
Program description:
N01 G00 X50.0 Z50.0;
//positioning to specified point
- 122 -
SYNTEC Instruction Guide of Lathe Programming
(2) The angle is the horizontal axis adding the angle in + direction at
specified plant,CCW is for positive,CW is for negative。
(3) The sloping angle can be specified in start point or end point of start
side or end side。NC in side can specified the start side or end side of
sloping angle automatically。
(4) If we use the second way to specify,we need to specify the end point
to be absolute coordinate。
Relative usage:
TYPE I:In the first angle command,we can specify Chamfer command or Angle
Round command
(1). Format:
a2
N02
C1
? C1 a1
N01
(X1,Z1)
- 123 -
SYNTEC Instruction Guide of Lathe Programming
(2). Command Format:
N01 ,Aa1 ,Rr1;
N02 Xx3 Zz3 Aa2; (X3,Z3)
a2
N02
r1
? a1
N01
(X1,Z1)
- 124 -
SYNTEC Instruction Guide of Lathe Programming
TYPE Ⅱ:After Chamfering command、Angle round command (R),we can
continue to do linear angle command
Format: (X3,Z3)
a2
N01 Xx2 Zz2, Cc1;
N03
N02 ,Aa1; ?
C1
(X2,Z2)
C1
N01
(X1,Z1)
TYPE Ⅲ:After linear angle command,we can continue to do linear angle command
Format:
N01 Xx2 Aa1;
N03 a3
N02 ,Aa2;
(X3,Z3)
N03 Xx3 Zz3, Aa3; ?
N02
a2
a1
(X2,Z2)
N01
(X1,Z1)
- 125 -
SYNTEC Instruction Guide of Lathe Programming
Desctiption:Set the the X axis coordinate value “X2” of the first movement path according to
the command,and the angle『a1 』to horizontal axis,and the end point
value(X3,Z3) of the third movement path,and the angle『a2』
、『a3』between the
front path,the angle between horizontal axis and the axis of the front path;
Contorller use specified value to computer the unknow intersection ”?” of two
path,and tool cuts to end point (X3,Z3) along the three pathes。
※Notice:
1. Round angle value can not be inserted in threading area.
2. Entering the continuous command in next area by drawing size。Than the end
point is already be specified in the front area。Stop can not be executed in
single area, but dwell can be executed in the front area.
3. allowance range of angle computing is +1°.
(0). X_ , A_ ; (when the angle is 0°+1 , 180°+1 , it will be alarming)
(1). Z_ , A_ ; (when the angle is 90°+1 , 270°+1 , it will be alarming)
4. If the angle between two lines is under +1°, it will be alarming when we
computer the intersection.
5. If the angle between two lines is under +1°, we can ignore chamfer angle and
round angle.
- 126 -
SYNTEC Instruction Guide of Lathe Programming
- 127 -
SYNTEC Instruction Guide of Lathe Programming
- 128 -
SYNTEC Instruction Guide of Lathe Programming
According to the command to
X2 Z2 ,C1 ; reach to the specified position
X3 Z3 , R2 ; (X2,Z2)Æ (X3,Z3) Æ (X4,Z4),
X4 Z4 ; the corner of the front two path
is a chamfer angle『C1』 ,the
X corner of the back two path is a
(X4 , Z4) (X3 , Z3) round angle『R2』,(or we do
8. Or R2
A2
not specify (X2,Z2) but we add
『A1』 『A2』)。Controller will
、
A1
,A1 , C1 ; C1 computer『A1』 、『A2』or unknow
(X2 , Z2)
X3 Z3 , (X1 , Z1) intersection(X2 , Z2) by the
A2 ,R2 ; Z specified value。Tool will cut to
X4 Z4 ; end point (X4,Z4) along these
pathes
- 129 -
SYNTEC Instruction Guide of Lathe Programming
Example:
X
R20
R15
R6
∅100
∅300
∅60
Z
10°
1×45°
30
180
22°
- 130 -
SYNTEC Instruction Guide of Lathe Programming
Format:
T
Description:
Tool function is also called T function。It’s main function is tool exchange。
It will use with (M06) normally。We can do auto tool exchange
according the number of tool。
Example:
T03 M06;//it is for changing to tool NO.3
Format:
S
Description:
S function is spindle speed command,it specifies revolution per minute or
surface speed of spindle by G96/G97。
Example:
G96 S150 M03;//constant surface speed of spindle,150 m/min
G97 S500 M03;//spindle keeps 500 rev/min
Format:
F
Description:
In cutting mode,the specified movement speed of tool in the program is called
feed。There are two way to set feed mode,G94/G95。G94 F300 is for 300
mm/min;G95 F0.5 is for 0.5 mm/rev。
Example:
G94 G01 X100.0 Y100.0 F300;//linear interpolation,feed rate 300mm/min
G95 G01 X100.0 Y100.0 F0.5;//linear interpolation,feed rate 0.5mm/rev
- 131 -
SYNTEC Instruction Guide of Lathe Programming
Format:
Description: With double turrets in lathe we can mirror the location in X-axis with XO
by G code. It is more convenient with double turrets because it is not
necessary to consider the moving direction of the turret.
1. The direction of the circular interpolation and tool nose radius compensation or
the coordinate reversal is opposite.
2. Because this instruction is used in local coordinate, the center of the mirror still
moves when reset the counter or the working coordinate changes.
3. When execute the instructions (G28,G30) within the one of the progrramble
mirror image it works until middle point not from it to the origin.
4. When execute the instruction (G29) within the one of the progrramble mirror
image it works in the middle point.
Attention:
Cancel progrramble mirror image except the center of the mirror and it can
not match between absolute location and mechanical location. The situation
is below.it lasts until set the instructions G90 G28 G30. Under motionless
setting in the center of the mirror if we re-assign it , the location is
unexpected. So we should use G90 after cancelling progrramble mirror
image.
- 132 -
SYNTEC Instruction Guide of Lathe Programming
G90 or G91
Cancel progrramble
mirror image
Ex:
Program illustration:
N001 T0101 //turret 1
N002 G01 Z180. X40. //position-1
N003 Z120.
N004 T0202 //turret 2
- 133 -
SYNTEC Instruction Guide of Lathe Programming
N005 G68 //enable X-axis mirror image
N006 G01 Z120. X80. //position 2
N007 Z60.
N008 T0101 //turret 1
N009 G69 //disable X-axis mirror image
N009 G01 Z60. X120. //position 3
N010 M99
- 134 -
SYNTEC Instruction Guide of Lathe Programming
M Function Table
M code Function
M00 Dwell
M01 Optional dwell
M02 End of program
M03 Spindle rotates (CW)
M04 Spindle rotates (CCW)
M05 Spindle stops
M06 Tool exchange
M08 Cutting liquid ON
M09 Cutting liquid OFF
M10 Tight the clamp
M11 Loose the clamp
Spindle location,let spindle stops at a specified
M19
position
M30 Program ends,return to start point
M98 Calling of subprogram
M99 End of subprogram
1、M00:Dwell
when CNC executes M00 command,the spindle will stop,the feed will dwell,
and the cutting liquid will close for dimension inspection and calibrating
compensation tasks of operator。We could decide the program will dwell or not
from the M00 signal button on the panel when we operate it。
2、M01:Optional dwell
M01 function is similar with M00;but M01 is controlled by “optional stop”;when
the switch is in ON status,and M01 is effective,then the program will dwell。If the
switch is in OFF status,then M01 is invalid。
- 135 -
SYNTEC Instruction Guide of Lathe Programming
3、M02:Program ends
If there is M02 command on the end of program,CNC execute this command,the
machine will stop all action at the same time。If you want to restart the program,
would be effective only by pressing the “RESET” button,then the “STOP”。
4、M03:Spindle rotates CW
M03 command can let spindle rotate CW。Spindle can rotate in specified speed
and rotate CW when M03 is used with S function。
5、M04:Spindle rotates CCW
M04 command can let spindle rotate CCW
6、M05:Spindle stops
M05 command can let spindle stop,when we want to change the gear or the
direction of rotating,we need to use M05 to stop the spindle first。
7、M06:Tool exchange
M06 command can execute tool exchange,this command is not include tool
choosing,it must use with T function。
8、M08/M09:Cutting liquid ON/OFF
M08 command is for cutting liquid ON,M09 command is for OFF
9、M19:Spindle locates and stops
This command can locate the spindle at specified corner
10、M30:Program ends
M30 command is the end of the program。when program executes M30,all
action will stop,and the memory will return to the beginning of the program。
- 136 -
SYNTEC Instruction Guide of Lathe Programming
*11、M98/M99:Subprogram Control
Format:
(1). M98 P H L ;Calling of subprogram
Description:
1. Subprogram is the parameter that including fixed cutting procedures or repeat
using frequently。We should prepare it in advance and put it into the memory。
We call from the main progra when we need to use。Calling subprogram is
executed by M98,and it would stop by executing M99。
2. When run M02 and M30 in the subprogram we regard it as the end of the
subprograms and return to the main program to run.
- 137 -
SYNTEC Instruction Guide of Lathe Programming
- 138 -
SYNTEC Instruction Guide of Lathe Programming
main program,and execute the block of the sequence number which is
specified by H_ function。
- 139 -
SYNTEC Instruction Guide of Lathe Programming
(3). If there is no P_ command and only has H_ command in the subprogram。
The result after calling,it will execute sequence number of main program
that specified by H_ command。After executing M99 it will return to the
next block of M98 and continue to execute the program。
Main program
O1000;
N01 ……..;
N02 ……..;
N03 M98 H008;
N04 ……..;
N05 ……..;
N06 M02;
N07 ……..;
N08 ……..;
N20 M99;
X T03
10 14 14 14 14
4
∅60
6 6 6
∅42
6
∅30
- 140 -
SYNTEC Instruction Guide of Lathe Programming
Program description:
(1). First way:P command in block of M98
*Main program.
T03;//use tool NO.3
G97 S710 M03;//constant rotate speed of spindle,710 rpm CW
M08;//cutting liquid ON
G00 X45.0 Z-12.0;//positioning to the above of first tank
M98 P1234 H102 L4 ;
//call the subprogram of sequence number “O1234”,machining from the
block of N102,and repeating 4 times
G28 X80.0 Z80.0;
//positioning to specified mid-point and return to machine zero point
M09;//cutting liquid OFF
M05;//spindle stops
M30
*Subprogram.
O1234
N101 G00 X45.0 Z-12.0;
N102 G01 X30.0 F200; ÅStart from this block
//linear interpolation to the bottom of the tank,feedrate 200μm/rev
N103 G00 X45.0;//escaping to start position
N104 W-2.0;//move 2mm toward negative direction of Z
N105 G01 X30.0;//linear interpolation to the bottom of the tank
N106 G00 X45.0;// escaping to start position
N107 W-12.0;// move 12mm toward negative direction of Z,and wait for
cutting next tank
N108 M99;//return to main program
- 141 -
SYNTEC Instruction Guide of Lathe Programming
N006 G28 X80.0 Z80.0;
//positioning to specified mid-point and return to machine zero point
N007 M09;//cutting liquid OFF
N008 M05;//spindle stops
N009 M02;//program ends
N0010 G01 X30.0 F200; Åstart with this block after executing M98
//linear interpolation to the bottom of the tank,feedrate 200μm/rev
N0011 G00 X45.0;//escaping to start point
N0012 W-2.0;// move 2mm toward negative direction of Z
N0013 G01 X30.0;//linear interpolation to the bottom of the tank
N0014 G00 X45.0;//escaping to start point
N0015 W-12.0;// move 12mm toward negative direction of Z,and wait for
cutting next tank
N0016 M99;//return the next block N006 of M98
- 142 -
SYNTEC Instruction Guide of Lathe Programming
- 143 -
SYNTEC Instruction Guide of Lathe Programming
NO Explain Input range Unit Description
4051 *start the setting [0,1] Start the setting screen of
screen of workpiece workpiece coordinate,0 for
coordinate disable;1 for enable
- 144 -
SYNTEC Instruction Guide of Lathe Programming
- 145 -
SYNTEC Instruction Guide of Lathe Programming
3、A matter needing attention when compiling program:
1. The first group of the program must start with $1 and the second one must do that
with $2.
2. The quantites of G04.1 P_ must be the same in the first and second group and the
number after P need using in order from small to big.
3. Put M30 or M02 in the first group when promgram ends and M99 must be set in
the end of the second group absolutely.
4. With repeating to process several workpieces automatically put M99 in the end of
the first group program. But notice that for make the first and second groups to
process synchronously, we must compile the same G04.1 P_ code before the M99
of the first and second group.
$1
----------
----------
G04.1 P20
M99
$2 The same
-----------
-----------
G04.1 P20
M99
5. With the axis set belong to the second group we only can start G code in the
second group. With the one set belong to the first group if we start G code in the
second group Iit can not work.
6. The first and second group all can support M code、S code and T code. Therefore
we can run M code、S code and T code in the first and second group
simultaneously.
- 146 -
SYNTEC Instruction Guide of Lathe Programming
4、Compiling programs:
Start a new file and imitate the example below to compile processing programs
$1
G00 X50. //move X axis in the first group
G04.1 P1
The first group Z100. // move Z axis in the first group
------------
------------
G04 P30
M30 Simultaneous
$2
G00 X250 // move X axis in the second group
Simultaneous
Z500.. // move Z axis in the second group
G04.1 P1
The second group ------------
------------
------------
------------
G04.1 P30
M99
- 147 -
SYNTEC Instruction Guide of Lathe Programming
5、Examples for processing program:
T1
X
Frist (50,160)
A7 A6
A5 A4 C2 1.0
A3
∅40 A2 A1 A0
∅8.0
Second (0,200)
∅30
∅20
Z
B1 B0 T2
20 40 30 20
110
- 148 -