0% found this document useful (0 votes)
513 views142 pages

20J3XB - Programming - EN M80 VER00

The document provides specifications and details for programming an NN-20J3XB CNC automatic lathe. It includes specifications for the main $1 and sub $2 tool posts, controllable axes, programming codes, tooling, machining examples and more. The manual is intended to guide users in fully utilizing the lathe's programming capabilities and efficiently creating machining programs. It covers both basic programming concepts and application examples.

Uploaded by

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

20J3XB - Programming - EN M80 VER00

The document provides specifications and details for programming an NN-20J3XB CNC automatic lathe. It includes specifications for the main $1 and sub $2 tool posts, controllable axes, programming codes, tooling, machining examples and more. The manual is intended to guide users in fully utilizing the lathe's programming capabilities and efficiently creating machining programs. It covers both basic programming concepts and application examples.

Uploaded by

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

NN-20J3XB

CNC AUTOMATIC LATHE

PROGRAMMING MANUAL & Examples

M80 Series Ver. 01

 To ensure safety, be sure to read and understand the contents of


this manual before operating the machine.
 Store this manual where it will be readily accessible for future
reference.
 Do not modify or alter this machine in any way without our
approval. We do not take any responsibility for damage or
accidents caused by such unauthorized modification.
 Please use genuine parts engineered specifically for your machine.

NOMURA DS Co., Ltd.

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

Max. Machining diameter ∅20.0 mm Max. ∅22.0


Machining
Max. Machining length 200.0 mm / 1 chuck
Capability
Max. Parts pick-up length 93.0 mm
Main Spindle radiator ∅23.0 mm
Main Spindle Spindle Max. Rotation Max. 10,000 rpm
Motor Power 3.7 / 1.5 kw (Mitsubishi)
Radiator tool post (Bite) □12 x 12 / 5 EA
Tool Post
Front tool post (ER-16) ∅22.0 / 4 EA
Chapter 1-1 Main $1 tool post (Type-B)

Specification Specification Option

Spindle Max. Rotation Max. 6,000 rpm


Motor
Specification
Motor Power 1.5 kw (Mitsubishi)

T13 15.0 mm (distance)


Tool Post (ER-16)
Tool Post Type-B
5 EA
T14 ~ T17 8.0 mm (distance)

Type-A ($1) MAIN


T10 ~ T11 8.0 mm (distance)
B-axis
Specification
Type-B ($2) Sub

T12 ~ T14 15.0 mm (distance)
Type-C ($1, $2) ALL
Chapter 1-1-1 $1 Main Spindle Cross Tool post (Type A-C)

Tool No.
when 90° is
commanded

At

Angle Tool No. Call


T10 G0 Y#510 T1010
T11 G0 Y#511 T1111 At 0°
0° ~ 135°
T12 G0 Y#512 T1212
(Except 90°)
T13 G0 Y#513 T1313
T14 G0 Y#514 T1414

T30 G0 Y#530 X#630 T3030


T31 G0 Y#531 X#631 T3131
At 90°
T32 G0 Y#532 X#632 T3232
(Fixed)
T33 G0 Y#533 X#633 T3333
At 135°
T34 G0 Y#534 X#634 T3434
Chapter 1-2 Rear side Sub $2 tool post

Specification Specification Option

Machining Max. Machining diameter ∅20.0 mm


Capability Spindle Max. Rotation Max. 10,000 rpm
O.D Tool (Bite) □12 x 12 x 150 mm / 2 EA
I.D Tool (Fixed in front) 3 EA (ER-16) / ∅22.0
Tool Post I.D Eccentric (Rotating in Front) 3 EA (ER-11)
Cross Drill (Side) 3 EA (ER-16)
Cross Motor Max. 6,000 rpm
Chapter 1-2-1 Rear side Sub $2 tool post (Type B-C)

Tool No.
when 90° is
commanded

Angle Tool No. Call


At 0°
T43 G0 Y#543 T4343
0° ~ 89° T44 G0 Y#544 T4444
(Except 90°) T45 G0 Y#545 T4545
T46 G0 Y#546 T4646

T53 G0 Y#553 X#653 T5353


T54 G0 Y#554 X#654 T5454 At 90°
At 90°
(Fixed) T55 G0 Y#555 X#655 T5555
T56 G0 Y#556 X#656 T5656

O.D Tool (Bite) □12 x 12 x 150 mm / 2 EA


Tool Post I.D Tool (Fixed in front) 3 EA (ER-16) / ∅22.0
Cross Drill (B-axis) 4 EA (ER-16)
Chapter 2 Structure and specifications for the $1, $2 tool posts
Chapter 3 Controllable Axes

MAIN ($1) SUB ($2)


X1-, Z1-, Y1-, C1-, B1-Axis X2-, Z2-, Y2-, C2-, B2-Axis
Chapter 4 Alphabetic Codes

G-code System Code (Preparing Function)


G00 Rapid-traverse positioning
G01 Linear cutting
G02/G03 Arc cutting
Others

M-code Machin Code (Supporting Function)


M17 Chuck open
M33 Coolant ON
M236 $2 Ejection forward/backward command
Others

S-code Rotary command (Command Function)


S1 S1=1000 (Main Spindle) #1
S2 S2=1000 (Backside Spindle) #2
S3 S3=1000 (Main Cross) #1
S4 S4=1000 (Backside Cross) #2

 Others

F0.03 mm/rev G99 (per Rotation)


F
F300 mm/min G98 (per Minute)
N Sequence No. N○○○○○ (up to 5 digits)
$1 Main
$2 Sub
‘!L’ is used as a wait-command
M as wait-Code
e.g., !L100
Chapter 4-1 S-Code and main spindle load detection function (M-Code)

S1 ($1 Main Spindle)


M11 S1 Main spindle load monitoring mode ON
M12 S1 Main spindle load check and monitoring mode OFF
M71 S1 Main spindle load detection mode ON (valid when power is ON)
M72 S1 Main spindle load detection mode OFF
S1 Main spindle allowable-overload specification (Set value under B-
M74
command)

S2 ($2 Sub Spindle)


M211 S2 Main spindle load monitoring mode ON
M212 S2 Main spindle load monitoring mode OFF
M231 S2 Main spindle rotation-up detect mode ON (variable torque restriction ON)
S2 Main spindle rotation-up detect mode OFF (variable torque restriction
M232
OFF) (Valid when power is ON)
M271 S2 Main spindle load detection mode ON
M272 S2 Main spindle load detection mode OFF
S2 Main spindle allowable-overload specification (Set value under B
M274
command)

S3 ($1 Cross drill)


M30 S3 Spindle load monitoring mode ON
M94 S3 Spindle load detection mode ON
M95 S3 Spindle load detection mode OFF

S4 ($2 Cross drill)


M230 S4 Spindle load monitoring mode ON
M294 S4 Spindle load detection mode ON
M295 S4 Spindle load detection mode OFF
Chapter 4-2 Main Spindle load detection function <M71, M72, M74>

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.

* The numerical value set by the B command appears in the window


Chapter 5 Tool Post $1 Main (Type-B)

G0 Y#501 X#601 T101


Y# 501 Y-Axis Command / Tool No.
Format
X# 601 X-Axis Command / Tool No.
T1 01 T1 : Tool Length / 01 : offset

T100 G0 Y# 501 T101 □12X12


T200 G0 Y# 502 T202 □12X12
T300 G0 Y# 503 T303 □12X12
Bite
T400 G0 Y# 504 T404 □12X12
T500 G0 Y# 505 T505 Cut-Off
T600 G0 Y# 506 T606 □12X12

T2000 G0 Y# 520 X#620 T2020 ER-16 ∅22


T2100 G0 Y# 521 X#621 T2121 ER-16 ∅22
ATT
T2200 G0 Y# 522 X#622 T2222 ER-16 ∅22
T2300 G0 Y# 523 X#623 T2323 ER-16 ∅22

T13 G0 X# 613 T1313 ER-16


T14 G0 X# 614 T1414 ER-16
Cross T15 G0 X# 615 T1515 ER-16
T16 G0 X# 616 T1616 ER-16
T17 G0 X# 617 T1717 ER-16
Chapter 5-1 $2 Sub Tool Post (Type-A)

G0 Y#501 X#601 T101


Y# 501 Y-Axis Command / Tool No.
Format
X# 601 X-Axis Command / Tool No.
T1 01 T1 : Tool Length / 01 : offset

T30 G0 Y#530 X#630 T3030 ER-16 ∅22.0


Fixed
(Front)
T31 G0 Y#531 X#631 T3131 ER-16 ∅22.0
T32 G0 Y#532 X#632 T3232 ER-20 ∅22.0
T33 G0 Y#533 X#633 T3333 ER-11
Rotary
T34 G0 Y#534 X#634 T3434 ER-11
(Front)
T35 G0 Y#535 X#635 T3535 ER-11

T36 G0 Y#536 T3636 ER-16


Cross T37 G0 Y#537 T3737 ER-16
T38 G0 Y#538 T3838 ER-16
T39 G0 Y#539 T3939 □12x12
Bite
T40 G0 Y#540 T4040 □12x12
Chapter 5-2 Selection of specified tools with M-codes
Machining
Tool M-code Format
Axis
T1 M101
T2 M102
T3 M103
$1 Bite Tool Y-Axis Y#501 T101
T3 M104
T5 M105
T6 M106

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.

M05 Main spindle stop Stops the $1 main-spindle.

M06 Main spindle stop confirmation


Sends a bar-change start signal to the bar feeder.
M08 Bar change start (Optional)
M09 Dwell (1 sec.) Commands one-second stop of program execution.

Turns on the Block Skip lamp. (See “Block Skip ON


M10 [BLOCK SKIP] button lamp ON <M10> and “/” (slash) Code.”)
M11 Min axes load detection mode ON
M12 Min axes load detection mode OFF
Chamfers at the end of the thread (See “Chamfering
M13 Chamfering ON ON and OFF <M14>.”)
No chamfering at the end of the thread (Selected when
M14 Chamfering OFF the power in turned on)
Squares corners (Selected when the power is turned
M15 Error detector ON on).
Rounds corners slightly. (See “Error Detector ON
M16 Error detector OFF <M15>.”)
M17 $1 Main chuck open Opens the $1 main-spindle chuck.

M18 $1 Main chuck close Closes the $1 main-spindle chuck.

M19 $1 parts cut-off detector start Starts the parts cut-off detector (Entered as “O9001”).

M21 Parts count-up


M24 C-axis control angle ON Sets and starts the $1 C-axis control angle by G0C □□□□.

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

M29 Optional block skip OFF Turns off block skip

M30 S3 tool spindle load monitoring mode ON


M33 $1 coolant motor ON Starts the coolant motor.

M34 $1 coolant motor OFF Stops the coolant motor.

Stops the spindle rotation immediately at spindle speed


$1 Spindle rotation command (S
M38 change, to proceed to the next operation rapidly (Used
command) stop together with S1).
Turns on the tap breakage detector circuit and checks
M39 Facing tap breakage detector with the proximity switch.
M40 $1 synchronous axis cancel Turns off a controlled axis synchronization command.

Turns on a $1Z controlled axis synchronization


M42 $1 synchronous axis designation command.
S3 tool spindle cutting load monitoring
M49
mode OFF
M52 $1 clamp ON
M53 $1 clamp OFF
M65 $2 parts conveyor ON Starts the conveyor. (Optional)

M66 $2 parts conveyor OFF Stops the conveyor. (Optional)

M71 Main spindle load detect mode ON


M72 Main spindle load detect mode OFF
Spindle allowable-overload specification Set a numerical value by a B command. (See “Spindle-
M74 Speed Error Detect Mode.”)
( B0~B10 )
Outputs the send torque START signal to the bar
M75 Bar-feeder torque free ON feeder.
M76 Bar-feeder torque free OFF Outputs the send torque STOP signal to the bar feeder.

Outputs the send torque OPEN signal to the bar


M77 Bar-feeder chuck open signal feeder.
Outputs the send torque CLOSE signal to the bar
M78 Bar-feeder chuck close signal feeder.
S3 tool spindle allowable machining load A numerical value is set by a B command.
M80
designation.
M81 Auto power-off mode ON
M82 Auto power-off mode OFF
M83 S3 cross drill normal rotation (CW) M83S3 = □□□ starts cross-drill normal rotation.

M84 S3 cross drill reversed rotation (CCW) M83S3 = □□□ starts cross-drill reverse rotation.

M85 S3 cross drill stop Stops the cross-drill

S3 cross drill stops and check


M86
S3 cross drill immediate stop command
M87 S3 cross drill load detection mode ON
Spindle synchronous command G114.2
M88 $1/S3 polygon cutting synchronization check
S3 tool spindle allowable-overload A numerical value is set by a B command.
M89
specification
M94 S3 tool spindle load detection mode ON
M95 S3 tool spindle load detection mode OFF
M98 Subprogram call M98P □□□□ executes a subprogram.
Always entered at the end of the subprogram.
M99 Subprogram end command (Restart & return)
M-Code Function Explanation
M152 M152: Spare M-CODE M152 OPTION
M153 M153: Spare M-CODE M152 off OPTION
M154 M154: Spare M-CODE M154 OPTION
M155 M155: Spare M-CODE M154 off OPTION
M156 M156: Spare M-CODE M156 OPTION
M157 M157: Spare M-CODE M156 off OPTION
M168 M168: CHIP CONVEYOR RUN
M169 M168: CHIP CONVEYOR STOP

M310 M310: Spare M-CODE M310 OPTION


M311 M311: Spare M-CODE M310 off OPTION
M312 M312: Spare M-CODE M312 OPTION
M313 M313: Spare M-CODE M312 off OPTION
M314 M314: Spare M-CODE M314 OPTION
M315 M315: Spare M-CODE M314 off OPTION
M316 M316: Spare M-CODE M316 OPTION
M317 M317: Spare M-CODE M316 off OPTION

$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.

M206 $2 spindle stop confirmation


M209 $2 dwell (1 sec.)
$2 main-spindle cutting load monitoring
M211
mode ON
$2 main-spindle cutting load monitoring
M212
mode OFF
M213 $2 Chamfering function ON Chamfers at the end of the thread.

M214 $2 Chamfering function OFF No chamfering at the end of the thread.

M215 $2 Error detector ON Squares corners for $2 backside cutting.

M216 $2 Error detector OFF Rounds corners slightly for $2 backside cutting.

M217 $2 chuck open Opens the $2 back chuck.

M218 $2 chuck close Closes the $2 back chuck.


M222 $2 parts receiver forward
M223 $2 parts receiver backwards
M224 $2 C-axis angle control ON Returns the $2 C-axis to the zero position.
M225 $2 C-axis angle control OFF Cancels $2 C-axis control angle setting.
M230 S4 tool spindle load detection mode ON
$2 spindle speed increase check mode
M231 Variable torque limit ON
ON
$2 spindle speed increase check mode
M232 Variable torque limit OFF
OFF
M233 $2 coolant ON Starts the $2 coolant motor.
M234 $2 coolant ON Stops the $2 coolant motor.
Moves the parts unloading air cylinder forward to
M236 $2 parts push forward/backward cycle unload the parts from the $2 back chuck.
Eliminates cutting chips from inside the $2 chuck by
M237 $2 chuck air blow ON (2 sec.) start the air pressure.
Stops the spindle rotation immediately at spindle speed
M238 $2 spindle S command stop (S2) change, to proceed to the next operation rapidly (Used
together with S2).
M239 $2 facing tap normal check Turns on the $2 facing tap breakage detector.

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

M-code Function Explanation


M248 $2 parts unloading lot backwards
M252 $2 clamp ON
M253 $2 clamp OFF
M271 $2 spindle detect mode ON
M272 $2 spindle detect mode OFF
$2 spindle allowable-overload Sets a numerical value by a B command (See
M274 “Spindle-Speed Error Detect Mode.”)
specification
M283 $2 S4 tool spindle normal rotation start (Optional)
M284 $2 S4 tool spindle reversed rotation start (Optional)
M285 $2 S4 tool spindle stop (Optional)
M286 $2 S4 tool spindle stops and check (Optional)
M287 $2 S4 tool spindle S4 command stop (Optional)
M294 S4 tool spindle load detect mode ON
M295 S4 tool spindle load detect mode OFF
User macro alarm operator message display
M299 request ON
(PLC-side operator message display stop)
$1 system-command prefetch-
M300
processing cancellation
M301 Oil mist ON
M302 Oil mist OFF
Chapter 7 Absolute-, Incremental-commands of Axes and radius / Diameter
command

Lesson 1 Content
CODE X-command / U-command
Pattern X___ / U___
Absolute X, Z, Y, C
Format
Incremental U, W, V, H

Command at the point ★.


If X1.0 Y2.0 was ordered:

command

Absolute command Incremental command


Chapter 7-1 Radius of Axes / Diameter command

X-axis

Main spindle
Z-axis

Work coordinate zero position

X-command U-command Remark


Radius Diameter Radius Diameter
U-command can be used for 반경 due
X= r1 X=2 r1 U= r2 U=2 r2 to the Parameter #1077 radius.

e.g.,

r1 = 1 = X1.0 (radius) r2 = 1 = U1.0 (radius)


2r1 = 2 = X2.0 (diameter) 2r2 = 2 = U2.0 (diameter)

 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.

(2) X10.0 = X[5.0+5.0] or X[10.0+0.5] = 10.0mm + 0.5mm = 10.5mm

(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

: Command address is valid in all axes added.

Call

Move

Approach to the position


close to machining

Material

Main ($1) Sub ($2)


X1 axis X2 axis
36 m/min 36 m/min
Z1 axis Z2 axis
(Rapid-traverse) (Rapid-traverse)
Y1 axis Y2 axis

 Key point

1) G0 moves at the speed of Rapid-traverse


2) It is effective in decreasing C/T cutting because it narrows the gap between the tool and the
material. (1.0 mm ~ 0.1 mm is suitable)
3) Bar-feeder set-up is important as to the speed of Rapid-traverse. (Material may break
away)
4) In rapid-traverse, BURR on the material must be removed.
In addition, use G0 → G1. (G98 G1 Z100.0 F1000 accordance to the situation)
Chapter 9 Feed rate positioning <G1>

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 motion


: The positioning of the next block starts if the amount of positioning error range of the deceleration-
checking-block is directed below the specified in-position width by the positioning command block
(Rapid-traverse: G00) and linear interpolation command (G01).
The in-position command width is valid only for the commanded block(s). Therefore, blocks without
in-position width command are processed by the parameter #1193 inpos deceleration setting
(standard setting).
If with multiple axes, positioning of the next block is initiated after the amount of positioning error
range (if the error is directed below the in-position width of the current command) is checked by each
system command.
In case of the in-position checking is valid by parameter, refer to the diagrams below about the
difference between the standard parameter (#1193 inpos = 1) and the normal command.

In-position check by , I address command In-position check by parameter


After the deceleration by system is
After the deceleration by system command
completed, compares the positioning error
started, compares the positioning error and
of servo system and the in-position width
the commanded in-position width.
set by parameter.

Servo Command Servo Command


In-position width
(Error between the
In-position
command end
width (amount
of positioning
실행중 point and the
error of servo
블록 location of the
motion end point
system)

In-position check
Starts in-position by parameter
check by the ‘, I’
address command

Ts : number of acceleration/deceleration readjustment / Td : time check for deceleration


Td = Ts + (0~14 ms)
Chapter 9-1 Positioning at the specific feed rate <G1>

Absolute command (G1) Increment command (G1)


Process Content Process Content
G99 ; Feed rate per rotation
GO Y#502 T202 Call T200
Normal rotation
M3 S1=3000 ;
3,000rpm

G0 X3.0 Z-0.5; Starting point G0 X3.0 Z-0.5; Starting point

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)

G0 X3.0 Z-0.5 Starting (absolute)


Middle distance
G1 X5.0 W1.0 F0.05
(increment)
G1 Z5.5 F0.05 Final distance (absolute)
G4 U0.1 Dwell
G1 X9.0 F0.05 Starting point (absolute)
Final(Absolute)
G1 X10.0 W0.5 F0.05
Distance(incremental)
G0 X40.0
T0

(plan view of increment)


<Addition>
1) Absolute command is suggested for starting and reference point. (in management aspect)
2) Fixing coordination can be easily done if increment is set for middle range distances.
3) If main spindle fails to rotate, no feed rate is done (In this case refer to the measure G98).
Chapter 10 Arc cutting <G2, G3>

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

X, Z Plane selection(G18) X, Z Plane selection (G18)


G2 format (nose R0.2) G3 Format (Nose R0.2)
G2 X4.0 W4.4 R2.2 F0.03 G3 X4.0 W4.4 R2.2 F0.03
In case of the same nose R0.2, (W, R) + 0.2  G2
In case of opposite, (W, R) – 0.2  G3
Chapter 11 Dwell (Stop time in seconds) <G04>

Lesson 5 Content
CODE G04
Pattern G04 X/U___ or P___
Dwell time (second)

Format #1078 Decpt2 = “0” #1078 Decpt2 = “1”


G04P decimal G04P decimal G04P decimal G04P decimal
point ‘invalid’ point ‘valid’ point ‘invalid’ point ‘valid’
G04 X500; 0.5 500
G04 X5000; 5 5000
G04 X5.; 5 5
G04 X#100; 1000 1000
G04 U500; 0.5 500
G04 U5000; 5 5000
G04 U5.0; 5 5
G04 U#100; 1000 1000
G04 P5000; 5 5 5000
G04 P12.345; 0.012 12.345 0.012 12.345
G04 P#100; 1 1000 1 1000

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.

Return from the Subprogram


M99 P___ ;
M99 Return to subprogram command
P___ Returning sequence no. (If omitted, returns to the next block)

Programming and registering of Subprograms


0 12345 ; Program no. as a subprogram

Sub machining program

M99 ; Subprogram return command


% End registering code
Chapter 12-1 Calling subprogram <Example 1>

In case of calling a subprogram three times,

Main Sub-1 Sub-2 Sub-3

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.

Chapter 12-2 Calling subprogram <Example 2>

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.

(1) Block skip (Example-1)

BLOCK SKIP (ON) BLOCK SKIP (OFF)

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;

(2) GOTO ___ N___ (Example-2)

G0 Y#522 X#622 T2222


G0 Z-2.0
G1 Z2.0 F0.03
G0 Z-2.0
T00

G0 Y#523 X#623 T2323


G0 Z-2.0
G83 Z20.0 Q1.0 P0.1 F0.03 K2.0
G80
Z-2.0
T00

GOTO 777  Alphabet

G0 Y#524 X#624 T22


G0 Z-2.0
G84 Z5.0 F1.0 D1 K1 S600 R1
G80
Z-2.0
T00

N777  Matching Number


Chapter 14 Composition and setting procedure of Set-up program
The NC unit of the NN-20J3XB has the subprograms listed below. Use these subprograms as
auxiliary programming functions with their respective machining programs (to be created
according to the workpiece).
Setup program O8300 (see below) is created as a main program.

Program No. Designation


O 8300 Set-up program (Main program)
N 9000 Facing (with a single-tool feeder)
N 9001 Offset cancel subprogram
N 9003 Program end (with a single-tool feeder)
N 9004 Facing (with a bar feeder)
N 9005 Program end (with a bar feeder)
O 9801 User’s macro for set-up
O 9876 Backside right-hand screw thread user macro
Manual selection of M command tools
O 9910
(not editable)
N 9877 Backside right-hand screw thread
N 9020 Checks breakage of the cut-off tool
* N9000 ~ N9005 are included in O 8300.
* N9877 is included in O 9876

Program data sections


For memory control purposes, a program is divided into the following four sections as shown in the
table below.
Subprograms #9000 to #9999 are stored in memory at the factory.
When programming, use O1 to O7999.

Program No. Data contents

O0001 ~ O7999 Machining programs created by the user

Machining programs created by the user


O8001 ~ O8999
[$2 standard machining auxiliary program
Subprogram provided by the manufacturer
O9000 ~ O9799
[Setup program (main program)

O9800 ~ O9999 User macro-function dedicated program


Chapter 14-1 Meaning of Data Entry and Common Variables

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.”)

J Machining program No.


Normally, enter “0.” For multi-workpiece machining per chucking, enter the
K compensation amount for the total length. (Enter “0” for the Z-axis offset for
abrasion offset T6 [cut-off Bite].)

Common Variables (Calculation data)


#101 Spindle speed (S1=#101 )
#102 Workpiece dia. + ∅0.4 X-axis command position. (X#102)
Advanced position of the cut-off Bite beyond the center line during cut-off
#103
(X-#103)
#104 Feed rate during cut-off (F#104)
#105 Z-axis position for chamfering on the remaining bar (Z#105)
#106 X-axis position for chamfering on the remaining bar (Z#106)
#108 X-axis position (#102 + 4.0, toll-change safety position) (X#108)
#109 Machining program No.
#110 Cut-off Bite No. (without offset setting).
#144 Z-axis retract amount of (finished-work length + cut-off width) x quantity (Z#144)
#145 Z-axis advance amount of (finished-work length + cut-off width) (Z#145)
#146 Z-axis position before C chamfering by cut-off Bite.
#147 Quantity to be machined per chucking.
Chapter 14-2 O8300 Set-up program
NN-20J3XB computes the spindle speed, feed position of each axis, and other parameters by
using a user macro (O9801) function to input the data read from the drawing to A to K (see the
next page). The program shown below inputs the O8300 setup program as the main program. The
main program is made up of this setup program and the machining program created by the user.

O8300; Program No. O8300


$1; Main
/G65 P9801 A__B__C__ ~ K__ ; User’s macro <P9801> Call / data input
/N3 M98 H9004; Calls a facing subprogram
N1 G50 Z#144 M33 Sets the Z-axis coordinate system and starts the coolant motor

G0 Z0; Moves the Z-axis to zero return “0.”


G4 U0.05; Dwell 0.05 sec.
M18 (M78); Main spindle chuck open (bar-feeder torque change OFF)
G4 U0.2; Dwell 0.5 sec.
M19 (W-α); Cut-off tool breakage detect / Adjusts when L-Type cutting
M3 S1=#101 M38; Normal rotation (data A recognition)
M98 P #109 L#147; Call Imaginary program (J data) (I data)
M98 H9001; Machining release (chuck open) sub program call
M1; Optional Stop
/GOTO 2; Move to / N2 process (BLOCK SKIP)
GOTO 1; Move to N1 process
Bar-feeder replacement sub program call
/N2 M98 H9005; : BLOCK SKIP OFF when Bar-feeder signals BAR END
signal
/GOTO 3; Move to N3 process
M99; End

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;

When using an automatic bar feeder


N9004 (O9004) Workpiece loading N9005 (O9005) Workpiece unloading
G99 M18 M25; G50 Z0.0;
G4 U0.5; M18; Chuck open
Bar-feeder torque
M3 S1=500 M76; M19 (W-α); Cutting detect function
OFF
G28 U0.0; M3 S1=#101;
G28 V0.0; G0 X#102 Z-0.5;
G50 X60.0 Y152.0; Z#105;
Y#505 T605; G1 X#106 F#104;
G1 W40.0 F2.0 M33; Coolant ON G0 X#108 S1=300; M75;
G0 X#102 S1=#101 ; G0 Z0.0;
G1 X-#103 F#104; G1 Z-40.0 F5.0 M34; Coolant OFF
M17; Chuck open M17; Chuck open
Bar-feeder workpiece
G0T0; M8;
unload
M10; Option block skip ON M99;
M99;
Chapter 15 Using L-TYPE Cutting Bite (M19 Setting)
When using L-TYPE cutting, an interference in the cutting detector occurs.
In normal set-up program, designate M19 in 3 positions (O8300).

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

to adjust machining program,


$1; MAIN
M301; Dust Collector ON
!L100; Waiting code
G50 Z10.0; If R-Type, Z0.0; / If L-Type, (12.0 – 2)= 10.0;
G0 Z-1.0;
G0 X60.0;
M25;
M33;

Machining process

(CUT-OFF T2.0) Cutting process


G99;
G0 X50.0;
G0 Y#502 T202 M3 S1=2500;
G0 X#102+2.0 Z#145+10.0; Z#145 + 10.0;  input accordingly
!L1;
!L2;
Chapter 16 G50 Setting coordinate-system

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…

G0 Y#522 X#622 T2222;


M3 S1=2000;
Radius value (2.0) * 2 = 4 (if towards negative direction, use
G50 X-4.0;
(-) negative sign)
G50 W-4.0; Recognizes 4.0mm of projected position as 0.0

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;

G0 X-4.0; Move X-axis to zero position


G50 X#622 ; X-axis coordinate-system Cancel
G50 W4.0; Z-axis coordinate-system Cancel
G0T0;
Chapter 17 Constant-Surface-Speed Control <G96, G97>

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

(1) Constant-surface-speed control axis is set by parameter #1181 G96_ax.


0 : The 1st axis fixed (P command is invalid)
1 : The 1st axis
2 : The 3rd axis
3 : The 3rd axis

(2) If parameter shown above is not ‘0,’ a constant-surface-speed axis can be set by address P.

e.g., If G96_ax is “1”,

Program constant-surface-speed axis


G96 S100; The 1st axis
G96 S100 P3; The 3rd axis

(3) Switching program motion

; G96 Constant-surface-speed control ON


G96 G01 X20.0 Z10.0 S200; Controls the main spindle speed to be 200 m/min
; G97 Constant-surface-speed control OFF
G97 G1 X60.0 Z20.0 F0.04 M3 S1=1000; Controls the main spindle speed to be 1000 r/min

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.

[NOTE] Rotation speed clamp motion in G50 command.

CODE Sclamp=0 Sclamp=1


G96 aux11 bit5=0 aux11 bit5=1 aux11 bit5=0 aux11 bit5=1
G97 Rotation-seed clamp command Rotation-speed clamp command
Command Main spindle rotation-speed
G96 Rotation-speed clamp command
command
G97 Rotation-seed clamp execution Rotation-speed clamp execution
Movement
No Rotation-seed clamp Clamp execution No Clamp

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

G50 S6000 Q4000; Max. 6,000RPM / Min. 4,000RPM


G0 X20.0
G96 G1 X0.0 F100; Maintain speed at 100m/min
G1 Z10.0 F100
G97 G1 X20.0 F0.03 M3 S1=2000; Convert to 2000 rev/min

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

[NOTE] Do NOT replace the command order of ‘I___J___K___’

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]

 varies by the specification of machine type.


Chapter 19 Auxiliary programming functions

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

N1 G0 X6.0; X-axis starting point


N2 G1 Z0.0 F0.05; Z-axis starting point
N3 G1 X8.0 ,C1.0 F0.03 E0.05; Diameter 8.0 (F0.03) / Chamfering 1.0
(E0.05)
N4 G1 Z5.0 F0.04;
N5 G1 X13.0 Z8.3 ,R2.0 F0.03 E0.05; X13.0 Z8.3 ,R2.0 machining
N6 G1 Z20.0 F0.05;

Using A coordination

Modify only N3  G1 X8.0 A45.0 F0.03; (machining at an angle of 45°)


Chapter 20 Screw thread Using a Turning Bite
The G92 (screw thread canned cycle), G76 (multiple repetitive screw thread cycle), and special
screw thread G32 (constant lead screw thread) commands cut threads using a Turning Bite
(tap). .

Screw thread canned cycle

G92 X____ Z/W____ F____;


X____;

Multiple repetitive screw thread cycle

G76 P____ Q____ R____;


G76 X____ Z/W____ R____ P____ Q____F____;

Constant lead screw thread

G32 X____ Z/W____ F____;


(G32) Z/W____ (F____);
G0 X____;
G0 Z____;

Spindle-Speed Setting for Screw thread


The spindle speed for screw thread is normally set in the range from 500 rpm to 1,500 rpm,
depending on the type of thread (thread lead), material, tip strength, etc.

Maximum spindle speed


1000 : Max. feed rate

F : Thread pitch (lead)


Chapter 21 Explanation of Lead angle
During external or internal screw thread, the lead angle is the angle created by the relationship
between the circumference (π x D) and the lead (amount of movement in one turn of the
spindle).

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.

Lead angle of a metric coarse screw thread


The thread O.D. is of the nominal diameter, and the depth of cut (D) is calculated using the
values shown in the table below.
Nominal dia. (M) 1.4 3 4 5 6 8
Pitch 0.3 0.5 0.7 0.8 1 1.25
Lead angle 5°48’ 4°3’ 4°20’ 3°51’ 4°3’ 3°44’

Nominal dia. (M) 10 12 14 16 18 20


Pitch 1.25 1.75 2 2 2.5 2.5
Lead angle 2°49’ 3°19` 3° 19’ 2°49` 3°13` 2°49`
Chapter 21-1 Screw thread Canned Cycle Command and Motion

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)

Screw thread command: G92 X Z/W F : Thread length (Z/W ) equals a


(approach
distance) + L: (thread length) + b (incomplete thread)
a : The approach distance depends on the spindle speed during screw thread. Generally, it is
two or more times the thread pitch (lead).
b : The incomplete thread depends on the chamfering amount (parameter setting). Generally, it
is the same as the thread pitch (lead).
Chapter 21-2 Worm-Thread Tooth
Chapter 21-3 Metric Screw Thread-cutting tool depth of cut (radius)

External Screw thread


P=0.3 P=0.5 P=0.7 P=0.8 P=1.0
0.23 0.38 0.53 0.61 0.76
P=1.25 P=1.5 P=1.75 P=2.0 P=2.5
0.95 1.14 1.33 1.52 1.90

Internal Screw thread


P=0.3 P=0.5 P=0.7 P=0.8 P=1.0
0.20 0.3 0.46 0.52 0.65
P=1.25 P=1.5 P=1.75 P=2.0 P=2.5
0.82 0.98 1.14 1.30 1.63
[Thread height: Radius (mm)]
Chapter 21-4 Screw thread Depth of Cut and Number of Cuts
(Considered tool tip R)

[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

1st 0.12 0.18 0.23 0.26 0.29 0.33 0.35 0.41


2nd 0.06 0.10 0.11 0.13 0.14 0.16 0.18 0.22
3rd
Number of cuts

0.02 0.04 0.09 0.09 0.11 0.12 0.13 0.15


4th 0.02 0.03 0.03 0.07 0.10 0.12 0.13
5th 0.02 0.02 0.03 0.06 0.10 0.11
6th 0.02 0.03 0.06 0.10
7th 0.02 0.03 0.09
8th 0.02 0.06
9th 0.03
10th 0.02

[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

1st 0.12 0.18 0.20 0.21 0.28 0.29 0.30 0.35


2nd 0.05 0.07 0.10 0.11 0.13 0.15 0.16 0.18
3rd 0.02 0.05 0.08 0.08 0.10 0.13 0.12 0.13
4th 0.01 0.02 0.05 0.06 0.08 0.10 0.10 0.11
Number of cuts

5th 0.01 0.02 0.04 0.04 0.08 0.09 0.10


6th 0.01 0.02 0.02 0.04 0.08 0.09
7th 0.01 0.01 0.02 0.07 0.08
8th 0.01 0.04 0.08
9th 0.02 0.07
10th 0.01 0.06
11th 0.04
12th 0.02
13th 0.01
[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

1st 0.10 0.14 0.18 0.19 0.22 0.23 0.25 0.29


2nd 0.04 0.07 0.09 0.10 0.11 0.11 0.13 0.15
3rd 0.03 0.05 0.07 0.07 0.08 0.09 0.09 0.11
4th 0.02 0.03 0.06 0.06 0.07 0.07 0.08 0.09
5th 0.01 0.02 0.04 0.05 0.06 0.06 0.07 0.08
6th 0.01 0.02 0.04 0.05 0.06 0.06 0.07
7th
Number of cuts

0.01 0.02 0.04 0.05 0.06 0.07


8th 0.01 0.02 0.05 0.05 0.06
9th 0.01 0.04 0.05 0.06
10th 0.03 0.05 0.05
11th 0.02 0.04 0.05
12th 0.01 0.03 0.05
13th 0.02 0.05
14th 0.01 0.04
15th 0.04
16th 0.03
17th 0.02
18th 0.01

[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.

Nose-rounding offset command


Use of the nose-rounding offset command varies depending on the machining direction. Select
the G code in accordance with the machining direction. (See the next page for a description of
G41 and G42 motions.)

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)

Imaginary-nose-point (P) setting


The nose points (P) of tools T1 to T5 must be set. Nose-point (P) setting can be performed using
rounding shapes of P4 or P8. Refer to the figure below to select the rounding shape. Then, enter
the nose point No. in P ( ) of the Nose-R data window. (See "Nose-Rounding Offset Data-Entry
Procedure" for a description of the nose-rounding offset data-entry method.)
Chapter 22-2 G41 (Nose-Rounding Offset Left-Hand Mode) and
G42 (Nose-Rounding Offset Right-Hand Mode) Command
Direction
There are two nose-rounding offset commands for G41 (left-hand mode) and G42 (left-hand
mode) in the Z-axis direction. When performing cutting in the direction in which the workpiece is
advanced, use G41. When performing cutting in the direction in which the workpiece is retracted,
use G42. When creating a program, always program movements for two or more times the
chamfering value in a process before chamfering (see Fig. 1). It is not necessary to take the
imaginary nose point P into consideration in these cases. See "Machining-programming example"
for a description of the programming method.
Chapter 22-3 Nose-rounding offset data-entry procedure
Following is the procedure to enter the data for a tool having the nose shape shown below in
the Nose-R window.

1) Press the key.


2) Press the T-ofs menu key at the bottom of the screen.

3) Press the Nose data menu key (function selection key).

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

Entry field of the offset value

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.

Then, press the key.

The tool offset is completed.


Chapter 22-4 Machining-programming Example

Program without nose-


Program with nose-rounding offset
rounding offset

Retreats Z-axis by at least twice the nose-


G0 Z-0.2; G0 Z-0.6;
rounding amount to perform nose-rounding

X#108; X#108;

G0 Y#503 T303; G0 Y#503 T303;


Lower the X-axis by at least twice the nose-
G0 X3.2;
rounding amount

G0 X4.0; G41; Nose-rounding offset left-hand mode ON


Nose-rounding offset applies
G1 X4.0 Z-0.2 F0.04;
(machining starts)
G1 X5.0 Z0.3 F0.04; X5.0 Z0.3 F0.04;

Z5.0 F0.04; Z5.0 F0.04;

X9.6 F0.04; X9.6 F0.04;

X10.0 Z5.2 F0.03; X10.0 Z5.2 F0.03;

Z13.0 F0.04; Z13.0 F0.04;

G0 X#108 (G0 X60.0);

G40; Nose-rounding offset cancel OFF


Changing the offset No. using one tool

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

G0 X#108 (GO X60.0);


G40; Nose-rounding offset mode OFF
G0 W-1.0;
T3030; Offset No. select
G41; Nose-rounding offset mode ON
Chapter 23 Cross drill position
For T13, the center of the cross drill spindle is located 15 mm to the right from the Z-axis reference
line (Z0) as shown in the figure below (when $1 B axis is equal to zero degree). For T11, T12, T13,
T14, it is located 15 mm to the right.

[NOTE] In machining, consider zero position when moving Z-axis.


The position of ENDMILL and Milling cutters are –15.0 mm (radius) away from the Z-axis
reference line (Z0.0).

(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

 C-axis command format

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

G99, G98 Feed rate


G98; Feed rate per minute [mm/min]
G99; Feed rate per rotation [mm/rev]

* In G99
If Rotary command 2500rpm / Feed rate F0.05,
G98 equals to
F = Tool speed × Feed rate = 2,500×0.05=125

F = Tool speed × Feed rate = 2,500×0.05 = 125


Chapter 24 C-axis command by ENDMILL

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

V18.0; Raise the Y-axis 9.0mm


X8.0; Moves the X-axis to 8.0mm position
G1 V-36.0 F100 Lowers the Y-axis –18.0mm at specified feed rate
G0 X14.4; Return X-axis to the workpiece dia. (∅10.0+4.4=14.4) position
V36.0; Moves the Y-axis at the rapid-traverse rate
G0 C180.0; C-axis angle 180°
X8.0; Moves the X-axis to the 8.0mm position
G1 V-36.0 F100; Lowers the Y-axis –18.0mm at specified feed rate
G0 X60.0; Returns the X-axis to the zero position (X60.0)

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;

!L1; Synchronous standby ↔ !L1


Synchronous standby
(Sub) (Main)
G114.1 H1 D2 (R0);
G0 Z□□ F0.3 (M26);
G1 Z□□ F0.3 M237;
M218;
G4 U0.2;

!L2; Synchronous standby ↔ !L2;


Synchronous standby
(Sub) (Main)
G1 X-□.□ F□□□;

!L3; Synchronous standby ↔ !L3;


Synchronous standby
(Sub) (Main)
G113;
G28 W0.0 M205;

!L4; Synchronous standby ↔ !L4;


Synchronous standby
(Sub) (Main)
Final cutting position of
X-#103 F□□□; M99;
X-axis
M21; Counter UP
M99; End

 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

H: Standard spindle = $1 spindle


D: Synchronous spindle = $2 spindle

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).

Purposes of dwell usage


1) The speeds of the main and backside spindles can be completely synchronized during cut-
off machining.
2) The main and backside spindles can be started simultaneously to execute bite screw
thread.

Machining-program example (cut-off)


$1; $2
G50 Z0.; G28 W0;
G0 Z-2.0; G28 V0;
↓ G28 U0;
G0 Y#505 T505 M3 S1=3000; G50 X252.0 Y0 Z0;
X#102 Z#145; G0 Y#531 X#631 T3131 M204 S2=3000;

G28 V0;
!L1; !L1
Main spindle synchronizing
G114.1 H1 D2;
ON
G0 Z□□□ M203; $2 spindle normal rotation
G1 Z□□□ F0.3 M237;
M218;
G4 U0.3;
!L2; !L2;
G1 X-0.8 F0.04;
!L3 !L3;
Main spindle synchronizing
G113;
cancel
G0 Z0 M205;
!L4 !L4;
M21; M99;
M99;
Chapter 28 Control-Axis Synchronous Function (Z1 vs Z2)
The $2 axis (backside Z-axis) can be moved in the parallel direction in synchronization with the $1
axis (Z-axis), with the $1 axis as the standard axis, by specifying the control-axis synchronous
command.
Using this function, the main-side ($1) Z-axis and backside ($2) Z-axis can be simultaneously
controlled during rounding on the cut-off side, screw thread, etc.
Command format
$1 standard synchronous command
M42: Control-axis synchronous-control command ON (Z1: Standard axis = $2 Z)
M40: Control-axis synchronous-control command OFF

$2 standard synchronous command


M242: Control-axis synchronous-control command ON (Z2: Standard axis = $1 Z)
M240: Control-axis synchronous-control command OFF

The control-axis synchronous command is entered in the $2 backside machining program, as in


the case of the spindle synchronous-control command.
The $2 Z-axis moves backward (negative direction) when the $1 Z-axis moves forward (positive
direction).

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

 The reference point of B-axis:


The distance between the center of guide bush to the center of B-axis is 76.0mm;
i.e., ∅152.0.
If search for B-axis coordination, draw an angle 76.00 mm away from the center.
Chapter 29-1 Main $1 / Sub $2 B-axis Move range

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

 The reference point of B-axis $2 is:


239.0 mm away from the center of the sub spindle.
If a tool is attached 25.00 mm, the center of arc becomes 100.5 mm.
Based on this point, move to the desired angle of a tool attached in order to obtain a
coordination.
Practical Examples for Programming

1-1 G92 Normal Screw thread

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)

Straight 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
1-1-1 G92 Normal Screw thread (Example-1)

Tool No. Type RPM FEED Machining length G GODE


G0 Y#504 T0404 Thread 1,000 0.8 10 G92

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)

Taper angle 1.79°

Tool No. Type RPM FEED Machining length G GODE


G0 Y#504 T0404 Thread 1,000 0.907 10.0 G92

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)

Tool No. Type RPM FEED Machining length G GODE


Thread 1,000 5.0 10.0 G92
G0 Y#504 T0404 4th start
thread

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)

Tool No. Type RPM FEED Machining length G GODE


Thread 1,000 0.8 10 G92
G0 Y#504 T0404 Left
CCW
Holder

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)

45° Backward . 90° Backward .

M13 ON (If set-up) M14 ON (Standard)

Tool No. Type RPM FEED Machining length G GODE


G0 Y#504 T0404 Thread 1,000 1.5 10 G92

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

α : Depth of cut in screw thread


is set by parameter [#8014 number of
chamfering ].
Setting range = 0~12.7 lead.
Can be set in 0.1 lead value

θ : Angle of cut in screw thread


is set by parameter [#8015 angle of
chamfering].
Setting range = 0~89°.
Can be set in 1° value

(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)

Machining motion in #1270 ext06/bit4-1.


Chambering
End point

Cycle starting point

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.

Error No. Content Treat

Denies thread lead Check the value of F/E, K


and correct the setting.
(1) In screw thread command, the value of
P93 F/E, K is incorrect.
(2) End lead is exceeded from the
command range of F/E.
LL : Final lead
NP: Number of Pitch
2-1-1 Variable lead screw thread G34 (Example-1)

(F) Lead speed

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.,

G76 P 01(m) 10(r) 60(a) Q0.4 R0.02


G76 X4.6 Z10.0 P0.7 Q0.2 F1.0
3-1-1 G76 Screw thread (Example-1)

Tool No. Type RPM FEED Machining length G GODE


Thread 1,000 1.0 10.0 G76
G0 Y#504 T0404
G76

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°)

 이동 경로 및 가공 형상

Straight Scroll Continuous

 Starting point of Q
1st rotation synchronizing signal

Screw thread starting

point
4-1-1 G32 Screw thread (Example-1)

Tool No. Type RPM FEED Machining length G GODE


G0 Y#504 T0404 Thread 1,000 2.25 20.25 G32

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;

Sub program (Call M98)


N1. O0001; O0002; O0003;
N2. U-0.05; U-0.02; U-0.01;
N3. G32 U-9.0 W2.25 F2.25; G32 U-9.0 W2.25 F2.25; G32 U-9.0 W2.25 F2.25;
N4. Z20.25; Z20.25; Z20.25;
N5. U4.5 W2.25; U4.5 W2.25; U4.5 W2.25;
N6. U4.5; U4.5; U4.5;
N7. G0 Z-4.5; G0 Z-4.5; G0 Z-4.5;
N8. M99; M99; M99;
5-1 Front drill machining (G83)

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

(1) Approach distance to ‘n’ is set by #8013.


(#8013=0.2) --> n value 0.2 backward position

(2) Without Q command, machining ends after the 1st cutting.


5-1-1 G83 Drill machining (Example-1)

Processed material

Tool No. Type RPM FEED Machining length G GODE


G0 Y#504 T0404 Thread 1,000 2.25 20.25 G32

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

[NOTE] Without an A command, use parameter #8013 set-up value.

 Details

Q : Dwelling time at the hole bottom


J : Dwelling time from the return position
In a single block motion, block stops after the 2nd drill cycle command is completed.
5-2-1 G79 Drill machining (Example-1)

Tool No. Type RPM FEED Machining length G GODE


Y#522 X#622 T2222 Thread 2,000 0.03 2.0 G1
Y#523 X#623 T2323 DRILL 2,000 0.03 20.0 G83

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

Division Tap normal-rotation Tap reverse-rotation


$1 (Main) G84 G84.1
$2 (Sub) G84.1 G84

$1 (MAIN) G84.1
Left thread machining
$2 (SUB) G84

[NOTE]
When using Synchronous type (R1) and Asynchronous type (R0),

: Synchronous type (R1)


When the preparatory hole depth of the tap is insufficient, the synchronous type (R1) tapping
cycle is recommended

: Asynchronous type (R0)


When the preparatory hole depth of the tap is sufficient, the asynchronous type (R0) tapping
cycle, which uses a tap holder, is recommended from standard of cycle time.
6-2-1 G84 Tap Cutting (Example-1) <Synchronizing R1>

Tool No. Type RPM FEED Machining length G GODE


Y#521 X#621 T2121 Center 2,000 0.03 2.0 G1
Y#522 X#622 T2222 DRILL 2,000 0.03 20.0 G79
Y#523 X#623 T2323 TAP 600 1.0 10.0 G84

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.

 Using Tap Holder (Asynchronous type R0)

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)

Tool No. Type RPM FEED Machining length G GODE


ENDMILL
Y#611 T1111 3,000 300 Y20.2 G1
∅8.0
G/B --> T11 = distance to the
M83 G98
center 15.0mm

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)

Tool No. Type RPM FEED Machining length G GODE


Y#613 T1313 Center 3,000 300 6 G1
Y#614 T1414 Drill 3,000 300 20 G79
Y#615 T1515 Tap 1,000 80 20 G88

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)

Tool No. Type RPM FEED Machining length G GODE


X#610 Y#510 T1010 Center 3,000 300 6 G1
X#611 Y#511 T1111 Drill 3,000 300 20 G79
X#612 Y#512 T1212 Tap 1,000 80 20 G84

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

The function enables programming of a cylindrical shape in a flat surface. Therefore,


the function is effective in cylindrical cam and other similar machining.
Also, the function processes machining on the side of a cylinder (such as grooving) in
between rotary axes by the programming commands.

A is workpiece ‘2πr.’ i.e., if external diameter of a workpiece is ∅10.0, the A value


equals to 10.0 × 3.14 = 31.4
 Details

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)

Tool No. Type RPM FEED Machining length G GODE


Y#617 T1717 Center 2,500 100 G07.1
3.14 * 10(material ∅) = 31.4 360 / 10 = 36° (starting angle)

■ 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)

Tool No. Type RPM FEED Machining length G GODE


Y#617 T1717 Center 2,500 100 G07.1
3.14 * 10(material ∅) = 31.4 360 / 10 = 36° (starting angle)

■ 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)

Tool No. Type RPM FEED Machining length G GODE


Y#616 T1616 Center 2,500 100 G2

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)

Tool No. Type RPM FEED Machining length G GODE


Y#613 T1313 Center 2,500 100 G2

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)

Tool Path R5.0 = K value

Tool No. Type RPM FEED Machining length G GODE


Y#616 T1616 ENDMILL 2,500 50 K G2

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

Pocketing OFF (H0) Pocketing ON (H1)

(R) Rapid-traverse / (F) Feed rate / (S) cycle command point


/ (A) Rough starting point
9-1-1 G70, G71 Rough Program Example

Tool No. Type RPM FEED Machining length G GODE


Y#503 T0303 Turing 3,000 0.05 11.0 G70/G71

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

Tool No. Type RPM FEED Machining length G GODE


Y#536 T3636 DRILL 3,000 F150 12.0 mm G1
Y#537 T3737 ENDMILL 6.0 2,000 F150 15*4 mm G1
Y#538 T3838 TAP M3 600 F0.8 13.0 mm G88

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

Tool No. Type RPM FEED Machining length G GODE


Y#533 X#633 T3333 Drill 2,500 F150 G83
Y#534 X#634 T3434 ENDMILL 3.0 600 F0.8 G84
Y#535 X#635 T3535 Tap 3,000 F100 G12.1

Polar Coordinates Machining process


Example program
N1. (CROSS-ENDMILL 3.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; Change X-axis coordinate-system
N8. G50 W-85.0; Change z-axis coordinate-system
N9. G0 Z-1.0;
N10.
N11. G1 Z0.5 F100;
N12. X-2.0;
N13. G1 Z-1.0 F2000;
N14.
N15. G12.1; Polar coordinates mode ON
N16.
N17. G0 X8.0 C0.0; Rapid traverse by X8.0mm
N18.
N19. G1 Z0.5 F100; Process Polar coordinate machining
N20. G3 X6.98 C0.5 R0.5 F100;
N21. G2 X3.1 C3.16 R2.0;
N22. G3 X1.22 C3.5 R0.5;
N23. G2 X-1.6 C2.5 R1.5;
N24. G1 X-5.66;
N25. G3 X-6.66 C2.0 R0.5;
N26. G1 C-2.0;
N27. G3 X-5.66 C-2.5 R0.5;
N28. G1 X-1.6;
N29. G2 X1.22 C-3.5 R1.5;
N30. G3 X3.1 C-3.16 R0.5;
N31. G2 X6.98 C-0.5 R2.0;
N32. G3 C0.5 R0.5;
N33. G13.1; Polar coordinate mode OFF
N34. G1 Z-2.0 F1000; Backward Z-2.0
N35. G0 X0.0; Position coordinate-system setting
Coordinate-system setting (return to the
N36. G50 X#635;
reference position)
N37. G50 W85.0; Z-axis coordinate-system setting
N38. G28 W0.0; Return Z-axis to the reference position
N39. T00; OFFSET cancel
N40. ;
N41. (CROSS FRONT DRILL)
N42. G98;
N43. G28 C0.0;
N44. G0 Y#533 X#633 T3333 M283 S4=2500; Call T33 tool
N45. G50 W-85.0;
N46. G50 X0.0 Y0.0; Change X-, Y-axis coordinate-system setting
N47. G0 X6.66 Y2.16; Move drill to the machining point
N48. G0 Z-1.0;
N49. G1 Z1.0 F0.05;
N50. G0 Z-1.0;
N51. G83 Z15.0 Q2000 P100 F150; Q-Depth of cut per round, P-wait, F-cutting speed
N52. G80; Release Drill cycle
N53. G50 W85.0;
N54. G50 Y#533 X#633; T33 X, Y common variable coordinate-system setting
N55. G28 W0.0;
N56. M285; Cross rotation stop
N57. T00;
N58. ;
N59. (CROSS TAP);
N60. G98;
N61. G28 C0.0;
N62. G0 Y#534 X#634 T3434 M283 S4=600;
N63. G50 W-85.0;
N64. G50 X0.0 Y0.0; Change X-, Y-axis coordinate-system setting
N65. G0 X6.66 Y2.16;
N66. G0 Z-0.8;
F-PITCH, D4-$2 rotation range, R1-synchronous
N67. G84 Z10.0 F0.8 D4 ,R1;
type
N68. G80; Release TAP cycle
N69. G0 Z-2.0;
N70. G50 W85.0;
T34 X, Y common variable coordinate-system
N71. G50 Y#534 X#634;
setting
N72. G28 W0.0;
N73. M285; Cross rotation stop
N74. M225; C-axis control OFF
N75. T00 OFFSET cancel
N76.
N77.
N78.
N79.
Chapter 2-3 $2 Sub Helical Example

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

Tool No. Type RPM FEED Machining length G GODE


Y#504 T0404 TURNING 3,000 F0.05 60.0mm G1

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

Tool No. Type RPM FEED Machining length G GODE


Y#516 T1616 ENDMILL 1,500 38.0 mm G1

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

■ $1, $2 Tool Lay-out

■ 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)

You might also like