Navigation

  • Page 1

    SYNTEC Instruction Guide of Lathe Programming - I - SYNTEC Instruction Guide of Lathe Programming By¡G SYNTEC Data¡G 2006/11/10 Ver¡G 7.7

  • Page 2

    SYNTEC Instruction Guide of Lathe Programming - II - The record of version update item The content Date AuthorThe latest version 01 the first craft 2005/10/01Jerry V7.1 02 1.add G68,G69 2.Modify G10 2006/01/25Jerry V7.2 03 1. modify the specification of G01,G04,C 2. modify the feedr...

  • Page 3

    SYNTEC Instruction Guide of Lathe Programming - III - Menu LATHER PROGRAM INSTRUCTION DESCRIPTION 5 A¡B G CODE INSTRUCTION DESCRIPTION 5 1.1¡B G Code List 5 1.2.1 G00¡G POSITIONING 7 1.2.2 G01¡G LINEAR INTERPOLATION 9 1.2.3 G02¡B G03¡G CIRCULAR INTERPOLATION 11 1.2.4 G04¡G DWE...

  • Page 4

    SYNTEC Instruction Guide of Lathe Programming - IV - Canned Cycle For Drilling(G80¡ã G89) 106 1.2.34 G83/G87¡G FRONT/SIDE DRILLING CYCLE 108 1.2.35 G84 / G88: FRONT/SIDE TAPPING CYCLE 111 1.2.36 G85/G89¡G FRONT/SIDE BORING CYCLE 113 1.2.37 G92¡G COORDINATE SYSTEM SETTING/MAX. SPI...

  • Page 5

    SYNTEC Instruction Guide of Lathe Programming - 5 - Lather Program Instruction Description A¡B G Code Instruction Description 1.1¡BG Code List G code Function Name Type A Type B Type C Index Positioning(Rapid traverse) G00 G00 G00 5 Linear interpolation(cutting feed) G01 G01 G01 7 Ci...

  • Page 6

    SYNTEC Instruction Guide of Lathe Programming - 6 - G code Function Name Type A Type B Type C Index Workpiece coordinate system selection G54 ~G59.9G54 ~G59.9G54 ~G59.9 71 Single Marco calling G65 G65 G65 73 Marco modal calling G66 G66 G66 73 Marco modal call cancel G67 G67 G67 73 Input...

  • Page 7

    SYNTEC Instruction Guide of Lathe Programming - 7 - 1.2¡B Command Description 1.2.1 G00¡Gpositioning Format¡G G00 X(U) Z(W) ¡F X¡B Z¡G specified position(absolute mode) U¡B W¡G specified position(increment mode) Description¡G The G00 command...

  • Page 8

    SYNTEC Instruction Guide of Lathe Programming - 8 - (3). G00 X40.0¡F //A. D. Z0.0¡F //D. C. O. 2. Incremant mode¡G (1). G00 W-100.0¡F // A. B. U-60.0¡F // B. O. (2). G00 U-60.0 W-100.0¡F //A. C. O. (3). G00 U-60.0¡F //A. D. W-100.0¡F // D. C. O. 3. Combination ...

  • Page 9

    SYNTEC Instruction Guide of Lathe Programming - 9 - 1.2.2 G01¡GLinear Interpolation Format¡G G01 X(U) Z(W) F ¡F X¡B Z¡G specified position(absolute mode) U¡B W¡G specified position(increment mode) F¡G Feedrate ¡° G94¡G mm/min . in/min...

  • Page 10

    SYNTEC Instruction Guide of Lathe Programming - 10 - X26.0¡F //P2 P3 X30.0 Z88.0¡F //P3 P4 Z60.0¡F //P4 P5 X40.0 Z20.0¡F //P5 P6 Z0.0¡F //P6 P7 G00 X50.0¡F //return the tool Z160.0¡F //return to zero point M05 M09¡F //spindle stops¡A setting liquid OFF M3...

  • Page 11

    SYNTEC Instruction Guide of Lathe Programming - 11 - 1.2.3 G02¡BG03¡GCircular Interpolation Format¡G G02 R G03 I K G02¡G Circular Interpolation(CW) G03¡G Circular Interpolation(CCW) ...

  • Page 12

    SYNTEC Instruction Guide of Lathe Programming - 12 - 2. Parameter setting in process (1). G02 circular interpolation a. Use R value b. Use I¡B K Strating pointX U/2ZWKCenteredIX Z End pointG02 X(U) Z(W) I K F ¡F RStarting pointX U/2ZW...

  • Page 13

    SYNTEC Instruction Guide of Lathe Programming - 13 - (2). G03 circular interpolation a. Use R value b. Use I¡B K X U/2ZWCenteredX Z KStarting pointEnd pointIG03 X(U) Z(W) I K F ¡F RX U/2ZWCenteredX Z KStarting pointEnd pointG03 X(U) ...

  • Page 14

    SYNTEC Instruction Guide of Lathe Programming - 14 - Example one¡G Program description¡G N001 T01¡F //use tool NO.1 N002 G92 S10000¡F //spindle max. speed 10000 rpm N003 G96 S130 M03¡F //constant surface speed¡A surface speed 130 mm/min¡A spindle rotate CW N004 M08¡F //...

  • Page 15

    SYNTEC Instruction Guide of Lathe Programming - 15 - Example two¡G Program description¡G N001 T01¡F //use tool NO.1 N002 G92 S10000¡F //spindle max. speed 10000 rpm N003 G96 S130 M03¡F //constant surface speed¡A surface speed 130 mm/min¡A spindle rotate CW N004 M08¡...

  • Page 16

    SYNTEC Instruction Guide of Lathe Programming - 16 - 1.2.4 G04¡GDwell Format¡G X(U) P X(U)¡B P¡G dwell time Description¡G We can use G04 command to let the tool dwell a specified time when we process to the specified positi...

  • Page 17

    SYNTEC Instruction Guide of Lathe Programming - 17 - 1.2.5 G07.1¡GCylinder Interpolation Format : G19 Z0 C0; //select the working platform G07.1 C ; //start the cylinder difference, C the cylinder radius ¡B ¡B //the description of ...

  • Page 18

    SYNTEC Instruction Guide of Lathe Programming - 18 - G07.1 C20.0; // start G07.1¡A 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 p...

  • Page 19

    SYNTEC Instruction Guide of Lathe Programming - 19 - 1.2.6 G09¡GExact Stop Format ¡G G09 X__ Z__ ¡F X¡B Z¡G specified corner position Description¡G When we process the corner¡A because the tool moves too fast or servo system delays¡C We can not cut the exactly c...

  • Page 20

    SYNTEC Instruction Guide of Lathe Programming - 20 - 1.2.7 G10¡GProgrammable Data Input Format¡G G10 P X Z R Q ¡F or G10 P U W C Q ¡F P¡G offset number Tool wear offset value¡G P =number of tool we...

  • Page 21

    SYNTEC Instruction Guide of Lathe Programming - 21 - ¡¯ Imaginary tool nose setting¡G Imaginary tool nose NO.1 Imaginary tool nose NO.2 Imaginary tool nose NO.3 Imaginary tool nose NO.4 Imaginary tool nose NO.5 Imaginary tool nose NO.6 Imaginary tool nose NO.7 Imaginary tool no...

  • Page 22

    SYNTEC Instruction Guide of Lathe Programming - 22 - 1.2.8 G12.1¡BG13.1¡GStart/Cancel polar coordinates interpolation Format: G12.1: Start polar coordinates interpolation (Start linear circular or circular interplolation in rectangular coordinate and rectangular coo...

  • Page 23

    SYNTEC Instruction Guide of Lathe Programming - 23 - With G12.1,the planes (chose by G17¡B 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¡B G18 or G19 to assign the plane. 3. We can use ...

  • Page 24

    SYNTEC Instruction Guide of Lathe Programming - 24 - Imagination axisaxisThe route Tool nose radius compensationThe programming route µ{¦¡»¡©ú¡G N001 T0101 N009 G00 X110. C0 Z_; //positon N010 G40 G94; N011 G12.1; //start polar coordinates interpolation N012 G42 G01 X20. F_; N0...

  • Page 25

    SYNTEC Instruction Guide of Lathe Programming - 25 - 1.2.9 G17¡BG18¡BG19¡GPlane Selection Format¡G G17¡F XpYp plane selection G18¡F ZpXp plane selection controller defaut G19¡F YpZp plane selection Description¡G When use circular interpolation command ¡B tool radius compens...

  • Page 26

    SYNTEC Instruction Guide of Lathe Programming - 26 - 1.2.10 G20¡GOuter(Internal) Diameter Cutting Cycle Format¡G 1. Linear cutting cycle¡G G20 X(U) Z(W) F ¡F 2. taper cutting cycle¡G G20 X(U) Z(W) R F ¡F X¡B Z¡G end...

  • Page 27

    SYNTEC Instruction Guide of Lathe Programming - 27 - PIC¡G 1. Linear cutting cycle 2. Taper cutting cycle ¡¯ action description¡G 0. positioning the tool to starting point before cycle start¡F 1. after executing G20 command¡A tool move to specified X(U) ...

  • Page 28

    SYNTEC Instruction Guide of Lathe Programming - 28 - 3. after cutting¡A tool return to starting point¡F 4. after reaching the starting point¡A tool will repeat cutting in the path by changed X(U) value¡F 5. when cut to specified size¡A the tool will stop at starting point¡A and the ...

  • Page 29

    SYNTEC Instruction Guide of Lathe Programming - 29 - Example one¡G Straight cutting cycle Program description¡G N001 G92 S5000¡F //max. speed 5000 rpm N002 T01¡F //use tool NO. 1 N003 G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min¡A spindle rotate CW...

  • Page 30

    SYNTEC Instruction Guide of Lathe Programming - 30 - Example two¡G Taper cutting cycle Program description¡G N001 G92 S5000¡F //max. speed 5000 rpm N002 T01¡F //use tool NO.1 N003 G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min¡A spindle rotate CW N00...

  • Page 31

    SYNTEC Instruction Guide of Lathe Programming - 31 - 1.2.11 G21¡GThread Cutting Cycle Format¡G 1.straight thread cutting cycle¡G G21 X(U) Z(W) H ¡F 2.taper thread cutting cycle¡G G21 X(U) Z(W) R H ¡F X¡B Z¡G e...

  • Page 32

    SYNTEC Instruction Guide of Lathe Programming - 32 - PIC¡G 1. Straight thread cutting cycle¡G G21 X(U) Z(W) F ¡F 2. Taper thread cutting cycle¡G G21 X(U) Z(W) R F ¡F ¡¯ Action description¡G 6. We should positioning the tool to starting poi...

  • Page 33

    SYNTEC Instruction Guide of Lathe Programming - 33 - ¡° When we use increment mode¡Athe relationship of U¡B W¡B R(plus or minus) and the tool path as below¡G (a). U¡Õ0¡A W¡Õ0¡A R¡Õ0 (b). U¡Ö0¡A W¡Õ0¡A R¡Ö0 (c). U¡Õ0...

  • Page 34

    SYNTEC Instruction Guide of Lathe Programming - 34 - Program description¡G N001 T03¡F //use tool NO.3 N002 G97 S600 M03¡F //constant rotate speed¡A 600 rpm CW N003 G00 X50.0 Z70.0¡F //positioning to the starting point of cycle N004 M08¡F //cutting liquid ON N005 G21 X39.0 Z20.0 H3 F...

  • Page 35

    SYNTEC Instruction Guide of Lathe Programming - 35 - X37.7¡F //third cycle X37.3¡F //fourth cycle X36.9¡F //fifth cycle X36.75¡F //sixth cycle N006 G28 X60.0 Z70.0¡F // positioning to specified mid-point and return to machine zero point N007 M09¡F //cutting liquid OFF N008 M05¡F //...

  • Page 36

    SYNTEC Instruction Guide of Lathe Programming - 36 - 1.2.12 G24¡GEnd Face Turning Cycle Format¡G 1. straight end face cutting cycle¡G G24 X(U) Z(W) F ¡F 2. taper end face cutting cycle¡G G24 X(U) Z(W) R F ¡F X¡B Z¡G end position of cutting(absolute) ...

  • Page 37

    SYNTEC Instruction Guide of Lathe Programming - 37 - PIC¡G 1. Straight end face cutting cycle¡G 2. Taper end face cutting cycle¡G ¡¯ Action description¡G 12. We should positioning the tool to starting point before cycle starts¡F 13. After executing G24 comm...

  • Page 38

    SYNTEC Instruction Guide of Lathe Programming - 38 - next cycle¡C ¡° when we use increment mode¡A the relationship of U¡B W¡B R(plus or minus) and the tool path as below¡G (a). U¡Õ0¡AW¡Õ0¡AR¡Õ0 (b). U¡Ö0¡AW¡Õ0¡AR¡Õ0 (c). U¡Õ0¡AW¡Õ0...

  • Page 39

    SYNTEC Instruction Guide of Lathe Programming - 39 - N003 G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min N004 M08¡F //cutting liquid ON N005 G00 X52.0 Z35.0¡F //positioning to starting point of cycle N006 G24 X20.0 Z25.0 F600¡F //execute straight end face cutting¡...

  • Page 40

    SYNTEC Instruction Guide of Lathe Programming - 40 - N007 G28 X70.0 Z35.0¡F //positioning to specified mid-point¡A then return to machine zero point N008 M09¡F //cutting liquid OFF N009 M05¡F //spindle stops N0010 M30¡F //program ends

  • Page 41

    SYNTEC Instruction Guide of Lathe Programming - 41 - 1.2.13 G28¡GReference point return Format¡G G28 X(U) Z(W) ¡F X¡B Z¡G specified mid-point(absolute) U¡B W¡G specified mid-point(incremental) Description¡G when G28 command is e...

  • Page 42

    SYNTEC Instruction Guide of Lathe Programming - 42 - 1.2.14 G29¡GReturn from reference point Format¡G G29 X(U) Z(W) ¡F X¡B Z¡G specified point(absolute) U¡B W¡G specified point(incremental) Description¡G G29 command only be executed after yo...

  • Page 43

    SYNTEC Instruction Guide of Lathe Programming - 43 - 1.2.15 G30¡GAny reference point return Format¡G G30 Pn X(U) Z(W) ¡F X¡B Y¡B Z¡G coordinate value of mid-point¡F Pn¡G specify the reference point(setting parameter #2801 ~ #2860) P1¡G machine zero point¡F P2¡G second r...

  • Page 44

    SYNTEC Instruction Guide of Lathe Programming - 44 - 1.2.16 G31¡GSkip Function Format¡G G31 X(U)__ Z(W)__ F__¡F X¡B Z¡G specified position(absolute) U¡B W¡G specified position(incremental) F¡G feedrate Description¡G Skip function is use...

  • Page 45

    SYNTEC Instruction Guide of Lathe Programming - 45 - Example two¡G Absolute mode for one axis Program description¡G N001 G31 Z200.0 F100¡F // origin path until run into contact point N002 X100.0¡F // use zero point to be the relative coo...

  • Page 46

    SYNTEC Instruction Guide of Lathe Programming - 46 - 1.2.17 G33¡GThread cutting Format¡G (1)continuous thread cutting¡G G33 Z(W) Q ¡F (2)circular threading¡G G33 X(U) Z(W) Q ¡F (3)multiple-thread cutting¡G G33 X(U) ...

  • Page 47

    SYNTEC Instruction Guide of Lathe Programming - 47 - PIC¡G Notice ¡G ¡° Input unit and modal of E¡B F value as below table¡G table 1. Metric system¡B table 2. English system Input unit A(0.01mm) B(0.001mm) C(0.0001mm) Command position F(mm/rev)E(mm/rev) E(pc/inch)F(mm/re...

  • Page 48

    SYNTEC Instruction Guide of Lathe Programming - 48 - (3). If we use dwell in thread cutting¡Athe thread will be damaged¡C So we can not use dwell when thread cutting¡C If we push down the dwell button¡Athe thread cutting will be ended(not in G33 mode)¡C And it will stop in the next b...

  • Page 49

    SYNTEC Instruction Guide of Lathe Programming - 49 - (9). In non-synchronous feed(G94) command¡A the thread cutting command will become synchronous feed type¡C (10). During the thread cutting¡A manual adjustment of speed is effective¡A too¡C If you manually adjust the speed during th...

  • Page 50

    SYNTEC Instruction Guide of Lathe Programming - 50 - Example one¡G Program description¡G T03¡F //use tool NO.3 G97 S1000 M03¡F //spindle rotate CW 1000 rpm¡A constant rotate speed M08¡F //cutting liquid ON G00 X30.0 Z10.0¡F //positioning to starting point of cutting ...

  • Page 51

    SYNTEC Instruction Guide of Lathe Programming - 51 - G33 Z-30.0 F2.5¡F // G00 X30.0¡F // Z10.0¡F // X17.7¡F // G33 Z-30.0 F2.5¡F // G00 X30.0¡F // Z10.0¡F // X17.3¡F // G33 Z-30.0¡F // G00 X30.0¡F // Z10.0¡F // X16.9¡F // G33 Z-30.0 F2.5¡F // G00 X30....

  • Page 52

    SYNTEC Instruction Guide of Lathe Programming - 52 - Example two¡G Pitch = 2.5 Program description¡G T03¡F //use tool NO.3 G97 S1000 M03¡F //spindle rotate CW 1000 rpm¡A constant rotate speed M08¡F //cutting liquid ON G00 X40.0 Z10.0¡F //positioning to starting point of...

  • Page 53

    SYNTEC Instruction Guide of Lathe Programming - 53 - G33 X17.9 Z-30.0 F2.5¡F // G00 X40.0¡F // Z10.0¡F // X9.75¡F // G33 X17.75 Z-30.0 F2.5¡F // G00 X40.0¡F // Z10.0¡F // G28 X50.0 Z30.0¡F //positioning to specified mid-point¡A and return to machine zero point M09¡F ...

  • Page 54

    SYNTEC Instruction Guide of Lathe Programming - 54 - Tool Compensation F unction(T Function) Format¡G T ¡¯¡¯¡F (two code form) T ¡¯¡¯ ¡¯¡¯¡F (four code form) Description¡G Two code form¡G for tool number¡B tool length compensation and wear compensation selection...

  • Page 55

    SYNTEC Instruction Guide of Lathe Programming - 55 - (2) Tool nose of basic tool b. Principle Of Tool Length Compensation¡G b-1. Tool compensation starts Tool compensation action is start after executing T command and executing movement command b-2. Number change of...

  • Page 56

    SYNTEC Instruction Guide of Lathe Programming - 56 - b-3. Tool length compensation cancel (1) Number of compensation is 0 When number of compensation is “0” in T command ¡Acompensation cancels¡C (2) Com...

  • Page 57

    SYNTEC Instruction Guide of Lathe Programming - 57 - c. Tool Nose Wear Compensation¡G Tool nose wear compensation value setting It can compensate when tool nose wears¡A this compensation value will plus geometric compensation ¡CGeometric compensation = tool length compensation + wear ...

  • Page 58

    SYNTEC Instruction Guide of Lathe Programming - 58 - 1.2.18 G41¡BG42¡BG40¡GTool Nose Radius Compensation Format¡G G41 G42 G40¡F compensation cancel X¡B Z¡G specified position(absolute) U¡B W¡G specified positi...

  • Page 59

    SYNTEC Instruction Guide of Lathe Programming - 59 - PIC¡G 1. Relationship between tool feed direction and workpiece¡A setting of compensation¡G 2. Compensation setting of actually perform workpiece Cutting directionG41 workpieceCutting directionG42 XZ XZG41 X ...

  • Page 60

    SYNTEC Instruction Guide of Lathe Programming - 60 - 3. Imaginary tool nose number setting¡G Imaginary tool nose NO.1 Imaginary tool nose NO.2 Imaginary tool nose NO.3 Imaginary tool nose NO.4 Imaginary tool nose NO.5 Imaginary tool nose NO.6 Imaginary tool nose NO.7 Imaginary to...

  • Page 61

    SYNTEC Instruction Guide of Lathe Programming - 61 - (3). Cutting arc¡G ¡° Tool Radius ( R ) compensation¡G 1. Compensation Starts¡G When a block which satisfies all the following conditions is executed in start mode, the system enters the offset mode. Contro...

  • Page 62

    SYNTEC Instruction Guide of Lathe Programming - 62 - (a ). Inner Side (180¢X¡Ù £\ ) ( i ). Linear Linear ( ii ). Linear Circular ( b ). Outer Side (90¢X¡Ù£\¡Õ180¢X) ( i ). Linear Linear ( ii ). Linear Circular ( c ). Outer Side (£\¡Õ90¢X) ( i ). Linear Linear ...

  • Page 63

    SYNTEC Instruction Guide of Lathe Programming - 63 - 2. Compensation mode¡G In compensation mode¡A it uses compensation even during positioning¡F In compensation mode¡A it does not specify movement block(M Function or dwell .etc.) it can not be specified continuity¡F If it is spe...

  • Page 64

    SYNTEC Instruction Guide of Lathe Programming - 64 - 3. Compensation Cancel In compensation mode¡Awhen block satisfied below following conditions¡Asystem will enter cancel mode¡G ( b ). Outer Side(90¢X¡Ø£\¡Õ180¢X) ( i ). Linear Linear ( ii ). Linear Circular ( iii ). Circular L...

  • Page 65

    SYNTEC Instruction Guide of Lathe Programming - 65 - a. Specify G40 b. The number of tool nose radius compensation is specified to “0” ( a ). Inner Side (180¢X¡Ø £\ ) ( i ). Linear Linear ( ii ). Linear Circular ( b ). Outer Side (90¢X¡Ø£\¡Õ180¢X) ( i ). Linear Linear ( i...

  • Page 66

    SYNTEC Instruction Guide of Lathe Programming - 66 - Example one¡G Program description¡G T02¡F//use tool NO.2 G92 S10000¡F//max. rotate speed¡A10000rpm G96 S130 M03¡F//constant surface speed¡Aspindle rotate 130 m/min CW M08¡F//cutting liquid ON G42 X21.0 Z0.0¡F//t...

  • Page 67

    SYNTEC Instruction Guide of Lathe Programming - 67 - M05¡F//spindle stops M30¡F//program ends Example two¡G Program description¡G T02¡F //use tool NO.2 G92 S1000¡F //max. rotate speed¡A 10000rpm G96 S130 M03¡F //constant surface speed¡A spindle rotate 130 m/min ...

  • Page 68

    SYNTEC Instruction Guide of Lathe Programming - 68 - 1.2.19 G52¡GLocal Coordinate System Setting Format¡G G52 X__ Y__ Z__ ¡F X¡B Y¡B Z¡G setting the local coordinate system Description¡G When you specify a work coordinate system(G54~G59.9)¡C When perform the workpie...

  • Page 69

    SYNTEC Instruction Guide of Lathe Programming - 69 - 1.2.20 G53¡GMachine Coordinate System Format¡G G53 X___ Y___ Z___ ¡F X¡G move to specified X in machine coordinate¡C Y¡G move to specified Y in machine coordinate¡C Z¡G move to specified Z in machine coordinate¡C Descriptio...

  • Page 70

    SYNTEC Instruction Guide of Lathe Programming - 70 - Example¡G Program description¡G 1. G53 X20.0 Z20.0¡F //move to specified position in machine coordinate 2. G53 X10.0 Z40.0¡F //move to specified position in machine coordinate Tool X+ Y+ Z+Chuck Tool...

  • Page 71

    SYNTEC Instruction Guide of Lathe Programming - 71 - 1.2.21 G54...G59.9¡GWorkpiece Coordinate System Format¡G G54 G55 G56 G57 G58 G59 G59.1 G59.2 ¡G ¡G G59.9 G54¡G First workpiece coordinate system : : : : G59¡G Sixth workpiece coordinate system G59.1¡...

  • Page 72

    SYNTEC Instruction Guide of Lathe Programming - 72 - 54 …G59.9 one by one¡C Example¡G Workpiece coordinate system (G54…G59) G59.1~G59.9 X+ G59G28Reference point G30Second reference pointY+Z+Local coordinate system(G54~G59.9 effective)Chuck Tool seatM...

  • Page 73

    SYNTEC Instruction Guide of Lathe Programming - 73 - 1.2.22 G65¡GSimple Marco Call Format¡G G65 P L ¡F P¡G number of the program to call¡F L¡G times of repeating¡F Description¡G After G65¡A specify at address P the program number of th...

  • Page 74

    SYNTEC Instruction Guide of Lathe Programming - 74 - 1.2.24 G70/G71¡GEnglish/Metric Unit Setting Format¡G G70¡F G71¡F Description¡G G70¡G English unit system G71¡G Metric unit system After changing English/Metric¡A workpiece coordinate offset¡Btool data¡B system parameter¡...

  • Page 75

    SYNTEC Instruction Guide of Lathe Programming - 75 - 1.2.27 G72¡GFinishing Cycle Format¡G G72 P(ns) Q(nf) ¡F ns¡G Sequence number of the first block for the program of finishing cycle nf¡G Sequence number of the last block for the program of fini...

  • Page 76

    SYNTEC Instruction Guide of Lathe Programming - 76 - Example One¡G Program description¡G T01¡F //use tool NO. 1 G92 S5000¡F //Max. rotate speed 5000 rpm G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min¡A spindle rotate CW G00 X60.0 Z15.0¡F //positioni...

  • Page 77

    SYNTEC Instruction Guide of Lathe Programming - 77 - M09¡F //cutting liquid OFF M28 X60.0 Z20.0¡F //tool positioning to specified mid-point¡A then return to machine zero point M05¡F //spindle stops M30¡F //program ends Example two¡G Program description¡G T01¡F //use tool ...

  • Page 78

    SYNTEC Instruction Guide of Lathe Programming - 78 - N01 G00 Z-55.0¡F G01 X60.0¡F Z-45.0¡F X50.0 Z-40.0¡F X40.0¡F G03 X30.0 Z-35.0 R5.0¡F shape of cutting G01 Z-30.0¡F X20.0 Z-15.0¡F X15.0¡F Z-1.5...

  • Page 79

    SYNTEC Instruction Guide of Lathe Programming - 79 - M08¡F //cutting liquid ON G75 U15.0 W15.0 R3.0¡F //cut 15.0mm in X axis direction¡A cut 3.0mm in Z axis direction¡A repeat 3 times G75 P01 Q02 U0.8 W0.2 F300¡F //execute pattern repeating cutting¡A the sequence number N01 N02¡A ...

  • Page 80

    SYNTEC Instruction Guide of Lathe Programming - 80 - 1.2.28 G73¡GStock Removal in Turning Format¡G G73 U£G d R e ¡F G73 P (ns) Q (nf) U£G u W£G w F S T ¡F £G d¡G depth of cut in X axis direction¡A it can be specified by the parameter#4013 and the paramet...

  • Page 81

    SYNTEC Instruction Guide of Lathe Programming - 81 - PIC¡G 1. TYPE I¡Gthere is only X axis motion command in first block “ns”¡Ait usually use in end face performing¡C Each block must satisfy that cut value must be decrease or increase next block to last block in X axis and Z axis...

  • Page 82

    SYNTEC Instruction Guide of Lathe Programming - 82 - 2. TYPE II¡G This is synchronous moving command (X axis and Z axis) in first block “ns”¡A it usually performs in the middle of the workpiece¡C At TYPE II¡A only Z axis need to satisfy increase or decrease condition¡C ...

  • Page 83

    SYNTEC Instruction Guide of Lathe Programming - 83 - this block¡C 5. Sub-program can not be called during block nsnf¡C 6. All tool nose compensation commands will be disable when G73 is in the block¡A but the compensation value will be added to the preparation size¡C 7. Directi...

  • Page 84

    SYNTEC Instruction Guide of Lathe Programming - 84 - Example one¡G TYPE I Program Description¡G T01¡F //use tool NO. 1 G92 S5000¡F //max. rotate speed 5000 rpm G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min¡A spindle rotate CW G00 X60.0 Z15.0¡F //posit...

  • Page 85

    SYNTEC Instruction Guide of Lathe Programming - 85 - M28 X60.0 Z20.0¡F //positioning to specified mid-point¡A then return to machine zero point M05¡F //spindle stops M30¡F //program ends Example two¡G TYPE II Program description¡G T01¡F //use tool NO. 1 G92 S5000¡F /...

  • Page 86

    SYNTEC Instruction Guide of Lathe Programming - 86 - N01 G00 X101.0 Z-20.0¡F TYPE II G01 X100.0¡F X30.0 Z-40.0¡F Z-60.0¡F X70.0 Z-70.0¡F shape of cutting Z-80.0¡F X50.0 Z-90.0¡F Z-110.0¡F N02 X100.0 Z-130.0¡F G28 ...

  • Page 87

    SYNTEC Instruction Guide of Lathe Programming - 87 - 1.2.29 G74¡GStock Removal in Facing Format¡G G74 W d R e ¡F G74 P (ns) Q (nf) U£G u W£G w F S T ¡F d¡Gdepth of cut in Z axis direction¡Ait can be specified by the parameter#4013 and the parameter is changed ...

  • Page 88

    SYNTEC Instruction Guide of Lathe Programming - 88 - Action description¡G (1). Positioning to point A (start point) before cycle starts¡F (2). After executing G74 command¡A tool offsets to C point according to specified finishing allowance (£G U/2 in X direction¡A£G W in Z direction...

  • Page 89

    SYNTEC Instruction Guide of Lathe Programming - 89 - 15. Direction of finishing allowance¡G the direction is depended on below figures¡CPath is A A’ B¡C Example¡G Program description¡G T01¡F //use tool NO. 1 G92 S5000¡F //max. rotate speed 5000 rpm G96 S1...

  • Page 90

    SYNTEC Instruction Guide of Lathe Programming - 90 - // execute stock removal in turning¡A the sequence of block N01N02¡Afinishing allowance in X direction is 0.8 mm¡A finishing allowance in Z direction is 0.2mm¡A feedrate 600 £g m/rev N01 G00 Z-55.0¡F G01 X60.0¡F Z-45....

  • Page 91

    SYNTEC Instruction Guide of Lathe Programming - 91 - 1.2.30 G75¡GPattern Repeating Format¡G G75 U£G i W£G k R d ¡F G75 P (ns) Q (nf) U£G u W£G w F S T ¡F £G i¡G distance and direction of relief in the X axis direction¡A this value can be specified by the ...

  • Page 92

    SYNTEC Instruction Guide of Lathe Programming - 92 - PIC¡G Action description¡G (1). Positioning to point A (start point) before cycle starts¡F (2). After executing G75¡A tool offsets to point C by specified finishing allowance (£G U/2 for X axis¡A£G W for Z axis) and...

  • Page 93

    SYNTEC Instruction Guide of Lathe Programming - 93 - Example¡G Program description¡G T01¡F //use tool NO. 1 G92 S5000¡F //max. rotate speed 5000 rpm G96 S130 M03¡F //constant surface speed¡A surface speed 130 m/min¡A spindle rotate CW G00 X140.0 Z30.0¡F //positionin...

  • Page 94

    SYNTEC Instruction Guide of Lathe Programming - 94 - M09¡F //cutting liquid OFF G28 X140.0 Z30.0¡F //positioning to specified mid-point¡A then return to machine zero point M05¡F //spindle stops M30¡F //program ends

  • Page 95

    SYNTEC Instruction Guide of Lathe Programming - 95 - 1.2.31 G76¡GEnd Face (Z axis) Peck Drilling Cycle Format¡G G76 R e ¡F G76 X(U) Z(W) P£G i Q£G k R d F ¡F e¡G return amount(return amount in Z direction when cut £G k distance) it can be setted by parameter #401...

  • Page 96

    SYNTEC Instruction Guide of Lathe Programming - 96 - PIC¡G Action description¡G (1). Positioning to point A (start point) before cycle starts¡F (2). After executing G76¡A tool will start peck drilling from point A to point C¡Aand it will return e amount every time when too...

  • Page 97

    SYNTEC Instruction Guide of Lathe Programming - 97 - Example¡G Program description¡G T05¡F //use tool NO. 5 G92 S1000¡F //max. rotate speed 1000 rpm G96 S100 M03¡F //constant surface speed¡A surface speed 100 m/min¡A spindle rotate CW M08¡F //cutting liquid ON G00 X60.0...

  • Page 98

    SYNTEC Instruction Guide of Lathe Programming - 98 - 1.2.32 G77¡GOuter Diameter/Internal Diameter Drilling Cycle Format¡G G77 R e ; G77 X(U)___ Z(W)___ P£G i Q£G k R£G d F ; e¡Greturn amount(after cutting £G i distance in X axis direction) it can be setted by parameter #...

  • Page 99

    SYNTEC Instruction Guide of Lathe Programming - 99 - Action description¡G (1). Positioning to point A(start point) before cycle starts¡F (2). After executing G77¡A it will start peck cutting from point A¡A when cutting distance £G i¡A then escaping distance e¡A it will cut to speci...

  • Page 100

    SYNTEC Instruction Guide of Lathe Programming - 100 - G00 X70.0 Z20.0¡F //positioning close to workpiece Z-20.0¡F //positioning to start point of cutting G77 R1.0¡F G77 X30.0 Z-35.0 P8.0 Q4.0 D0.0 F150¡F //execute Outer Diameter/Internal Diameter Drilling Cycle¡A after cut 8.0 mm...

  • Page 101

    SYNTEC Instruction Guide of Lathe Programming - 101 - 1.2.33 G78¡GMultiple Thread Cutting Cycle Format¡G G78 P m r a Q___ R d ; G78 X(U)___ Z(W)___ R i P k Q d H F___; P¡G m¡G repetitive count in finishing¡A specified by system parameter #4044¡C r¡G chamfering amount¡A s...

  • Page 102

    SYNTEC Instruction Guide of Lathe Programming - 102 - command to finish thread cutting¡A therefore it wastes much time¡C 2. G21(thread cutting cycle)¡G this is “single” cycle command of thread cutting¡Awe can use one block of command to finish thread cutting¡A but it also need to...

  • Page 103

    SYNTEC Instruction Guide of Lathe Programming - 103 - 2. how to cut when threading and the depth of cutting¡G Example one¡G compare with example one of G21 Program description¡G N001 T03¡F //use tool NO. 3 N002 G97 S600 M03¡F //constant rotate speed¡A 600 r...

  • Page 104

    SYNTEC Instruction Guide of Lathe Programming - 104 - //difference radius of multiple thread cutting cycle is 0 mm¡A depth of thread 1.624 mm¡A first cutting value is 1.0 mm¡A lead of thread 2.5 mm¡Athree tooth thread cutting N007 G28 X60.0 Z75.0¡F //positioning to specified mi...

  • Page 105

    SYNTEC Instruction Guide of Lathe Programming - 105 - N005 G78 P011060 Q0.15 R0.02¡F // execute multiple repetitive cycle¡A finishing cutting once¡A escaping amount¡×Lead¡A angle of tooth 60¢X¡A Min. depth of cutting 0.15 mm¡Afinishing allowance 0.02 mm N006 G78 X36.75 Z15.0 R-10...

  • Page 106

    SYNTEC Instruction Guide of Lathe Programming - 106 - Canned Cycle For Drilling(G80¡ãG89) The canned cycle for drilling simplifies the program normally by directing the machining operation commanded with a few blocks¡A using one block including G function¡C Table of Canned Cycle G cod...

  • Page 107

    SYNTEC Instruction Guide of Lathe Programming - 107 - ¡° G83/G87¡B G84/G88¡B G85/G89 the front is for Z axis and the back is for X axis¡C In general¡A the drilling cycle consists of the following six operation sequence¡G Operation 1 positioning of X(Z) and C axis Operation 2 Rapi...

  • Page 108

    SYNTEC Instruction Guide of Lathe Programming - 108 - 1.2.34 G83/G87¡GFront/Side Drilling Cycle Format¡G G83 X(U) C(H) Z(W) R Q P F K M ¡F or G87 Z(W) C(H) X(U) R Q P F K M ¡F X(U) C or Z(W) C ¡G Hole p...

  • Page 109

    SYNTEC Instruction Guide of Lathe Programming - 109 - PIC¡G TYPE I¡G High speed drilling cycle (Custom Parameter No.4001= 1) TYPE II¡G drilling cycle (Custom Parameter No.4001=0 Dwell P(s) d d Q Q Q Point R MunclampMclamp Initial levelPoint ZG83/G87(G9...

  • Page 110

    SYNTEC Instruction Guide of Lathe Programming - 110 - TYPE III¡G Drilling without specified Q Program example¡G pretend M31 is Clamp command of C axis¡A M32 is Unclamp command of C axis N001. S1000¡F //spindle speed 1000 rpm N002. G00 X50.0¡F //positioning to st...

  • Page 111

    SYNTEC Instruction Guide of Lathe Programming - 111 - 1.2.35 G84 / G88: Front/Side Tapping Cycle Format¡G G84 X(U) C(H) Z(W) R P F K M ¡F or G88 Z(W) C(H) X(U) R P F K M ¡F X(U) C or Z(W) C ¡G Hole positioning data Z(W) C or...

  • Page 112

    SYNTEC Instruction Guide of Lathe Programming - 112 - Action description¡G 1. Action starts¡A Z axis uses G00 moving to point R(R only uses incremental) 2. Start tapping¡A pitch is specified F value 3. Until Z axis reach the Z depth of G84(Z absolute / W incremental) 4. Spindle stops 5...

  • Page 113

    SYNTEC Instruction Guide of Lathe Programming - 113 - 1.2.36 G85/G89¡GFront/Side Boring Cycle Format¡G G84 X(U) C(H) Z(W) R P F K M ¡F or G88 Z(W) C(H) X(U) R P F K M ¡F X(U) C or Z(W) C ¡G Hole position data Z(W) C or...

  • Page 114

    SYNTEC Instruction Guide of Lathe Programming - 114 - Program example¡G pretend M31 is Clamp command of C axis¡F M32 is Unclamp command of C axis N001 S1000 M03¡F //spindle rotates CW¡A rotate speed 1000 rpm N002 G00 X50.0¡F //positioning to start point N003 G98 G85 Z-40....

  • Page 115

    SYNTEC Instruction Guide of Lathe Programming - 115 - 1.2.37 G92¡GCoordinate System Setting/Max. Spindle Speed Setting Format¡G G92 X Z ¡F or G92 S ¡F X¡BZ¡Gbasic coordinate system position setting (G92) in program coordinate system¡F S¡G spindle speed¡F Description...

  • Page 116

    SYNTEC Instruction Guide of Lathe Programming - 116 - 1.2.38 G94/G95¡GUnit Setting of Feed Amount Format¡G G94 F ¡F G95 F ¡F Description¡G This command can set feed amount unit of F function(tool movement of per minute or per revolution)¡F G94 is for feedrate per minute(mm/m...

  • Page 117

    SYNTEC Instruction Guide of Lathe Programming - 117 - 1.3.39 G96/G97¡GConstant Surface Speed Control Format¡G G96 S ¡F constant surface speed control ON G97 S ¡F constant surface speed control OFF Description¡G G96 command can specify the surface speed of the contact point which ...

  • Page 118

    SYNTEC Instruction Guide of Lathe Programming - 118 - 1.2.40 Chamfer¡ACorner Round¡AAngle Command (,C,R,A) We could use the angle of straight line¡A chamfering¡A corner rounding in the mechanical drawing¡A and other dimensions that could directly use this function to input the drawi...

  • Page 119

    SYNTEC Instruction Guide of Lathe Programming - 119 - Example¡G (the chamfer of straight line and arc) Program description¡G 1. absolute command¡G G28 X0.0 Z0.0¡F G00 X50.0 Z100.0¡F G01 X150.0 Z50.0 F100.0 ,C20.0¡F G01 X50. Z0¡F 2. incremental command¡G G28...

  • Page 120

    SYNTEC Instruction Guide of Lathe Programming - 120 - Example¡G (corner between straight line and arc) Program description¡G 1. absolute command G28 X0.0 Z0.0¡F G00 X60.0 Z100.0¡F G01 X160.0 Z50.0 F100 ,R10.0¡F G02 X60.0 Z0.0 I0.0 K-50.0; 2. incremental comm...

  • Page 121

    SYNTEC Instruction Guide of Lathe Programming - 121 - 1.2.40-2 Angle Command ( ,A_)¡G Format¡G G01 Z (X ) ,A ¡F //specify the angle and the coordinate of X or Z¡C Example¡G a1(X ,Z)X Za145¢X(50,50) (150,100)Program description¡G N01 G00 ...

  • Page 122

    SYNTEC Instruction Guide of Lathe Programming - 122 - 1.2.40-3 Geometric Function Command¡G In continuous linear interpolation command¡A if it is hard to get the node of two lines¡C We can use the sloping angle of the first line¡A absolute coordinate value of second line and the s...

  • Page 123

    SYNTEC Instruction Guide of Lathe Programming - 123 - (2) The angle is the horizontal axis adding the angle in + direction at specified plant¡A CCW is for positive¡A CW is for negative¡C (3) The sloping angle can be specified in start point or end point of start side or end side¡C NC ...

  • Page 124

    SYNTEC Instruction Guide of Lathe Programming - 124 - (2). Command Format¡G N01 ,Aa1 ,Rr1¡F N02 Xx3 Zz3 Aa2¡F Description¡G Tool reaches to specified position(X3,Z3) according to the command¡Aand there are specified angle¡y a1¡z¡B¡y a2¡z between the twice movem...

  • Page 125

    SYNTEC Instruction Guide of Lathe Programming - 125 - TYPE ¢º¡GAfter Chamfering command¡BAngle round command (R)¡A we can continue to do linear angle command Format¡G TYPE ¢»¡GAfter linear angle command¡A we can continue to do linear angle command Format¡G ...

  • Page 126

    SYNTEC Instruction Guide of Lathe Programming - 126 - ¡° Notice¡G 1. Round angle value can not be inserted in threading area. 2. Entering the continuous command in next area by drawing size¡C Than the end point is already be specified in the front area¡C Stop can not be execu...

  • Page 127

    SYNTEC Instruction Guide of Lathe Programming - 127 - Geometric Function Usage Table Command Movement Description 1. X2 (Z2) , A ¡F According to the any coordinate value of X2(or Z2) and the angle¡y A¡z which is between path and horizontal axis¡C Use controller to computer t...

  • Page 128

    SYNTEC Instruction Guide of Lathe Programming - 128 - Command Movement Description 5. X2 Z2 ,R1 ¡F X3 Z3 , R2 ¡F X4 Z4 ¡F Or ,A1 , R1 ¡F X3 Z3 , A2 ,R2 ¡F X4 Z4 ¡F According to the command to reach to the specified position (X2,Z2) (X3,Z3) (X4,Z4)¡Athe corn...

  • Page 129

    SYNTEC Instruction Guide of Lathe Programming - 129 - 8. X2 Z2 ,C1 ¡F X3 Z3 , R2 ¡F X4 Z4 ¡F Or ,A1 , C1 ¡F X3 Z3 , A2 ,R2 ¡F X4 Z4 ¡F According to the command to reach to the specified position (X2,Z2) (X3,Z3) (X4,Z4)¡Athe corner of the front two path is a...

  • Page 130

    SYNTEC Instruction Guide of Lathe Programming - 130 - Example¡G Program description¡G (input diameter by Metric system) N002 G01 X60.0 A90.0, C1.0 F80¡F //linear interpolation¡A the angle between the straight line and horizontal axis is “+90¢X”¡A and chamfering C...

  • Page 131

    SYNTEC Instruction Guide of Lathe Programming - 131 - 1.2.41 Tool Function : T code command Format¡G T Description¡G Tool function is also called T function¡C It’s main function is tool exchange¡CIt will use with ¡]¢Û¢¯¢µ¡^ normally¡C We can do auto tool exchange accordi...

  • Page 132

    SYNTEC Instruction Guide of Lathe Programming - 132 - 1.2.44 PROGRRAMBLE MIRROR IMAGE Format: G68; Start X axis progrramble mirror image G69; Cancel progrramble mirror image Description: With double turrets in lathe we can mirror the location in X-axis with XO by G c...

  • Page 133

    SYNTEC Instruction Guide of Lathe Programming - 133 - Ex: Program illustration¡G N001 T0101 //turret 1 N002 G01 Z180. X40. //position-1 N003 Z120. N004 T0202 //turret 2 Cancel progrramble mirror image Absolute location G90 or G91 Assign the mi...

  • Page 134

    SYNTEC Instruction Guide of Lathe Programming - 134 - 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 ...

  • Page 135

    SYNTEC Instruction Guide of Lathe Programming - 135 - B¡B M Code Command Description¡G auxiliary function is used on controlling the On and OFF of the machine function. There are two numbers behind the code to be the format¡C We introduce the the application number and function list as...

  • Page 136

    SYNTEC Instruction Guide of Lathe Programming - 136 - 3¡B M02¡G Program ends If there is M02 command on the end of program¡A CNC execute this command¡A the machine will stop all action at the same time¡C If you want to restart the program¡Awould be effective only by pressing the “...

  • Page 137

    SYNTEC Instruction Guide of Lathe Programming - 137 - ¡¯ 11¡B M98/M99¡G Subprogram Control Format¡G (1). M98 P H L ¡F Calling of subprogram P¡G the number of calling subprogram(when P is ignored¡A it is for program itself¡A and it is only for mem...

  • Page 138

    SYNTEC Instruction Guide of Lathe Programming - 138 - ¡° Making and Executing of Subprogram¡G The normal format as below¡G Main program use with calling of subprogram¡A and sequence of executing¡G Special usage of subprogram¡G (1). We can e...

  • Page 139

    SYNTEC Instruction Guide of Lathe Programming - 139 - main program¡A and execute the block of the sequence number which is specified by H_ function¡C (2). Subprogram also can execute P_ command and H_ command in M98¡A it will execute the program from the sequence numb...

  • Page 140

    SYNTEC Instruction Guide of Lathe Programming - 140 - (3). If there is no P_ command and only has H_ command in the subprogram¡C The result after calling¡A it will execute sequence number of main program that specified by H_ command¡C After executing M99 it will return to the next bloc...

  • Page 141

    SYNTEC Instruction Guide of Lathe Programming - 141 - Program description¡G (1). First way¡G P command in block of M98 ¡¯Main program. T03¡F //use tool NO.3 G97 S710 M03¡F //constant rotate speed of spindle¡A 710 rpm CW M08¡F //cutting liquid ON G00 X45.0 Z-12.0¡F //positioning t...

  • Page 142

    SYNTEC Instruction Guide of Lathe Programming - 142 - N006 G28 X80.0 Z80.0¡F //positioning to specified mid-point and return to machine zero point N007 M09¡F //cutting liquid OFF N008 M05¡F //spindle stops N009 M02¡F //program ends N0010 G01 X30.0 F200¡F start with this block after...

  • Page 143

    SYNTEC Instruction Guide of Lathe Programming - 143 - Postscript 1¡G Description of lathe parameter NO Explain Input range Unit Description 4001 Drilling mode [0,1] 0:high speed;1:normal 4002 Escaping amount of drilling cycle [0,999999999]LIU LIU is min. input unit¡A and it will be eff...

  • Page 144

    SYNTEC Instruction Guide of Lathe Programming - 144 - NO Explain Input range Unit Description 4051 *start the setting screen of workpiece coordinate [0,1] Start the setting screen of workpiece coordinate,0 for disable¡F 1 for enable

  • Page 145

    SYNTEC Instruction Guide of Lathe Programming - 145 - Postscript 2¡G Description of lathe double program To save the time of the processing, the SYNTEC lathe’s controllers can drive two programs simultaneously. They can drive two pairs of turret to program linear interpolation and c...

  • Page 146

    SYNTEC Instruction Guide of Lathe Programming - 146 - 3¡B 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 ...

  • Page 147

    SYNTEC Instruction Guide of Lathe Programming - 147 - 4¡B 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 Z100. // move Z axis in the first group ------------ ------------ G04 P30 M3...

  • Page 148

    SYNTEC Instruction Guide of Lathe Programming - 148 - 5¡B Examples for processing program: $1 //the first group G92 X50.0 Z160.0 S10000¡F//set origin¡Athe highest speed 10000 rpm T01¡F //use the No.1 knife G96 S130 M03¡F //face speed130m/min, main axis rotates p...

x