20J3XB - Programming - EN M80 VER00
20J3XB - Programming - EN M80 VER00
2017/8/18
Introduction
This manual covers only programming commands and skills ranging from the basis to combination
(secondary) or backside cutting, and is intended as a guide for the full use of the 20J3XB Series.
This manual consists of a Programming Basics section for creating programs and an Application
Skills section for efficiently creating a machining program. The programming basics section covers
basic command functions and operation functions, as well as other fundamental information on
creating a program. The application skills section uses examples to explain the various functions
for creating a program. Be sure to read this manual, as well as the NN-20J3XB Instruction Manual.
[NOTE]
This manual may not be copied, photocopied, reproduced, translated, or converted to any form, in
whole or in part, without the prior written permission of Nomura Automatic Lathe Co., Ltd.
The contents of this manual are subject to change without prior notice.
Table of Contents
Chapter 1 Specifications for 20J3XB Series Machine (Main $1 Tool post) (TYPE-B)
Chapter 1-1 Main Cross $1 tool post (Type-B)
Chapter 1-1-1 $1 Main Spindle Cross Tool post (Type A-C)
Chapter 1-2 Rear side Sub $2 tool post
Chapter 1-2-1 Rear side Sub $2 tool post (Type B-C)
Chapter 2 Structure and specifications for the $1, $2 tool posts
Chapter 3 Controllable axes
Chapter 4 Alphabetic Codes
Chapter 4-1 S code and main spindle load detection function (M code)
Chapter 4-2 Main spindle load detection function <M71, M72, M74>
Chapter 5 Tool Post $1 Main (Type-B)
Chapter 5-1 $2 Sub Tool Post (Type-A)
Chapter 5-2 Selection of specified tools with M-codes
Chapter 6 G code
Chapter 6-1 M code ($1 $2)
Chapter 7 Absolute incremental value and radius/diameter command
Chapter 7-1 Radius of Axes / Diameter command
Chapter 8 Rapid-traverse Positioning<G00>
Chapter 9 Feed rate positioning <G1>
Chapter 9-1 Positioning at the specific feed rate <G1>
Chapter 10 Arc cutting <G2, G3>
Chapter 11 Dwell (Stop time in seconds) <G04>
Chapter 12 Call of the Subprograms <M98>
Chapter 12-1 Calling subprogram <Example 1>
Chapter 12-2 Calling subprogram <Example 2>
Chapter 13 Block skip <M10> “/” , GOTO___ ~> N____
Chapter 14 Composition and setting procedure of Set-up program
Chapter 14-1 Meaning of Data Entry and Common Variables
Chapter 14-2 O8200 Set-up program
Chapter 14-3 Sub program (O9000, O9003, O9004, O9005)
Chapter 15 Using L-TYPE Cutting Bite (M19 Setting)
Chapter 16 G50 Setting coordinate-system
Chapter 17 Constant-Surface-Speed Control <G96, G97>
Chapter 18 Cross drill cycle (sub program call)
Chapter 18-1 Cross drill cycle (Macro program)
Chapter 18-2 O9801 (Macro program)
Chapter 19 Auxiliary programming functions
Chapter 20 Screw thread Using a Bite
Chapter 21 Explanation of Lead angle
Chapter 21-1 Screw thread Canned Cycle Command and Motion
Chapter 21-2 Worm-Thread Tooth
Chapter 21-3 Metric Screw Thread-cutting tool depth of cut (radius)
Chapter 21-4 Screw thread Depth of Cut and Number of Cuts
Chapter 22 Tool Tip R and Offset in Taper Cutting
Chapter 22-1 Nose-Rounding Offset Function
G41 (Nose-Rounding Offset Left-Hand Mode) and G42 (Nose-Rounding
Chapter 22-2
Offset Right-Hand Mode) Command Direction
Chapter 22-3 Nose-rounding offset data-entry procedure
Chapter 22-4 Machining-programming Example
Chapter 23 Cross drill position
Chapter 23-1 Cross drill rotary command
Chapter 24 C-axis command by ENDMILL
Chapter 24-1 C-axis command by ENDMILL Example-1
Chapter 25 Compound-machining arc command (plane selection)
Chapter 26 Backside Machining ($2)
Chapter 27 Main Spindle Synchronous Control
Chapter 28 Control-Axis Synchronous Function (Z1 vs Z2)
Chapter 29 Main $1 / Sub $2 B-axis Move range
Chapter 29-1 Main $1 / Sub $2 B-axis Move range
Practical Examples for Programming
1-1 G92 Normal Screw thread
1-1-1 G92 Normal Screw thread (Example-1)
1-2 G92 Taper Screw thread (Example-2)
1-3 G92 Multi-starting Screw thread (Example-3)
1-4 G92 Left screw thread (Example-4)
1-5 G92 Chamfering function M13 / M14 (Example-5)
2-1 Variable lead screw thread (G34)
2-1-1 Variable lead screw thread G34 (Example-1)
3-1 Screw thread (G76)
3-1-1 G76 Screw thread (Example-1)
4-1 Screw thread (G32)
4-1-1 G32 Screw thread (Example-1)
5-1 Front drill machining (G83)
5-1-1 G83 Drill machining (Example-1)
5-2 Front DRILL machining (G79)
5-2-1 G79 Drill machining (Example-1)
6-1 Front tap machining (G84)
6-1-1 G84 Tap Cutting (Example-1) <Synchronizing R1>
6-1-2 G84 Tap Cutting (Example-2) <Asynchronous type R0>
7-1 Cross C-axis Machining (ENDMILL)
7-2 Cross C-axis Control Machining (TAP)
7-3 Off-center TAP Machining (off-center example-1) (OPTION)
8-1 Cylindrical Interpolation (G7.1)
8-1-1 G07.1 Cylindrical Interpolation (Example-1)
8-1-2 G07.1 Cylindrical Interpolation (Example-2)
8-1-3 G2 Circular Interpolation (Example-3)
8-1-4 G2 Circular Interpolation (Example-4)
8-1-5 G2 Circular Interpolation (Example-5)
9-1 G71 External Rough Turning Cycle
9-1-1 G70, G71 Rough Program Example
Chapter 2 Structure of Sub tool post $2
Chapter 2-1 $2 Sub ENDMILL / TAP machining
Chapter 2-2 $2 Sub Front Off-center / Polar Coordinates Machining
Chapter 2-3 $2 Sub Helical Example
Chapter 2-4 $1 Z1- $2 Z2 Synchronizing Control Example
Chapter 2-5 $1 C1- $2 C2 Synchronizing Control Example
Chapter 2-6 Long shaft Program Example-1
Chapter 2-7 Eject Pin program example-2
Chapter 2-8 B-axis program example-3 (NN-32YB2XB)
Chapter 1 Specifications for 20J3XB Series Machine (Main $1 Tool post)
(TYPE-B)
Y-axis
Specification Specification Option
Tool No.
when 90° is
commanded
At
Tool No.
when 90° is
commanded
Others
The spindle load detection mode prevents seizing of the guide bush, etc. The function
automatically becomes active by turning the machine ON. The function detects the difference
between the command spindle speed and the actual spindle speed, and automatically stops the
motion if the difference exceeds the rated value. The given value of speed load can be modified
manually by "M74B___".
(Format)
Command Chain of Command Function
M71 S1 Main spindle load detection mode ON
M72 Detection mode OFF
$1 Specify spindle allowable-overload speed in the range
M74 B___ from 1% to 100% by B command.
(Set the value of detect error (%) in B___.)
* M71 is in valid status when the power in ON.
(Program example)
$1
0777;
M74 B10; Sets detection error to 10%
G50 Z0.0;
This setting can also be changed during the machining process. Always specify M74 and B__ in
the same process (block). M72 (S1 spindle-speed load detect mode OFF (disable)) disables this
mode.
T13 M113
T14 M114
$1
Side Cross T15 M115 X-Axis Y#613 T1313
T16 M116
T17 M117
T20 M120
$1 T21 M121
Front Drill Tool Y1- / X1- Axis Y#520 X#620 T2020
Post T22 M122
T23 M123
T30 M130
$2
Front Drill Tool T31 M131 X2 / Y2 Y#530 X#630 T3030
Post
T32 M132
T33 M133
$2
Rotary Drill Tool T34 M134 X2 / Y2 Y#533 X#633 T3333
Post
T35 M135
T36 M136
$2
T37 M137 Y2 Y#536 T3636
Side Cross
T38 M138
T39 M139
$2 Bite Y2 Y#539 T3939
T40 M140
Chapter 6 G-code
<Standard G-code>
G-code shown below applies to all machine type.
G-code Function G-code Function
G00 Location set-up G70 Normal cutting cycle
G01 Linear interpolation G71 Rough external diameter
G02 Circular and Helical interpolation CW G72 Facing shape cycle
G03 Circular and Helical interpolation CCW G73 Diameter shape cycle
G04 Dwell (stop time in seconds) G74 Facing cycle
G09 Linear interpolation (Exact stop check) G75 Diameter cutting cycle
G10 Programmable data input G76 Compound screw thread cycle
G17 Plane selection X-Y G80 Fixed drill cycle cancel
G18 Plane selection Z-X G83 Front eccentricity cycle
G19 Plane selection Y-Z G84 Front Tapping cycle
G20 Inch command G84.1 Front Tapping (Left screw) cycle
G21 Matric command G85 Front boring cycle
G28 Return to the reference point G88 Cross Tap cycle
Return to the 2nd, 3rd, 4th, center
G30 G88.1 Cross Tap (Left screw) cycle
point
G32 Constant Lead Screw thread G90 Radius/diameter turning cycle
G34 Variable Lead Screw thread G92 Screw thread cycle
G35 Arc screw thread (CW) G94 Facing turning cycle
G36 Arc screw thread (CCW) G96 Constant-surface speed control ON
G40 Tool-tip R offset cancel G97 Constant-surface speed control OFF
G41 Tool-tip R offset left side G98 Feed rate command (per minute)
G42 Tool-tip R offset right side G99 Feed rate command (per rotation)
Main spindle synchronizing control
G50 Coordination set-up G113
OFF/Polygon Machining mode
Main spindle synchronizing control
Spindle Max. speed set-up G114.1
ON
G65
Polar coordinate interpolation mode
Call user’s macro G12.1
ON
Polar coordinate interpolation mode
G66 Call user’s macro modal G13.1
OFF
Circular interpolation mode ON /
G67 Call user’s macro modal cancel G07.1
OFF
Facing mirror image (left side) Switch to 3-dimensional coordinates
G68 G68.1
(exclusive function for 32YB3) (XB type models)
Facing mirror image (right side) Switch to 3-dimensional coordinates
G69 G69.1
(exclusive function for 32YB3) cancel (XB type models)
* There are total of six G-code Command chains (2, 3, 4, 5, 6, 7) in G-code. Which to choose
depends on the parameter #1037 cmdtyp set-up.
Chapter 6-1 M-code ($1, $2)
$1 M-code
M-code Function Explanation
Stops automatic operation and returns to the beginning
M00 Program reset, rewind of the program.
Stops automatic operation when the Optional Stop
M01 Optional stop (stops after first machining) switch is turned on. Operation can be resumed using
the Cycle Start key.
M02 $1 Reset and stop
Starts the $1 main-spindle rotation. S1 = 300 to 8,000
M03 Main spindle normal rotation (CW) rpm
M04 Main spindle reversed rotation (CCW) Starts the $1 main-spindle reverse rotation.
M19 $1 parts cut-off detector start Starts the parts cut-off detector (Entered as “O9001”).
M25 C-axis control angle OFF Sets and starts the $1 C-axis control angle by G1C □□□□.
S1/S2 spindle phase synchronous arrival Check spindle phase synchronous arrival
M26
check
Advances the $1 4-face-drill unit to the center
M27 4-face-drill unit advance coordinate.
M28 4-face-drill unit retract Retracts the $1 4-face-drill unit
M84 S3 cross drill reversed rotation (CCW) M83S3 = □□□ starts cross-drill reverse rotation.
$2 M-code
M-code Function Explanation
Optional stop (stops after first $2 optional stop effective only with $1 optional stop ($1
M201 priority stop)
machining)
Starts $2 backside-spindle normal rotation
M203 $2 spindle normal rotation (CW) S2 = 300 to 8,000 rpm
Starts $2 backside-spindle reverse rotation. (In case of
M204 $2 spindle reversed rotation (CCW) normal drilling)
M205 $2 spindle stop Stops the $2 backside spindle.
M216 $2 Error detector OFF Rounds corners slightly for $2 backside cutting.
M240 $2 synchronous axis cancel Turns off a controlled axis synchronization command.
Turns on a $2 Z controlled axis synchronization
M242 $2 Z synchronous axis designation command.
M244 C1-C2 synchronizing control ON
M245 $2 chuck air blow ON Starts air blow. (Continuous)
M246 $2 chuck air blow OFF Stops air blow.
M247 $2 parts unloading lot forward
Lesson 1 Content
CODE X-command / U-command
Pattern X___ / U___
Absolute X, Z, Y, C
Format
Incremental U, W, V, H
command
X-axis
Main spindle
Z-axis
e.g.,
NOTE
(1) In the example above, the tools moves from P1 to P2, i.e., towards the negative X-axis.
Therefore, put negative sign (-) in the case of incremental command.
(3) G0 X12+0 is a command for axis that is 12 mm. It does not work with command 12 ㎛.
Chapter 8 Rapid-traverse Positioning <G0>
Lesson 2 Content
CODE G0
Pattern G0 Xx__Zz__
Absolute X, Z, Y, C
Format
Incremental U, W, V, H
Call
Move
Material
Key point
Lesson 3 Content
CODE G1
Pattern G1 X__Z__F__ , I__
Absolute X, Z, Y, C
Format Incremental U, W, V, H
,I In-position width
In-position check
Starts in-position by parameter
check by the ‘, I’
address command
G1 X5.0 Z0.5 F0.05; Machining start G1 U2.0 W1.0 F0.05; Increment machining
G1 Z5.5 F0.05; G1 W5.0 F0.05;
G4 U0.1; G4 U0.1;
G1 X9.0 F0.05; G1 U4.0 F0.05;
G1 X10.0 Z6.0 F0.04; G1 U1.0 W1.0;
G0 X40.0; G0 X40.0;
T0; T0;
Final (Recommended)
Lesson 4 Content
CODE G02, G03
Pattern G1 X__Z__F__ , I__
X/U X-axis end position coordinate
Z/W Z-axis end position coordinate
Format
R arc radius
F Feed rate
Lesson 5 Content
CODE G04
Pattern G04 X/U___ or P___
Dwell time (second)
Next block
Previous block
cutting command
Dwell command
Dwell range
(1) If a cutting command was commanded in the previous block, dwell command starts
calculating the time after the deceleration completed.
(2) Dwell command is valid in single blocks as well.
(3) Dwell command can be canceled when parameter #1173 dwlskp is set beforehand.
If a skip signal was entered during the dwell time, the remaining dwell time is
canceled and starts the process of the next block.
Chapter 12 Call of the Subprograms <M98>
Lesson 6 Content
CODE M98
M98 P___ H___ L___ , D ;
Pattern
Or M98 <File name> H___ L___ , D___;
M98 Subprogram call command
Program no. within a subprogram.
P___
(If omitted, returns to the main program)
File name
Set a program with a name instead of program no.
<File name> In this case, input the file name with <, >.
(예) M98 <ABCD-11.RAF>
Sequence no. of a subprogram
H___
(Max. 5 digit)
Format
Repeated frequency of the subprogram
(If omitted, the machine regards it as L1.
No operation in L0.)
L___
E.g., M98 P1 L3; is equal to
M98 P1;
M98 P1;
Device no. of Subprogram. (0 ~ 4)
, D___ If ‘,D’ is omitted, the machine regards it as a memory
subprogram within the device.
Execution sequene: ① ② ③ ③’ ②’ ①’
[NOTE] The main- and sub-programs can be switched in accordance to the execution
sequence. Therefore, when sub-programs are executed, write programs with a careful
attention to the status of modal data.
M98 H___ ; M99 P___ ; are sequence no. in a program with a call command.
In case of M98 H___ ; In case of M99 P___ ;
If executed, If executed,
(1) M98 H3; ~~> (skip machining) ~~> , (1) M98 P123; call subprogram 0123
(2) starts machining from N3 to M99 ~~> , (2) executes until M99 P200 ~~> ,
(3) M98 H3; executes from the block below~~> (3) moves and execute the main program
Finish N200 ~> Finish
NOTE
(1) If a specified command P (program no.) does not appear, error code (P232) is shown.
(2) M98 P__ ; M99 ; blocks do not stop single blocks.
It can only stop single blocks when address except O, N, P, L, H exists.
(3) The sequence sets back to the beginning if M99 is commanded in the main
programming (same in MDI).
(4) Sequence numbering by M99 P__; command takes a long time for searching.
(5) If file name is used in the sub programs, assign a file name within 32 characters
including the extension. An error (P232) occurs if over 32 characters are typed.
(6) All programs are registered as files. For example, if a file 『O100』 is called as a sub
program, it cannot be found in M98 P100; or in M98 P0100;.
If a numerical value is commanded after P, the machine ignores the command, reading
it as ‘0.’ The machine regards the command as if a program number (file) 『100』 is
designated. Therefore, if a program such as 『0100』 should be called, assign a file
name with using M98<0100> format.
Chapter 13 Block skip <M10> “/” , GOTO___ ~> N____
When M10 (Block Skip ON: lamp on the upper-right-hand side of the operation panel is turned
on) is specified, blocks starting with the "/" code (/N3M98H9004) are ignored and skipped.
O1234 O1234
T100; T100;
G0 X20.0; M33 G0 X20.0; M33
/M33; Coolant ON is ignored /M33; Coolant ON executed
G0 X40.0; G0 X40.0;
T0; T0;
Meaning Content
Cutting speed (surface speed at workpiece OD turning) (See “Cutting
A
Speed <A>.”) For values of 300 or more, specify them directly.
Workpiece dia. (workpiece OD to be machined (square bar: width across
B
flats x 1.4, hex. bar: width across flats x 1.15))
C Total length of the finished work shown in the drawing.
D Cut-off Bite number (number x 100, 500 for T5)
E Cut-off Bite width (acceptable if not exactly correct)
F Tip angle of cut-off Bite (specify angle of 15º, 20º, etc.)
Normally, enter “0.” If the back face is to be chamfered using a cut-off
H
Bite, specify the chamfering size (C0.5, etc.).
Enter “0” or “1” for one-piece machining per chucking. (For 2-pieces
I
machining per chucking, enter “2.”)
Sub program for Machining release Cut-off tool breakage detect function
N9001; (O9001) N9019; (O9019)
M5; G0 W-0.5;
M17; (Chuck open) X60.0;
G0 T0; M19 (W-α) ; Adjust when L-Type cutting
M99; G4 U0.5;
G0 Z0;
M99;
Chapter 14-3 Sub program (O9000, O9003, O9004, O9005)
When using a single-tool feeder
N9000; (O9000) Workpiece loading N9003; (O9003) Workpiece unloading
M28; Front tool post retreat G50 Z0.0;
G0 W95.0 M18; Chuck close
G99 M18; Chuck close M19 (W-α); Cutting detector
G50 Z0.0; M3 S1=#101;
G0 Z-2.0; G0 X#102 Z-0.5;
M3 S1=#101; Z#105;
G28 U0.0; G1 X#106 F#104;
G28 V0.0; G0 Z-0.5 M5;
G50 X60.0 Y152.0; X0.0;
Y#505 T505; M17; Chuck open
G0 X#102 Z3.0; G98;
G1 X-#103 F#104; G1 Z-95.0(Z-125.0)F2000;
M17; Chuck open G99;
G0T00; M34; Coolant OFF
G0 Z0.0 M10; Option Block skip ON M0
M99; M99;
<Command>
When using L-TYPE, retreat detector pin as much as ‘W-,’ in order to avoid interference on the
detector.
In M19 set-up program, M19 M19 W-10.0 (–0.5 clearance) = M19 W-10.5;
Machining process
When selecting a tool, in order to set 0.0 mm radius value for X-axis at 2.0mm and Z-axis at 4.0
mm…
G1 X0.0 F0.1;
G1 X-6.0 F0.1;
G1 Z2.0 F0.03;
G1 X-5.8 F0.1;
G0 Z-2.0;
Lesson 7 Content
CODE G96
Pattern G96 S___ P___
S Main speed
Format P Constant-surface-speed controllable axis
G97 Constant-surface-speed control cancel
Details
(2) If parameter shown above is not ‘0,’ a constant-surface-speed axis can be set by address P.
By using parameter (#1146 Sclamp, #1227 aux11/bit5), select one of the modes (Constant-
surface-speed mode On / OFF) in order to specify when the rotation-speed clamp is used.
Setting Main spindle clamp speed G50 Code
Lesson 8 Content
CODE G50
Pattern G50 S___Q___
S Max. clamp rotary speed
Format
Q Min. clamp rotary speed
By using parameter (#1146 Sclamp, #1227 aux11/bit5), select one of the modes (Constant-
surface-speed mode ON / OFF) in order to specify when the rotation-speed clamp is used.
The speed of spindle can be vary by the movement of X-axis. However, the G50 function controls
the main spindle speed in order to maintain the spindle at a constant speed.
Example-1
Example-2
G0 Y#505 T505;
G50 S4000;
G96 S80;
G0 X#102 Z#145;
G1 X-0.4 F0.04
X-#103 F0.04
G97;
M21; Amount of counting
M99;
G50 S__Q__ is valid only when Constant-surface-speed control is ON. When Constant-
surface-speed control is ON, shift commands to the main spindle can be ordered.
Chapter 18 Cross drill cycle (sub program call)
Lesson 9 Content
CODE G65 P9079
Pattern G65 P9079 V___R___I___J___K___A___Q___F___
G65 Sub program call
P Macro program No.
V (#22) Drill depth (diameter increment)
R (#18) Reaching distance (radius increment)
I (#4) Depth of the first hole (radius increment)
Format
J (#5) Retreat dwell
K (#6) Depth of the second
A (#1) Approach safety distance
Q (#7) Dwelling time at the bottom
F (#9) Feed rate
Internal variables
#140 Add Drill depth
#141 Drill depth
#142 Add Approach distance
#143 1=end
Program example
G65 P9079 V30.0 R0.5 I10.0 J0.2 K2.0 A0.5 F150 Q0.2;
[Interpretation]
Call sub program 9079
Total depth 30.0mm / Reach distance 0.5mm / Depth of the first hole 10.0mm
/ Retreat dwell 0.2
From the second drill depth = 2.0mm / Approach safety distance 0.5mm / Cutting
speed 150 / Dwelling time at the bottom 0.2
Chapter 18-1 Cross drill cycle (Macro program)
O9079
$1
(CROSS-DRILL-CYCLE-VER1.0)
#143=0;
(1ST-STEP)
N10;
#140=#4 × 2;
#141=[#4-#1] × 2;
#142=[#18+#1] × 2;
M98H40;
M98H50;
IF[#143NE1]GOTO20;
M99;
(2ND-STEP)
N20;
#140=#140+#6 × 2;
#141=#6 × 2;
#142=#142+[#4-#1] × 2;
M98H40;
M98H50;
IF[#143NE1]GOTO30;
M99;
(3RD-STEP)
N30;
#140=#140+#6 × 2;
#141=#6 × 2;
#142=#142+#6 × 2;
M98H40;
M98H50;
IF[#143NE1]GOTO30;
M99;
5-20;
UB8 series
(DEPTH)
N40;
IF[#140LT#22]GOTO39
#141=#22-[#140-#141];
#143=1;
N39M99;
(PROGRAM)
N50;
G98G0V-[#142-#1 × 2];
G1V-[#141+#1 × 2]F#9;
G4X#17;
G0V#142+#141;
G4X#5;
M99;
Chapter 18-2 O9801 (Macro program)
$1
(O9801)
#149=#1 #149=#149/1000
IF[300.0LE#1]GOTO1 #149=2*[#149+0.2]
#149=#1/#2*318 #149=[#2-#149]*100
#149=ROUND[#149/10] #149=ROUND[#149]
#149=#149*10 N6#106=#149*10/1000
IF[#149LE8000]GOTO1 N8#108=#102+4.0
#149=8000 #109=#5
N1#101=#149 IF[#4LE1]GOTO9
N2#102=#2+0.4 #147=#4
IF[#9LE1]GOTO3 #144=#4*[#8+#3+#6]
#149=TAN[#9] GOTO10
#149=#8*#149*100 N9#147=1
#149=ROUND[#149] #144=#8+#3+#6
#149=#149/100 N10#145=#8+#3+#6
#149=2*[#149+0.2] #146=#145-[#11+0.2]
#103=#149 #110=#7
GOTO10 M1
N3#103=0.4 M99
N10IF[300.0GE#1]GOTO4
#149=#1*#2*3.14 $2
#1=ROUND[#149/1000] #148=#1
N4#149=#1*20/10000*[#2/12] IF[300.0LE#1]GOTO1
#149=#149*1000 #148=#1/[#2*3.14]*1000
#149=ROUND[#149] #148=ROUND[#148]
#104=#149/10000 #148=#148/10
IF[#104LE0.005]GOTO11 #148=ROUND[#148]
IF[#104GT0.025]GOTO12 #148=#148*10
GOTO5 IF[#148LE6000]GOTO1
N11#104=0.005 #148=6000
GOTO5 N1#101=#148
N12#104=0.025 #109=#5
N5#105=#8-0.5 M99
#149=TAN[#9] %
#149=#149*0.6*1000
#149=ROUND[#149]
Lesson 10 Content
CODE ,C / A / ,R
G01 X___A___F___;
Pattern G1 X___ , C___F___E___
G1 X___Z___ , R___F___E___;
A Angle
Format ,C 면취 크기
,R Size of R
Program example
Using A coordination
For screw thread using a turning bite, the bite tip must be ground so as to have a relief angle
greater than the lead angle.
For external screw threads the lead angle is calculated using the minor diameter (root diameter),
while for internal screw threads the lead angle is calculated using the inner diameter.
Refer to the above figure to determine the screw thread zero return.
X 축 (Radial direction) : Sets the thread OD + approx. 2.0mm
Z 축 (Longitudinal direction) : Sets the position for approach distance “a” (thread pitch x 2 or more)
[mm]
Brass (BSBM)
P (pitch) 0.3 0.5 0.7 0.8 1.0 1.25 1.5 2.0
Depth of cut (thread height) 0.20 0.33 0.46 0.53 0.66 0.82 0.99 1.32
[mm]
Free-cutting steel (SUM)
P (pitch) 0.3 0.5 0.7 0.8 1.0 1.25 1.5 2.0
Depth of cut (thread height) 0.20 0.33 0.46 0.53 0.66 0.82 0.99 1.32
[NOTE] The depth of cut [mm] is the radius value. Specify it as a double value (diameter
command)
Chapter 22 Tool Tip R and Offset in Taper Cutting
[NOTE] When a taper is cut by a tool with a tool tip R (throw-away tip), refer to the above table to
determine the command positions.
Chapter 22-1 Nose-Rounding Offset Function
When a tool with a round nose is used to perform cutting, the taper and arc shapes vary
depending on the shape of the nose. Consequently, the error can be calculated and offset
performed using the nose-rounding offset function.
When using the nose-rounding offset function, enter the nose-rounding offset command address
and the shape of the round-nose point in the CRT-screen nose R/P data.
G code Function
G40 Nose-rounding offset cancel (OFF)
G41 Nose-rounding offset left-hand mode (ON)
G42 Nose-rounding offset right-hand mode (ON)
4) Move the cursor to the "Nose R" field by pressing the [cursor] key.
5) Use the key to set the cursor to the tool No. to be offset.
6) Enter the offset value by using the numeric keypad. Then, press the key
7) Move the cursor to the "Point " field by pressing the key.
8) Enter the value for the shape of the nose "Point" by using the numeric keypad.
X#108; X#108;
When using two or more offset numbers with one bite, lower the axis to the zero return, specify
the G40 nose-rounding offset OFF command, and program tool selection (offset selection) again
Program example
G0 Z-0.6;
G0 X#108 (GO X60.0);
G0 Y#503 T303;
G41; Nose-rounding offset mode ON
G0 X3.2;
G1 X4.0 Z-0.2 F0.04; Machining starts
Z13.0 F0.05
(Example-1)
Cutter ∅30.0 equals to radius 15.0mm. Thus, Z15.0 = 0.0 (starting point).
(Example-2)
Chapter 23-1 Cross drill rotary command
$1 (MAIN) / $2 (SUB)
Max. speed of $1, $2 cross drill spindle (S3), (S4) is 6,000rpm.
<Command format>
M83 S3=3000;
RPM command
$1 M84 S3=3000;
M85 Spindle stop
M283 S4=2000
RPM command
$2 M284 S4=1000
M285 Spindle stop
M5;
G0 X#615 T1515;
Feed rate(per minute) / C-
G98 M24;
axis control ON
G28 C0.0; C-axis zero return setting
G50 C0.0; C-axis zero return setting
M83 S3=3000; Cross drill
G1 X____F____; 1st machining
↓
G0 C45.0 (H45.0); 45º rotation (H: increment)
G1 X____ F____; 2nd machining
↓
G0 X60.0 M85; Cross drill stop
G99 M25; C-axis control OFF
* In G99
If Rotary command 2500rpm / Feed rate F0.05,
G98 equals to
F = Tool speed × Feed rate = 2,500×0.05=125
G0 X60.0;
G0 X#613 T1313; Selects the tool for ENDMILL
G98 M24; C-axis control ON
G28 C0; C-axis zero return setting
G50 C0; Specifies the C-axis zero return
G0 Z5.0 M83 S3=1500; Specifies the Z-axis position as 5.0mm / normal rotation
G99 M25 M85; Feed rate per rotation / C-axis control OFF / Cross rotation stop
G0T0; Offset command CANCEL
Chapter 24-1 C-axis command by ENDMILL Example-1
Program example-1
G0 X#615 T1515;
G98 M24;
G28 C0;
G50 C0;
G0 Z22.0 M83 S3=1000; Specifies Z-axis (3+6+4=13.0)
G0 V18.0;
X8.0;
M98 P____; Call sub program ①
G0 Z13.0;
G0 C90.0; Move C-axis to the angle of 90.0°
G0 X8.0
M98 P____; Call sub program ②
G0 Z13.0;
G0 C90.0;
G0 X8.0
M98 P____; Call sub program ③
G0 Z13.0;
G0 C90.0;
G0 X8.0
M98 P____; Call sub program ④
G0 X60.0;
G99 M25 M85;
G0T0;
Sub program
O____ (ENDMILL sub program)
G1 V-28.0 F100; Move Y-axis (9+5=14mm)
V10.0 F300; Move Y-axis up to 5.0mm from the tool-middle
Move Z-axis to the 7.0mm position (15.0mm) milling
W7.0 F100;
machining
V-10.0 F100; Move Y-axis to the 5.0mm position
V10.0 F300 Move Y-axis to the 5.0mm up from the tool-middle
G0 X30.0; Move X-axis to the safe position
V10.0; Move Y-axis to the 5.0mm position
M99;
Chapter 25 Compound-machining arc command (plane selection)
G code domain (G17, G18, G19)
Command format
G17 X-axis-Y-axis plane selection
G18 X-axis-Z-axis plane selection (Initial setting
G19 Y-axis-Z-axis plane selection
For ordinary turning (with the power turned on), G18 (X-axis, Z-axis, plane selection) is set.
Example)
When performing arc interpolation (R cutting) on a plane with an end mill, specify G19: (Y-Z plane)
selection in the process (block) before arc interpolation (G02, G03).
[NOTE] To return to ordinary turning, always specify G18 (X-Z plane) selection
Chapter 26 Backside Machining ($2)
Below are the standard machining program of the Main ($1) and the Sub machining program ($2)
$1 $2
O0001; (SMAPLE) O0002 ( SUB )
$1; $2
G50 Z0; G28 W0; Return to Z-axis zero position
G0 Z-1.0; G28 U0; Return to X-axis zero position
X90.0; G28 V0; Return to Y-axis zero position
G0 Y#520 X#620 T2020; Call front tool post G50 X368.0 Y0.0 Z0.0; Coordinate-system setting
M3 S1=□□□□;
G0 Z10.0; G0 Y#531 X#631 T3131; Call front drill post
G1 W□□□ F□□□; M204 S2=□□□□;
G4 U0.2; G0 Z□□□;
G0 Z0.0; G1 W□□□ F□□□;
G4 U0.2;
G0 Y#521 X#621 T2121; G0 Z0.0;
G0 Z10.0;
G1 W□□□ F□□□; G0 Y#532 X#632 T3232;
G4 U0.2; M204 S2=□□□□;
G0 Z0.0; G0 Z□□□;
G1 W□□□ F□□□;
G0 Y#522 X#622 T2222; G4 U0.2;
G0 Z10.0; G0 Z0.0;
G1 W□□□ F□□□;
G4 U0.2; G0 Y#530 X#630 T3030
G0 Z0.0; M204 S2=□□□□;
G0 Z□□□;
G0 Y#523 X#623 T2323; G1 W□□□ F□□□;
G0 Z10.0; M203;
G1 W□□□ F□□□; G1 W-□□ F□□;
G4 U0.2; G0 Z0 M205;
G0 Z0.0;
G0 Y#539 T3939 M204 Call bite tool
G0 Y#50□ T□□□ Call turning bite post S2=□□□;
M3 S1=□□□□; G0 X□□□;
G0 X□□□ Z□□□; Z□□□;
↓ G1 X□□ W□□ F□□;
G0 X#108; Z□□□ F□□□;
G0 Y#50□ T□□□; ↓
↓ G0 Y#540 T4040 M204
G0 X60.0; S2=□□□;
↓ G0 X□□□;
G98 M24; ↓
G28 C0; G0 Z0.0 M205;
G50 C0;
G0 C0.0; G98 M224; C-axis control ON
G0 X#6□□ T□□□; Call cross tool post G28 C0;
G0 Z□□ M83 S3=□□; G50 C0;
G0 U-□□; G0 C0.0;
↓ G0 X90.0;
G0 X60.0; GO Y#536 T3636; Call Cross
G99 M283 S4=□□□;
M25 M85; G0 Z□□□
G0T0; G1 X□□□ F□□□;
C-axis control OFF /
G99 M225 M285;
Rotary stop
G0 X60.0;
GO Y#50□ T□□□ M3 Call bite post ↓
S1=□□□; T000;
↓ G28 U0 V0;
G0 X#108; G4 U0.2;
M222;
G4 U0.5;
M217;
G4 U0.5;
M236;
G4 U0.5;
M237;
M223;
G4 U0.5;
(M65)
G99;
GO Y#505 T505 M3 Call cutting bite
S1=□□□□;
X#102 Z#145;
Use "!L" (exclamation point and uppercase letter L) in order to synchronize $1 and $2 systems.
Chapter 27 Main Spindle Synchronous Control
The speeds of the $1 spindle (main spindle) and $2 spindle (backside spindle) can be completely
synchronized with each other. The speed of the $2 backside spindle is completely synchronized
with that of the $1 spindle, which is assumed as the standard spindle. Enter the spindle
synchronous-control ON command in the $2 backside-machining program.
Command format
<Main spindle ON>
G114.1 H1 D2 ($2-spindle normal rotation: M203)
G114.1 H1 D-2 ($2-spindle reverse rotation: M204)
G113 Main spindle OFF
The speed of the standard spindle ($1 main spindle) can be changed even when spindle
synchronous control is ON. The standard spindle can also be rotated under constant surface
speed control (optional).
Program example
$1 Main $2 Sub
↓ !L1;
G0 Y#503 T303; G114.1 H1 D2; Rotary synchronizing ON
↓ G0 Z□□ M2;03 M237;
G0 X#102; G1 Z□□ F0.3; Move to pick-up position
Z21.5; M218; Chuck close
!L1; G4 U0.2;
Z1, Z2 synchronizing
!L2; Sub chucking complete M242;
control ON
↓ Machining Z-axis !L2;
G1 Z22.0 F0.03; !L3;
Z1, Z2 synchronizing
G0 X#108 M240;
control OFF
!L3; M217; Chuck open
!L4; G4 U0.2;
!L4;
Chapter 29 Main $1 / Sub $2 B-axis Move range
Main $1
B-axis angle Tool no. Call
T10 G0 Y#510 T1010
T11 G0 Y#511 T1111
0°~ 135°
T12 G0 Y#512 T1212
(90° excluded)
T13 G0 Y#513 T1313
T14 G0 Y#514 T1414
Sub $2
B-axis angle Tool no. Call
T43 G0 Y#543 T4343
0°~ 89° T44 G0 Y#544 T4444
(90° excluded) T45 G0 Y#545 T4545
T46 G0 Y#546 T4646
Lesson 1 Content
CODE G92
Pattern G92 X(U)____ Z(W)___F___Q___R___
X(U) Coordination of the end position of thread
Z(W) Coordination of the end position of thread
F Screw thread PITCH
Screw thread start angle command
Format
Q Multi-Start screw thread command (2nd start, 4th start..)
Shift command except the 1st start
(Q0.0/Q90.0/Q180.0/Q270.0)
Starting / end position (radius value) command
R in Taper cutting
R- (Increase), R+ (decrease)
In single block, screw thread stops at the end of the each 1, 3, 4 block end.
(R) Rapid-Traverse (F) Screw thread (E) Coordination of the End point
1-1-1 G92 Normal Screw thread (Example-1)
Example program
N1. G99; Feed rate per rotation
N2. G0Y#504T0404M3S1=1000; Select T4 (screw thread tool)
N3. G0X#102Z-2.0; Workpiece diameter +0.4 rapid traverse
N4. X5.0; Move thread to the starting point X
N5. G92X4.9Z10.0F0.8; Screw thread start
N6. X4.8;
N7.
N8.
N9. X3.86;
N10. G0Z-3.0; Z relief groove to -3.0mm
N11. G0X60.0; Rapid traverse to X60.0mm
N12. T00; Offset cancel
N13.
N14.
N15.
Taper screw thread
In single block, screw thread stops at the end of the each 1, 3, 4 block end.
(R) Rapid-Traverse (F) Screw thread (E) Coordination of the End point
◎ The shape differs in accordance to the ‘u,’ ‘w,’ and ‘r’ marks.
1-2 G92 Taper Screw thread (Example-2)
Example program
N1. G99; Feed rate per rotation
N2. G0 Y#504 T0404 M3 S1=1000; Select T4 (Screw thread tool)
N3. G0 X#102 Z-2.0; Workpiece diameter +0.4 rapid traverse
N4. X11.5; Move thread to the starting point X
N5. G92 X9.728 Z10.0 R-0.375 F0.9071; G92 X9.728 : X-axis end position
R-0.375 : height difference of Taper
N6. X9.5;
(radius value)
N7. ◇ Starting point :
N8. 9.728 - ( 0.375 * 2 ) Automatic calculation
N9. X8.636; Final depth of cut on X-axis
N10. G0 Z-3.0;
N11. G0 X60.0;
N12. T00; Offset cancel
N13.
N14. <NOTE> Shape decreases as process with
N15. R+ (Internal diameter)
1-3 G92 Multi-starting Screw thread (Example-3)
Example program
N1. G99; Content
N2. GO Y#504 T0404 M3 S1=1000; Call T400
N3. G0 X#102+1.0 Z-2.5; X#102 (workpiece+0.4) + position at 1.0
N4. X12.0; Screw thread starting position
Start machining at Q0.0 : 0° F(lead) = pitch *
N5. G92 X9.9 Z15.0 Q0.0 F5.0;
number of starts
N6. X9.6; ex) F = 1.25 * 2 = 5.0
N7. X9.3; ◇ In 4-starting machining:
Total of 4 machining is processed from N4 ~
N8. X9.0;
N15
N9. X8.8; 1st Q0.0
N10. X8.6; 2nd Q90.0
N11. X8.45; 3rd Q180.0
N12. X8.3; 4th Q270.0
N13. X8.275; Adjust only Q value
N14. X8.275;
N15. G0 X60.0; (1 time Q value)
1-4 G92 Left screw thread (Example-4)
Example program
N1. G99; Content
N2. GO Y#504 T0404 M4 S1=1000; Call T400 / reversed rotation
N3. G0 X#102+1.0 Z-2.0; X#102 (workpiece+0.4) + position at 1.0
Offset zero position for screw thread (refer to the
N4. G50 W-10.5 Y24.0;
drawing above) coordinate-system setting
N5. G1 Y0.0 F0.2; Y0.0 positioning command
N6. G1 X5.0 F0.2; Screw thread starting position (X-axis)
N7. G92 X4.9 Z10.0 F0.8; Screw thread start
N8.
N9.
N10. X3.86; End position of thread
N11. G0 Z-3.0;
N12. X30.0;
N13. Y24.0; Move Y-axis to zero position
N14. G50 W10.5 Y#504; G50 coordinate-system setting cancel
N15. G0 X60.0;
<POINT>
[Opposite direction of rotation command / Opposite direction of tools / G50 Coordinate-system setting]
1-5 G92 Chamfering function M13 / M14 (Example-5)
Example program
N1. G99; Feed rate per rotation
N2. GO Y#504 T0404 M4 S1=1000; Call T400
N3. G0 X#102+1.0 Z-2.0; X#102 (workpiece+0.4) + position at 1.0
N4. X12.0 M13; Screw thread start / M13 chamfer function ON
N5. G92 X9.9 Z10.0 F1.5 ; Screw thread start
N6. X9.6;
N7. X9.3;
N8.
N9.
N10. X7.95; End position of thread
N11. G0 X60.0;
N12. M14; M14 Setup (Standard)
N13. T00; <User Parameter>
N14. No. #8014 chamfering distance setting ____
N15. No. #8015 chamfering angle setting ____
(1) About Chambering
(1) If the measurement of the depth of cut value is greater than the length of, an error (P192)
occurs before machining starts.
When processing chamfering in a screw thread cycle, and when a motion is exceeded the
height of the starting position without an end, the machine follows the initial parameter
setting.
<#1270 ext06/bit4-0>
An error (P192) occurs before screw thread start.
<#1270 ext06/bit4-1>
Program error (P192). At the moment when reached to the starting position (‘A’ in the drawing)
without processing a machining above the starting position of a cycle the machine ends the
current screw thread block and moves at the rapid traverse to the end position (‘B’ in the
drawing)
Rapid-traverse
Chambering Starting point Screw thread
(2) If feed hold is applied during a screw thread cycle, the motion automatically stops until screw
thread is not in processing motion and after a screw thread command is executed.
When screw thread, the motion stops at the next complete position (complete position of the
3rd).
(3) Valid / Invalid setting of Dry-run remains the same in screw thread.
2-1 Variable lead screw thread (G34)
Lesson 2 Content
CODE G34
Pattern G34 X(U)____ Z(W)____F(E)____K____
X(U) End coordination of screw thread X
Z(W) End coordination of screw thread Z
F Thread PITCH
Amount of Pitch increase/decrease per rotation of a thread
Format (1) If K is (+) positive, pitch increases.
Amount of travel distance of 1 block
K (n PITCH)=(F+K)+(F+2K)+(F+3K)...(F+nK)
(2) If K= (-) negative, pitch decreases.
Amount of travel distance of 1 block
(n PITCH)=(F-K)+(F-2K)+(F-3K)...(F-nK)
NOTE
: A program error occurs if thread lead is set with a wrong value.
Example program
N1. G99; Feed rate per rotation
N2. GO Y#504 T0404 M3 S1=1000; Call T400
N3. G0 X#102+1.0 Z-3.0; X#102 (workpiece+0.4) + position at 1.0
N4. X12.0; Zero return of a thread
N5. G0 X9.4; Starts screw thread
Total length= 15.0mm / PITCH F1.5 /
N6. G34 Z15.0 F1.5 K0.25;
Amount of increase/decrease= 0.25
N7. G0 X12.0;
N8. G0 Z-3.0;
N9.
N10. G0 X9.0; End position of a thread
N11. G34 Z15.0 F1.5 K0.25; The 2nd screw thread
N12. G0 X12.0;
N13. G0 Z-3.0;
N14. G0 X60.0;
N15. T00;
3-1 Screw thread (G76)
Lesson 3 Content
CODE G76
G76 Pmra Q1____ R____
Pattern
G76 X(U)____ Z(W)____ R____ P____ Q2____ F____
Number of finish cuts. e.g., 02 = 2 times
M Number of cuts (set 0 ~ 99 times) (#8058 G76)
Chamfering amount (set 0 ~ 99 times) (0.1mm/rev) (Modal)
R (#8014 Chamfering amount)
P Able to set 0.0 ~ 9.9 for one pitch
Screw thread angle (set 0 ~ 99°)
(#8059 G76 include)
A
e.g., If m=5.0 / r=1.5 / a=60°,
Format P05 15 60 (G76 P051560)
Increase/decrease amount of lead per thread rotation
Q1 Cut amount per round (radius)
If Q1 is greater than Q2, applies Q1)
Normal cutting allowance amount (radius value of a cutting
amount) R=0.04
R
0.04 Final depth of cut.
Repeated motion by ‘m’ starting from +0.04.
X(U) Length of thread X (end coordination)
Z(W) Length of thread Z (end coordination)
R Height of taper command (radius) in a thread unit
G76
P Height of a screw thread (radius) command
Depth of cut for the 1st round (+) radius command
Q2
X+(P*2)=A–(Q*2) = Auto calculation of the 1st depth of cut
F Thread pitch
e.g.,
Example program
N1. GO Y#504 T0404 M3 S1=1000;
N2. G0 X#102+1.0 Z-2.0;
N3. X8.0;
N4. G76 P011060 Q0.4 R0.02; P01=m / 10=r / 60=a
N5. G76 X4.6 Z10.0 P0.7 Q0.2 F1.0;
N6. G0 Z-3.0;
N7. G0 X60.0;
N8. T00;
N9. ◇ NOTE
N10. : On the 2nd G76,
if R-, external diameter taper machining
N11.
(gradually increases)
N12. if R+, inner diameter taper machining
N13.
N14.
N15.
4-1 Screw thread (G32)
Lesson 4 Content
CODE G32
Pattern G32 X(U)____ Z(W)____F____Q____
X(U) End coordination of Thread X
Z(W) End coordination of Thread Z
Format
F Thread PITCH
Q Shift angle when screw thread starts (0.001 ~ 360.0°)
이동 경로 및 가공 형상
Starting point of Q
1st rotation synchronizing signal
point
4-1-1 G32 Screw thread (Example-1)
Example program
N1. GO Y#504 T0404 M3 S1=1000;
N2. G0 X#102+1.0 Z-4.5;
N3. X13.5 F0.5;
N4. M98 P240001 (1.2); P24 = Frequency / 0001 = Sub program No. (0.05*24)=1.2
N5. M98 P200002 (0.4); P20 = Frequency / 0002 = Sub program No. (0.02*20)=0.4
N6. M98 P100003 (X2.8/0.1); P10 = Frequency / 0003 = Sub program No. (0.01*10)=0.1
N7. G0 X60.0;
N8. T00;
Lesson 5 Content
CODE G83
Pattern G83 Z(W)____ R____Q____P____F____K____
Z(W) End coordination of Thread Z
R Position of R, Cutting starting point (Ignores signals)
Q Amount of depth per round (Ignores signals)
Format
P Dwelling time at the hole bottom (modal)
F Feed rate
K Number of repeated command after a machining (0~9999)
Details
In case with Q command
Processed material
Example program
N1. G0 Y#522 X#622 T2222; Call T22 (CENTER DRILL)
N2. G0 Z-2.0;
N3. G1 Z2.0 F0.03;
N4. G0 Z-2.0;
N5. T00;
N6.
N7. G0 Y#523 X#623 T2323; Call T23 (CENTER DRILL)
N8. G0 Z-2.0;
N9. G83 Z20.0 Q1.0 P0.1 F0.03 K2.0; G83 Drill Cycle Q1.0 = machining 1 mm per cycle
N10. G80; P0.1 = Dwell 0.1 sec.
N11. Z-2.0; K2.0 = Repeats total of 2 cycles
N12. T00;
N13.
N14.
N15.
5-2 Front DRILL machining (G79)
Lesson 6 Content
CODE G79
Pattern G79 Z(W)____ R____I____K____A____Q____J____F____
Z(W) End coordination of thread Z
R Position of R, Cutting starting point (Ignores signals)
I Depth of cut for the 1st round
K Depth of cut after the 2nd round
Format
A Safety distance of the drill after the 2nd round
Q Dwelling time at the hole bottom
J Dwelling time from the return position
F Feed rate
Details
Example program
N1. G0 Y#522 X#622 T2222; Call T22 (CENTER DRILL)
N2. G0 Z-2.0;
N3. G1 Z2.0 F0.03;
N4. G0 Z-2.0;
N5. T00;
N6.
N7. G0 Y#523 X#623 T2323; Call T23 (CENTER DRILL)
N8. G0 Z-2.0;
N9. G79 Z20.0 I3.0 K1.0 A0.5 Q0.2 J0.2 F0.03; G79 drill cycle:
N10. G0 Z-2.0; I3.0 = machining 3.0mm per round
N11. T00; K1.0 = machining 1.0mm per round
N12. M28; A0.5 = Safety distance
N13. Q0.2 = Dwelling time at the hole bottom
N14. J0.2 = Dwelling time from the return position
N15. F0.03 = Feed
6-1 Front tap machining (G84)
Lesson 7 Content
CODE G84
Pattern G84 Z(W)____ F____D____K____S____,R(0/1)
Z(W) End coordination of Thread Z
F PITCH
D Area of using TAP $1 = D1 : $2 = D2
Format K Number of repeated command (Total number of repetition)
S Number of TAP spindle rotation command
, R0 Asynchronous command (when using TAP HOLDER)
, R1 Synchronizing command (rigid TAP mode)
Details
$1 (MAIN) G84.1
Left thread machining
$2 (SUB) G84
[NOTE]
When using Synchronous type (R1) and Asynchronous type (R0),
Example program
N1. G0 Y#521 X#621 T2121; Call T21 (CENTER DRILL)
N2. G0 Z-2.0;
N3. G1 Z2.0 F0.03; Center machining
N4. G0 Z-2.0;
N5. T00;
N6. G0 Y#522 X#622 T2222; Call T22 (CENTER DRILL)
N7. G0 Z-2.0;
N8. G79 Z20.0 I3.0 K1.0 A0.5 Q0.2 J0.2 F0.03; Drill machining (G79)
N9. G0 Z-2.0 ;
N10. T00;
N11. G0 Y#523 X#623 T2323; Call T23 (Tap machining)
N12. G0 Z-2.0;
Total depth 5.0mm, Pitch1.0, 600rpm,
N13. G84 Z5.0 F1.0 D1 K1 S600 R1;
Synchronizing
N14. Z10.0; machining 2 times Process final 10.0mm machining
N15. G80; G84 CANCEL
N16. G0Z-2.0;
N17. T00;
6-2-2 G84 Tap Cutting (Example-2) <Asynchronous type R0>
For tapping and die screw thread, minimize F value 80% ~ 90%, making the tap holder at floating
status.
For the depth of a thread, create a program with considering criteria such as incomplete thread in
tap, gap in the starting position and other concerns.
Example program
N1. G0 Y#521 X#621 T2121; Call T22 (CENTER DRILL)
N2. G0 Z-2.0;
N3. G1 Z2.0 F0.03; Center machining
N4. G0 Z-2.0;
N5. T00;
N6. G0 Y#522 X#622 T2222; Call T23 (CENTER DRILL)
N7. G0 Z-2.0;
N8. G79 Z20.0 I3.0 K1.0 A0.5 Q0.2 J0.2 F0.03; Drill machining (G79)
N9. G0 Z-2.0;
N10. T00;
N11. G0 Y#523 X#623 T2323; Tap machining
N12. G0 Z-2.0;
N13. G1 Z10.0 F0.85; F = (PITCH*0.85) / 1.0*0.85 = 0.85
N14. M4; Main spindle reverse-rotation
N15. G1 Z0.0 F1.0; PITCH 100% (1.0) if F = 1.0 backwards
N16. G0Z-2.0 M3;
N17. M39; Tap breakage detection function (OPTION)
N18. T00;
7-1 Cross C-axis Machining (ENDMILL)
Example program
N1. G0 Y#614 T1414; Call T14 (ENDMILL ∅8.0)
N2. M83 S3=3000; Normal rotation S3=2,000 RPM
N3. G98 M24; Feed rate per minute, C-axis control ON
N4. G28 C0.0; Move to C-axis zero position
N5. G50 Y0.0; Recognize 0.0 on Y-axis
Amount of SHAFT in Z-axis – ENDMILL
N6. G50 [W-15.0+4.0];
radius value 4.0
N7. G0 Z8.0; Move Z-axis to machining position
N8. G1 Y20.2 F500; Position Y-axis at the starting position
N9. G1 X10.0 F500; H width command
N10. G1 Y-20.2 F300; ENDMILL vertical cutting
N11. G0 X20.0;
N12. G0 C180.0 (H180.0); Split of angle 180°
N13. G1 X10.0 F500;
N14. G1 Y20.2 F300; Vertical cutting
N15. G0 X30.0;
N16. G0 Y0.0; Move Y0.0 to the home position
N17. G50 Y#614; Cancel G50 Y0.0
Feed rate per rotation, C-axis control OFF,
N18. G99 M25 M85;
Rotation stop
N19. T00;
7-2 Cross C-axis Control Machining (TAP)
Example program
N1. G0 Y#613 T1313; Cal T13 (Center Drill)
N2. M83 S3=3000; Normal rotation S3=3,000 RPM
N3. G98 M24; Feed rate per minute, C-axis control ON
N4. G28 C0.0; Move C-axis to zero position
N5. G50 Y0.0; Recognize 0.0 on Y-axis
Amount of SHAFT in Z-axis
N6. G50 W-8.0;
– G/B : T13 8.0mm
N7. G0 Z10.0; Move z-axis to the machining position
N8. G1 X17.0 F300;
N9. G1 X25.0 F500;
N10. G0 C180.0; Split of angle 180°
N11. G1 X21.0 F500;
N12. G1 X17.0 F300;
N13. G0 X30.0;
N14. G0 Y0.0; Move Y0.0 to the home position
N15. G50 Y#613; G50 coordinate-system CANCEL
N16. T00;
N17. G0 Y#614 T1414; Call T14 (Drill)
N18. G50 Y0.0;
N19. G1 X21.0 F500;
N20. G87 X0.0 Q1.0 P1000.0 F150; G87 cross Drill cycle
N21. G80;
N22. G0 X25.0;
N23. G0 C0.0;
N24. G1 X21.0 F500;
Q: Depth of cut per round (radius) actual
N25. G87 X-2.0 Q1.0 P1000.0 F150;
machining = 2.0 mm per round
N26. G80; P:1000 = 1 sec. (Dwell)
N27. G0 X30.0;
N28. G0 Y0.0;
N29. G50 Y#614;
N30. T00;
N31. G0 Y#615 T1515; Call T15 (TAP)
N32. M83 S3=500; TAP 500RPM command
N33. G1 X21.0 F500;
N34. G88 X10.0 (U-10.0) F1.0 D3,R1; G88 Cross TAP cycle D3 = CROSS setting
R1 = Synchronizing (rigid)
N35. X0.0 (U-21.0); -----> machining 2 times Final position of X (Absolute command)
N36. G80;
N37. G0 X30.0;
N38. G0 Y0.0;
N39. G50 Y#615;
N40. G99 M25 M85; C-axis control OFF, Cross rotation stop
N41. T00;
7-3 Off-center TAP Machining (off-center example-1) (OPTION)
Example program
N1. G0 X#610 Y#510 T1010; Call T10 (Center Drill)
N2. M83 S3=3000; Normal rotation S3=3,000 RPM
N3. G98 M24; Feed rate, C-axis control ON
N4. G28 C0.0; Move C-axis to zero position
N5. G50 Y0.0; Recognize 0.0 in Y-axis(coordinate-system setup)
N6. G50 X0.0; Recognize 0.0 in X-axis(coordinate-system setup)
N7. G0 Z-2.0;
N8. G1 X5.0 F500; Travel distance of off-center
N9. G1 Z3.0 F100; Machining start
N10. G0 Z-3.0; Backwards Z-axis
N11. G0 X0.0 Y0.0; Move X-, Y-axis to 0.0
Coordinate-system CANCEL (T10 tool
N12. G50 X#610 Y#510;
common variable setup)
N13. T00;
N14.
N15. G0 X#611 Y#511 T1111; Call T11 tool (DRILL)
N16.
Skip
N17.
N18. T00;
N19. G0 X#612 Y#512 T1212; Call T12 (TAP)
N20. M83 S3=500; TAP 500RPM command
N21. G50 Y0.0;
N22. G50 X0.0;
N23. G1 X5.0 F500;
N24. G0 Z-1.0;
N25. G84 Z5.0 D3 F1.0 S500 ,R1; G84 off-center TAP cycle D3 = off-center setup
R1 = Synchronizing
N26. Z10.0 ; -----> machining 2 times (rigid)
N27. G80;
N28. G0 Z-5.0;
N29. G0 X0.0 Y0.0; Move X-, Y-axis to 0.0
Coordinate-system CANCEL (T12 tool
N30. G50 X#612 Y#512;
common variable setup)
N31. G99 M25 M85; C-axis control OFF, Cross rotation stops
N32. T00;
8-1 Cylindrical Interpolation (G7.1)
Function and purpose
G07.1 function unfolds the shape on a cylinder (shape in accordance to the cylindrical
coordinate). If the unfold shape is programmed on the plane coordinate, the command is
converted into a compound motion of linear axis and rotary axis (imaginary C-axis) in
machining process, performing contouring control.
Lesson 8 Content
CODE G07.1
Pattern G07.1 C____
C___ Cylinder radius value (workpiece÷2)
Format
C0 Cylindrical interpolation mode cancel
Normal coordinate-system
< X, Y, Z >
Cylindrical coordinate-
system
< C, Y, Z >
(The axis of rotation is the
parallel axis of the X-axis)
#1029
Cylindrical coordinate-
system < X, C, Z >
(The axis of rotation is the
parallel axis of the X-axis)
#1030
Cylindrical coordinate-
system < X, Y, C >
(The axis of rotation is the
parallel axis of the X-axis)
#1031
Cylindrical coordinate-
system
■ Limitation and cation
(1) The cylinder interpolation mode is canceled when the power is turned on or reset
(2) During cylinder interpolation, if there is an axis that has not returned to the zero position,
a program error (P484) will occur.
(3) When canceling the cylinder interpolation mode, an offset of tool radius must exist.
(4) By canceling the cylinder interpolation mode, it switches to the turning mode and returns
to the plane that was selected before cylinder interpolation.
(5) The program cannot be restarted (program resume) for a block during cylinder
interpolation.
(6) If a cylinder interpolation instruction is given in the mirror image, a program error (P486)
will occur.
(7) Deceleration check is performed at the start and cancel of the cylinder interpolation
mode.
(8) If cylinder interpolation or polar interpolation is specified during the cylinder interpolation
mode, a program error (P481) will occur.
(9) Synchronous (rigid) tap cycle of G84, G88 cannot be used during cylinder interpolation
mode. Only the asynchronous tap is available during Cylinder interpolation mode.
(10) When cylindrical interpolation is applied,
#1037 “3” Modification “7” (Change of G-code system)
#1030 “0” Modification “C” (Change of Cylinder coordinate-system)
8-1-1 G07.1 Cylindrical Interpolation (Example-1)
■ Planar figure-1
wi
Example program
N1. G98;
N2. G0 Y#617 T1717 M83 S3=2500;
N3. G50 W-7.0;
N4. M24;
N5. G28 C0.0;
N6. G0 X20.0;
N7. G1 Z7.5 F1000; ①
N8. G19 C0.0; Plane selection Z-C
N9. G1 X9.4 F200; Depth of cut = X9.2
Cylindrical interpolation mode ON /
N10. G07.1 C4.7; ----> ★
C= workpiece external diameter range
N11. G1 Z22.5 C91.7 F100; ② Machining process
N12. G1 Z7.5; ③
N13. G1 Z15.0 C149.0; ④
N14. G1 Z22.5 C91.7; ⑤
N15. G3 Z22.5 C0.0 R5.0; ⑥
N16. G1 Z7.5 C91.7; ⑦
N17. G2 Z7.5 C0.0 R5.0; ⑧
N18. G1 Z22.5; ⑨
N19. G07.1 C0.0; Cylindrical interpolation mode OFF
N20. G1 U3.0 F1000; Backward (increment)
N21. G18; Plane selection X-Z
N22. G0 X40.0;
N23. G50 W7.0;
N24. G28 U0.0;
N25. G28 V0.0;
N26. M25 M85;
N27. T00;
8-1-2 G07.1 Cylindrical Interpolation (Example-2)
■ Planar figure-1
Example program
N1. G98;
N2. G0 Y#617 T1717 M83 S3=2500;
N3. G50 W-7.0; G50 Z-axis coordinate-system setting
N4. M24;
N5. G28 C0.0;
N6. G0 X20.0;
N7. G1 Z10.35 F1000; (1)
N8. G19 C0.0; Plane selection Z-C
N9. G1 X9.4 F200; Depth of cut= X9.2
Cylindrical interpolation mode ON /
N10. G07.1 C4.7;
C= workpiece external diameter range
N11. G2 Z14.73 C-53.3 R4.66 F100; (2)
N12. G3 Z12.06 C41.27 R4.66 F100; (3)
N13. G2 Z11.2 C30.7 R4.66; (4)
N14. G1 Z10.56 C48.6 F100; (5)
N15. G1 Z7.0 C64.3; (6) Machining start
N16. G1 Z10.64 C-38.6; (7)
N17. G2 Z13.57 C-61.1 R3.64; (8)
N18. G2 Z14.74 C-35.9 R1.44; (9)
N19. G1 Z12.29 C34.2; (10)
N20. G3 Z13.42 C60.2 R1.46; (11)
N21. G1 Z16.42 C60.3; (12)
N22. G3 Z19.39 C37.8 R3.65; (13)
N23. G1 Z22.97 C-65.0; (14)
N24. G1 Z19.42 C-48.6; (15)
N25. G1 Z18.81 C-31.3; (16)
N26. G3 Z17.91 C-41.85 R4.66; (17)
N27. G2 Z15.32 C53.3 R4.66; (18)
N28. G3 Z16.44 C60.3 R4.66; (19)
N29. G2 Z15.28 C35.0 R1.44 F100; (20)
N30. G1 Z17.76 C-35.9; (21)
N31. G3 Z16.59 C-60.1 R1.44; (22)
N32. G1 Z13.58 C-61.6; (23)
N33. G07.1 C0.0; Cylindrical interpolation mode OFF
N34. G1 U3.0 F1000;
N35. G18; Plane selection X-Z
N36. G0 X40.0;
N37. G50 W7.0;
N38. G28 V0.;
N39. M25 M85;
N40. T00;
8-1-3 G2 Circular Interpolation (Example-3)
Example program
N1. G98;
N2. G0 Y#616 T1616 M83 S3=2500; Select T16 center drill
N3. G50 Y0.0 W-8.0;
N4. M24;
N5. G28 C0.0;
N6. G0 X40.0;
N7. G1 Z5.0 F1000;
N8. G1 X20.0 F1000;
N9. G1 X2.7 F200;
N10. G2 Y4.98 Z7.71 R2.5 F100; Circular Interpolation start
N11. G2 Y4.98 Z12.29 R2.5;
N12. G2 Y-4.98 Z12.29 R2.5;
N13. G2 Y-4.98 Z7.71 R2.5;
N14. G2 Y0.0 Z5.0 R2.5;
N15. G1 X22.0 F1000;
N16. G0 X40.0;
N17. G18 G0 Y0.0 ; Plane selection X-Z
Coordinate-system cancel (T16 common variable
N18. G50 Y#616 W8.0 ;
setting)
N19. G28 U0.;
N20. G28 V0.;
8-1-4 G2 Circular Interpolation (Example-4)
Example program
N1. G98;
N2. G0 Y#613 T1313 M83 S3=2500; Select T13 center drill
N3. G50 Y0.0 W-15.0;
N4. M24;
N5. G28 C0.0;
N6. G0 Y13.38 X40.0;
N7. G1 Z-1.0 F1000;
N8. G1 X15.0 F1000;
N9. G17; Plane selection X-Y
N10. G1 X6.78 F200; Depth of cut
N11. G4 U1.0;
N12. M98 H300 L20; M98: Call Sub program , Call H:N program
N13. L: number of repetition
N14. G1 U10.0 F1000;
N15. G0 H180.0;
N16. G4 U0.5;
N17. G1 Z-1.0 F1000;
N18. G1 U10.0 F200;
N19.
N20. M98 H300 L20;
N21. GOTO 400; GOTO integer ~> N integer SKIP(jump) starting point
N22.
N23. N300; N300 Sub block
N24. G17;
N25. G3 Y-13.38 X1.78 R8.75 F500; --> ★ Circular Interpolation
N26. G1 W0.25; W0.25 of increment move
N27. G2 Y13.38 X1.78 R8.75; Circular Interpolation
N28. G1 W0.25; 0.25 of increment move
N29. M99; Program end
N30.
N31. N400; GOTO 400 ~~> N400 end position
N32.
N33. G1 U3.0 F1000;
N34. G18; Plane selection X-Z
N35. G1 X15.0 F2000;
N36. G0 X40.0;
N37. G0 Y0.0;
N38. G50 Y#613 W15.0;
N39. G28 U0.;
N40. G28 V0.;
N41. M25;
N42. M85;
N43. T00;
8-1-5 G2 Circular Interpolation (Example-5)
Example program
N1. G98;
N2. G0 Y#616 T1616 M83 S3=2500; Select T16 Center drill
N3. G50 Y0.0 W-5.0;
N4. M24;
N5. G28 C0.0;
N6. G0 Y20.0 X40.0; Rough start
N7. G1 Z7.5 F1000;
N8. G1 X15.0 F1000;
N9. G1 X2.2 F200;
N10. G1Y-20.0 F100;
N11. X15.0 F1000;
N12. Y20.0 Z12.5 F5000;
N13. X8.0 F200;
N14. Y-20.0 F100;
N15. X15.0 F1000;
N16. Y20.0 Z17.5 F5000;
N17. X2.2F200;
N18. Y-20.F100;
N19. X15.F1000;
N20. Y0.Z7.5F5000; Move to the position for circular machining
N21. G1 X2.0 F200; Depth of cut= X2.0
N22. G2 K5.0 F50; ------> ★ Circular machining (machining for one round)
N23. G1 X15.0 F1000; Backward X-axis
N24. G0 X40.0;
9-1 G71 External Rough Turning Cycle
Lesson 8 Content
CODE G71
G71 Ud___Re___Hh___
Pattern
G71 A___P___Q___U___W___F___S___T___
Ud Depth of cut per round
Re Backward distance
0: No Pocketing
Hh Pocketing
1: Pocketing
Normal cut shape program No. (if omitted, it is the current
running program)
A Design 4- or 8-digit, starting with an O___, depending on
the parameter
Normal cut starting sequence No. (If omitted, it is the head
P
program)
Format Normal cut end sequence No. (If omitted, until the program
ends)
Q *If M99 is programed in front, until M99 (ignores Q
command)
U Rough distance on X-axis (remaining distance)
W Rough distance on Z-axis (remaining distance)
F Cutting speed
,S Main spindle command
,T Tool command
Example program
N1. G99;
N2. G0 Y#503 T0303 M3 S1=3000; Call T300 tools
N3. G0 X#102 Z0.0;
N4. G1 X-1.0 F0.07;
N5. G1 Z-1.0 F0.5;
N6. Rough start
N7. G1 X16.0 Z-1.0 F0.1;
U: depth of cut per round / R: backward distance / H:
N8. G71 U1.0 R1.0 H1; ★
pocket existence check
P10:starting sequence, Q20: end, U0.2:X-axis,
N9. G71 P10 Q20 U0.2 W0.1 F0.05; ★
W0.1:Z-axis
N10. N10; ★ Starting sequence No.
N11. G0 X16.0 Z-1.0;
N12. G1 X2.0 F0.1;
N13. Z0.0;
N14. X4.0 W1.0 F0.05;
N15. Z4.0 F0.08;
N16. G2 X8.0 W2.0 R2.0 F0.05;
N17. G1 Z9.0 F0.08;
N18. X12.0 W2.0;
N19. X14.0;
N20. N20; ★ End sequence No.
N21. G1 X50.0 F0.4;
N22. G70 P10 Q20; ★ P10 Q20 --> N10 ~> N20 Normal machining cycle
N23. G0 X50.0;
N24. T00;
Chapter 2 Structure of Sub tool post $2
Chapter 2-1 $2 Sub ENDMILL / TAP machining
Example program
N1. (CROSS-ENDMILL 6.0) Cross ENDMILL machining
N2. G98; Feed rate per minute
N3. G0 Y#538 T38; Select T38 tool post
N4. M283 S4=2000; Commands a normal rotation to the Sub front rotary-tool
N5. M224; C-axis control ON
N6. G28 C0.0; Return C-axis to zero position
N7. G50 C0.0; C-axis zero position command
N8. G0 C0.0; Check angle 0.0°
N9. G50 Y0.0 W-30.0; Z-axis coordinate-system setting
N10. (from cross section to cross center)
N11. G0 X8.0; Feed rate Depth of cut
N12. G0 Y15.0; (material ∅12.0+ENDMILL 6/2 = 15.0)
N13. Z10.0
N14. G1 Y-15.0 F150; –1- Process ENDMILL machining
N15. G0 H90.0 (C90.0);
N16. G1 Y15.0 F150; –2-
N17. G0 H90.0 (C180.0);
N18. G1 Y-15.0 F150; -3-
N19. G0 H90.0 (C270.0);
N20. G1 Y15.0 F150; -4-
N21. G0 X50.0;
N22. ;
N23. G28 C0.0; Return C-axis to the zero position
N24. G0 Y0.0; Position Y-axis in coordinate-system
Y-axis, Z-axis coordinate-system setting (Recognize
N25. G50 Y#538 W30.0;
reference point)
N26. G28 W0.0; Return Z-axis to the reference position
N27. T00; OFFSET cancel
N28.
N29. N2 (CROSS DRILL); DRILL machining
N30. G0 Y#536 T3636 M283 S4=3000; Call T36 tool
N31. G0 X30.0
N32. G1 X13.0 F5000; First drill machining at C0.0°
N33. G1 X7.0 F150;
N34. G1 U0.4 F1000;
N35. G1 X-12.0 F150;
N36. G4 P100;
N37. G1 X13.0 F1000;
N38. G0 C180.0 Second machining of C180.0°
N39. G1 X-12.0 F150;
N40. G0 X30.0;
N41. G28 U0.;
N42. T00;
N43. N3 (TAP) TAP process
N44. G0 Y#537 T3737 M283 S4=600; Call T37 tool post
N45. G0 X20.0;
N46. G1 X13.0 F1000;
N47. G88 X-13.0 F0.8 D4 ,R1; TAP machining up to X-13.0, PITCH 0.8, D4 cross rotation
N48. G80; Release TAP cycle
N49. G0 X20.0;
N50. G28 U0.0;
N51. G50 W30.0;
N52. G28 W0.0;
N53. M225; Cross rotation stops
N54. T00;
Chapter 2-2 $2 Sub Front Off-center / Polar Coordinates Machining
Example program
N1. (CROSS-ENDMILL 6.0) Cross ENDMILL machining
N2. G98; Feed rate per minute
N3. G0 Y#535 X#635 T3535; Select T35 tool post
N4. M283 S4=3000; Command normal rotation to the Sub front rotary-tool
N5. M224; C-axis control ON
N6. G28 C0.0; Return C-axis to the reference position
N7. G50 X0.0 Y0.0; Change X-, Y-axis coordinate-system setting
N8. G50 W-85.0; Change Z-axis coordinate-system
N9. G0 Z-1.0;
N10. G17; X, Y plane selection (X-Y PLANE)
N11. G1 Z2.0 F100; Helical start
N12. X-2.0;
N13. G1 Z-1.0 F2000;
N14. G0 X8.0 Y0.0;
N15. G1 Z0.0 F100;
N16. G1 W0.5 F100;
N17. G3 X6.98 Y1.0 R0.5 F100;
N18. G2 X3.1 Y6.32 R2.0;
N19. G3 X1.22 Y7.0 R0.5;
N20. G2 X-1.6 Y5.0 R1.5;
N21. G1 X-5.66;
N22. G3 X-6.66 Y4.0 R0.5;
N23. G1 Y-4.0;
N24. G3 X-5.66 Y-5.0 R0.5;
N25. G1 X-1.6;
N26. G2 X1.22 Y-7.0 R1.5;
N27. G3 X3.1 Y-6.32 R0.5;
N28. G2 X6.98 Y-1.0 R2.0;
N29. G3 Y1.0 R0.5;
N30. G1 Z-2.0 F1000;
N31. G18; Plane selection (X-Z)
N32. G0 X0.0;
N33. G50 Y#535 X#635; T35 common variable coordinate-system setting
N34. G28 W0.0;
N35. M285 Cross rotation stop
N36. M225 C-axis angle control OFF
N37. T00
Chapter 2-4 $1 Z1 – $2 Z2 Synchronizing Control Example
Example program
N1. $1; $2
N2. ↓ ↓
N3. T00; T00;
N4. !L101; !L101;
N5. !L102; G98;
N6. M218; Sub chuck close M217; Sub chuck open
N7. G4 U0.1; G114. H1 D2 R0; Rotary synchronization
M242; Z1-Z2 Synchronizing
N8. G98 G0 Z180.0; Move Z2 to close distance
control ON
N9. G1 Z250.0 F5000; Move to pick-up location
Check S1/S2 Spindle phase
N10. G0 Y#504 T0404 M3 S1=3000; M26;
synchronous
N11. G0 X#102 Z20.0; !L102;
N12. G1 X14.0 F0.05; !L103;
N13. G3 Z80.0 R92.5 F0.05; ↓
N14. G0 X50.0;
N15. T00
N16. M5
M240; Z1-Z2 Synchronizing
N17.
control OFF
N18. !L103;
N19. ↓
N20.
N21.
Chapter 2-5 $1 C1 – $2 C2 Synchronizing Control Example
Example program
N1. $1; $2
N2. ↓ !L105;
N3. M5; G113; Release G114.1 synchronization
N4. !L105; M217; Sub chuck open
N5. !L106; G98 M224; C2 angle control ON
N6. G98 M24; G28C0.0;
N7. G28 C0.0; G50 C0.0;
N8. G50 C0.0; !L106;
N9. M218; !L107;
M244; C2-axis synchronizing
N10. T00;
based on C1
M242; Z1-Z2 Synchronizing
N11.
control ON
N12. G0 X#616 T1616 M83 S3=1500;
N13. G50 W-8.0;
N14. G1 Z77.0 F5000;
ENDMILL machining
N15. T00;
N16. ↓
N17. G99 M85;
N18. M217; In the ‘Waiting code’, $2 command can use $1 command
N19. M225 M244 automatically releases if C-axis is released
N20. M25
N21. M240; Z1-Z2 Synchronizing control OFF
N22. !L107;
Chapter 2-6 Long shaft Program Example-1
Example Program < Shaft 300.0mm>
2 Chucking
$1
!L100;
G50Z10.0 (L BITE);
G0Z-1.0;
X50.0;
(FRONT/TURN)
G99 G0 Y#504 T0404 M3 S1=3000;
X11.0 Z0.0;
G1 X-1.0 F0.1;
Z-1.0 F0.2;
G0 X2.0;
G1 X6.0 Z1.0 F0.05;
G1 Z15.0;
G1 X11.0 F0.2;
G0 X50.0;
T0;
(M6P1.0)
G0 Y#501 T0101 M3 S1=700;
G0 X11.0 Z-1.0;
G92 X5.9 Z13.0 F0.1;
X5.65;
X5.45;
X5.25;
X5.1;
X5.0;
X4.95;
X4.93;
X4.92;
X4.917;
G0 X30.0;
T0;
(TURN-1)
G0 Y#504 T0404 M3 S1=3000;
G1 X11.0 Z14.5 F0.2;
G1 X6.8 F0.2;
X8.0 Z15.1 F0.05;
Z100.0;
G1 X11.0 F0.2;
G0 X50.0;
T0;
!L101;
!L102;
(CHUKING-1)
G4 U0.1;
M5;
G98;
M218;
G4 U0.1;
M17;
G4U0.1;
G50 Z200.0; (regards current position Z100.0 as Z200.0)
G1 Z100.0 F9000;
(Moves from Z200.0 to Z100.0. The main spindle chuck opens and backwards, giving as
much space of 100.0. 1 Long shaft)
M18;
M242; (Sub Z-axis synchronizes based on the main Z-axis)
(GROOVE/2T/1)
G99;
G0 Y#503 T0303 M3 S1=1500;
X11.0 Z100.0+1.0;
G1 X6.0 F0.05;
G4 U0.1;
G1 X11.0 F0.2;
G0 X50.0;
T0;
(TURN-2)
G0 Y#504 T0404 M3 S1=3000;
X11.0 Z100.0;
G1 X8.0 F0.2;
Z200.0 F0.05;
X11.0 F0.2;
G0 X50.0;
T0;
M5;
M240; (Z-axis synchronizing releases)
!L103;
!L104;
(CHUKING-2)
G98;
M218;
G4U0.1;
M17;
G4U0.1;
G50Z300.0;
G1Z200.0F9000;
M18;
M242; (Sub Z-axis synchronizes based on the main Z-axis)
(GROOVE/2T/2)
G99;
G0 Y#503 T0303 M3 S1=1500;
X11.0 Z100.0+1.0;
G1 X6.0 F0.05;
G4 U0.1;
G1 X11.0 F0.2;
G0 X50.0;
T0;
(TURN-3)
G0 Y#504 T0404 M3 S1=3000;
X11.0 Z200.0;
G1 X8.0 F0.2;
Z285.0 F0.05;
X11.0 F0.2;
G0 X50.0;
T0;
M5;
M240; (Z-axis synchronizing releases)
!L105;
!L106;
G98 M24;
G28 C0.0;
G50 C0.0;
M218; (Opens Sub chuck, holds index and the main index, and then closes sub chuck)
M244; (Sub C-axis synchronizes based on the main spindle)
M242; (Sub Z-axis synchronizes based on the main Z-axis)
(6.0/CROSS-ENDMILL)
G0 X#616 T1616 M83 S3=1500;
G50 W-8.0;
G1 Z242.0 F5000;
G0 V-20.0;
G0 X6.0;
G1 V40.0 F200;
G0 X11.0;
G0 H180.0;
G0 V-40.0;
G0 X6.0;
G1 V40.0 F200;;
G0 X50.0;
G50 W15.0;
T0;
G99 M85;
M217; (In waiting code mode, sub commands can be used to the main)
M225; (M244 automatically releases as C-axis releases)
M25;
M240;
!L107;
(CUT-OFF)
G99 G0 Y#505 T0505 M3 S1=2000;
G0 X50.0;
G0 Z#145+10.0; (L BITE) + 200.0 ( C value 100 + Long shaft 100 2 times)
G0X#102+0.5;
!L1;
!L2;
G1 X-1.5 F0.03;
!L3;
!L4;
G1 X-#103 F0.05;
M21;
M34;
M99;
$2 Sub Program
$2
!L100;
G28 W0;
G28 U0 V0;
G50 X252.0 Y0.0 Z0.0;
(FRONT/TURN)
G99 G0 Y#540 T4040 M204 S2=3000;
G50 W-10.0; (Input random coordinate)
X11.0 Z0.0;
G1 X-1.0 F0.1;
Z-1.0 F0.2;
G0 X2.0;
G1 X6.0 Z1.0 F0.05;
G1 Z15.0;
G1 X11.0 F0.2;
G50 W10.0; (Input random coordinate)
G28 Z0.0;
T0;
(M6P1.0)
G0 Y#539 X#639 T3939 M204 S2=700;
G50 W-10.0;
G0 X11.0 Z-1.0;
G92 X5.9 Z13.0 F0.1;
X5.65;
X5.45;
X5.25;
X5.1;
X5.0;
X4.95;
X4.93;
X4.92;
X4.917;
G0 X30.0;
G50 W10.0;
G28 Z0.0;
T0;
M205;
G28 U0.0 V0.0;
M217;
!L101;
G98 M205;
M217;
G98 G0 Z180.0;
G1 Z250.0 F5000; (approaches to the grip position of Sub axes)
G114.1 H1 D2 R0; (Synchronous rotates)
M26;
!L102;
!L103;
G98 M205;
M217;
G98 G0 Z180.0;
G1 Z250.0 F5000;
!L104;
!L105;
G113; (release G114.1 Synchronous rotation)
M217;
G98 M224;
G28 C0.0;
G50 C0.0;
!L106;
!L107;
!L1;
G114.1 H1 D2 R0;
M26;
G98 G1 Z270.0 F5000;
M218;
G4U0.1;
!L2;
!L3;
G113;
G0 Z0 M205;
!L4;
M99;
%
Chapter 2-7 Eject Pin program example-2
■ Eject-Pin Drawing
Example Program <Eject Pin>
$1;
(EJECT-PIN);
(NN-20J3);
(B:10.0 C:70.0);
!L100;
G50 Z0.0(R-BITE);
G0 Z-1.0;
X90.0;
M33;
N1;
(FRONT)
G99;
G0 T404 Y#504 M3 S1=3000;
X#102+1.0 Z0.0;
G1 X#102 F0.1;
X-1.0 F0.05;
Z-2.0 F0.1;
G0 X90.0;
T00;
N2;
(CENTER-DRILL)
G0 X#620 Y#520 T2020 M3 S1=3000;
G50 W-5.0;
G0 Z-1.0;
G1 Z2.0 F0.05;
G4 U0.1;
G1 Z-1.0 F0.5;
G50 W5.0;
G0 Z-1.0;
T00;
M05;
N3;
(DRILL-3.0)
G0 X#621 Y#521 T2121 M3 S1=3000;
G50 W-5.0;
G0 Z-1.0;
G79 Z50.0 R0.5 I1.1 K3.0 A0.1 Q500 J500 F0.05;
G0 Z-1.0;
G50 W5.0;
G0 Z-2.0;
T00;
N4;
(TUNNING-1)
G0 T404 Y#504 M3 S1=3000;
X#102+1.0 Z-1.0;
G1X4.0 F0.5;
Z0.0 F0.05;
X4.95 W1.0;
Z15.5 F0.1;
X9.0;
X11.0 W1.0 F0.05;
G0 X60.0;
T00;
N5;
(HOME-2T)
G99;
G0 T303 Y#503 M3 S1=1500;
X#102+1.0 Z15.0;
G1X4.5 F0.03;
X9.6 F0.08;
X10.0 W0.2;
G0 X30.0;
G1 Z-1.0 F0.5;
T00;
M5;
N6;
(THREAD-M5XP0.8))
G0 T202 Y#502 M3 S1=800;
G0 X#102+1.0 Z-2.0;
G92 X4.95 Z15.0 F0.8;
X4.8;
X4.7;
X4.4;
X4.1;
X4.0;
X3.95;
X3.91;
X3.91;
G0 Z-2.0;
G0 X60.0;
T00;
N7;
(DEEBERING- TURN)
G0 T404 Y#504 M3 S1=3000;
X#102+1.0 Z-1.0;
G1 X4.0 F0.5;
Z0.0 F0.05;
X4.95 W1.0;
Z15.5 F0.1;
X9.0;
X11.0 W1.0 F0.05;
G0 X60.0;
T00;
N8;
(DEEBERING-THREAD)
G0 T502 Y#502 M3 S1=800;
G0 X#102+1.0 Z-2.0;
G92 X3.91 Z15.0 F0.8;
X3.91;
G0 Z-2.0;
G0 X60.0;
T00;
N9;
(END-MILL-8.0)
G98 M24;
G28 H0.0;
G50 C0.0;
G50 B0.0;
G50 Y0.0;
G0 T1414 X#614 M83 S3=2000;
G50 W-8.0+4.0;
(1);
G0 Z23.0;
U-20.0;
Y8.0;
G1 U40.0 F100;
(2);
G0 H90.0;
G1 U-40.0 F100;
H90.0;
G1 U40.0 F100;
H90.0;
G1 U-40.0 F100;
Y20.0;
G0 X50.0;
G0 Y0.0;
G50 W8.0-4.0;
G50 Y#514;
T00;
M85;
M25;
N10;
(TUNNING-2);
G0 T404 Y#504 M3 S1=3000;
X#102+1.0 Z14.0;
G1 X9.0 F0.05;
X11.0 W1.0 F0.05;
Z22.0;
X9.0 W1.0;
X6.0;
Z71.0;
X11.0 W1.0;
X60.0;
T00;
M5;
(CUT/OFF)
G99;
G0 X50.0;
G0 T505 Y#505 M3 S1=2000;
G0 X#102+0.5 Z#145;
!L1;
!L2;
G1 X-1.0 F0.05;
!L3;
!L4;
X-#103 F0.05;
M34;
M234;
M21;
M99;
$2 Sub Program
$2;
G28 W0.0;
G28 U0.0;
G28 V0.0;
G50 X252.0 Y0.0 Z0.0;
M223;
M225;
!L100;
N1;
(FRONT)
G99;
G00 T4040 X#640 M204 S2=3000;
G50 W-30.0;
G00 X20.0;
Z-1.0;
G01 Z0.0 F0.05;
G01 X19.0 F0.05;
X20.0 W0.5;
W0.5;
U2.0;
G1 Z-2.0 F0.3;
G50 W30.0;
G28 W0.0;
G28 U0.0;
T00;
M205;
N2;
(DRILL2.0);
G0 T3030 Y#530 X#630 M204 S2=4000;
G50 W-15.00;
G0 Z-1.0;
G79 Z25.0 R0.5 I1.1 K3.0 A0.1 Q100 J100 F0.05;
G0 Z-1.0;
G50 W15.0;
G28 W0.0;
T00;
G28 W0.0;
G28 U0.0 V0.0;
M222;
M217;
M237;
M236;
G0 Z0.0;
M223;
M65;
M265;
(M201);
!L1;
G114.1 H1 D2 R0;
G00;Z256.0 M203;
M26;
G98 G01 Z276.00 F3000 M245;
G99 M246;
M218;
!L2;
!L3;
G113;
G00 Z0.0 M205;
!L4;
M99;
%
Chapter 2-8 B-axis program example-3 (NN-32YB3XB)