TNC 360 Iso
TNC 360 Iso
TNC 360 Iso
User's Manual
ISO Programming
February 1994
TNC 360
50
Feed rate
150
F %
0
100
Spindle speed
50
150
Polar radius/
Rounding radius with G25, G26, G27
Chamfer with G24
Circle radius with G02, G03, G05
Tool radius with G99
S %
0
TOUCH
PROBE
Programming Modes
PROGRAMMING AND EDITING
TEST RUN
Program and File Management
PGM
NR
CL
PGM
PGM
CALL
EXT
...
IV
...
Numbers
Decimal point
+/
Algebraic sign
Actual position capture
MOD
Supplementary modes
NO
ENT
ENT
END
Conclude block
Graphics
MOD
CE
DEL
BLK
FORM
MAGN
Magnify detail
START
TNC Guideline:
From workpiece drawing to
program-controlled machining
Step
Task
TNC
operating mode
Refer to
Section
Preparation
1
Select tools
11.4
Switch on machine
1.3
Clamp workpiece
7a
or
2.5
7b
or
2.3
or
1.3, 2.1
or
EXT
5 to 8
or 10
3.1
10
3.2
If necessary: Optimize
part program
5 to 8
11
3.2
Key/Function
4.4
PGM
NR
G30/G31
4.4
G99
T...
L...
R...
4.2
T...
4.2
G17
S...
G00
G40
X... Y... Z...
M06
e.g. 5.4
5.2/5.4
G00
X... Y...
G40
M03
5.4
G00
Z...
5.2/5.4
G01
G41/G42
X... Y...
F...
Refer to Section
5 to 8
5.2/5.4
G00
G40
X... Y...
M05
5.2/5.4
G00
Z...
M02
This manual describes all available TNC functions. However, since the
machine builder has modified (with machine parameters) the available
range of TNC functions to interface the control to his specific machine,
this manual may describe some functions which are not available on your
TNC.
TNC functions which are not available on every machine are, for example:
Probing functions for the 3D touch probe system
Rigid tapping
If in doubt, please contact the machine tool builder.
TNC programming courses are offered by many machine tool builders as
well as by HEIDENHAIN. We recommend these courses as an effective
way of improving your programming skill and sharing information and
ideas with other TNC users.
TNC 360
The TNC beginner can use the manual as a workbook. The first part of
the manual deals with the basics of NC technology and describes the
TNC functions. It then introduces the techniques of conversational
programming. Each new function is thoroughly described when it is first
introduced, and the numerous examples can be tried out directly on the
TNC. The TNC beginner should work through this manual from beginning
to end to ensure that he is capable of fully exploiting the features of this
powerful tool.
For the TNC expert, this manual serves as a comprehensive reference
work. The table of contents and cross references enable him to quickly
find the topics and information he needs. Easy-to-read dialog flowcharts
show him how to enter the required data for each function.
The dialog flow charts consist of sequentially arranged instruction boxes.
Each key is illustrated next to an explanation of its function to aid the
beginner when he is performing the operation for the first time. The
experienced user can use the key sequences illustrated in the left part of
the flowchart as a quick overview. The TNC dialogs in the instruction
boxes are always presented on a gray background.
ENT
+/
.
.
.
TNC 360
TNC 360
ISO Programming
Introduction
Manual Operation and Setup
Test Run and Program Run
Programming
Programming Tool Movements
Subprograms and Program Section Repeats
Programming with Q Parameters
Cycles
External Data Transfer
MOD-Functions
Tabels, Overviews and Diagrams
1
2
3
4
5
6
7
8
9
10
11
Introduction
1.1
1.2
1.3
1.4
1.5
TNC 360
2.1
2.2
2.3
2.4
2.5
Setting the Datum with the 3D Touch Probe System .................... 2-14
Setting the datum in a specific axis .......................................................................... 2-14
Corner as datum ........................................................................................................ 2-15
Circle center as datum .............................................................................................. 2-17
2.6
TNC 360
3.1
3.2
3.3
TNC 360
Programming
4.1
4.2
4.3
4.4
4.5
4.6
4.7
TNC 360
5.1
5.2
5.3
5.4
5.5
5.6
5-28
5-28
5-28
5-30
5-32
5-33
5.7
TNC 360
6.1
6.2
6.3
6.4
TNC 360
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
TNC 360
Cycles
8.1
8.2
8.3
8.4
8.5
TNC 360
9.1
9.2
Pin Layout and Connecting Cable for Data Interfaces ...................... 9-3
RS-232-C/V.24 Interface .............................................................................................. 9-3
9.3
TNC 360
10
MOD Functions
TNC 360
11
TNC 360
Introduction
1-2
TNC 360
Introduction
1.1
Program selection
Address letters
RND
CR
PGM
CALL
CL
PGM
PGM
NR
CT
DEL
TOUCH
PROBE
EXT
CC
ENT
GOTO
IV
+/
CE
Q
DEF
Numerical entries
Axis selection
END
Address letters
STOP
CYCL
DEF
CYCL
CALL
LBL
SET
LBL
CALL
NO
ENT
TOOL
DEF
TOOL
CALL
R-L
R+R
MOD
BLK
FORM
NO ENT key
Tool-related address letters
GRAPHICS
MAGN
Graphic operating
modes
100
150
50
Operating modes
START
100
S%
Override controls
for spindle speed
and feed rate
150
50
F%
MOD
HEIDENHAIN
The functions of the individual keys are described on the inside front cover. An overview
of the address letters used for ISO programming is provided in Chapter 11.
for NC start, are described in the manual for your machine tool.
The Screen
Brightness control
(BE 212 only)
Header
The header of the screen shows the selected operating mode. Dialog
questions and TNC messages also appear there.
TNC 360
1-3
Introduction
1.1
Screen Layout
MANUAL and EL. HANDWHEEL operating modes:
Coordinates
Selected axis
means:
control is in
operation
Status display,
e.g. feed rate F,
miscellaneous
function M
Section of
selected
program
Status display
The screen layout is the same in the operating modes PROGRAM RUN,
PROGRAMMING AND EDITING and TEST RUN. The current block is
shown between two horizontal lines.
1-4
TNC 360
Introduction
1.1
TNC Accessories
3D Touch Probe Systems
The TNC features the following functions for the
HEIDENHAIN 3D touch probe systems:
Automatic workpiece alignment (compensation
of workpiece misalignment)
Datum setting
Measurements of the workpiece can be performed during program run
Digitizing 3D forms (optional, only available with
HEIDENHAIN plain language dialog programming)
The TS 120 touch probe system is connected to the
control via cable, while the TS 510 communicates
by means of infrared light.
Fig. 1.5:
Fig. 1.6:
Fig. 1.7:
Electronic Handwheels
Electronic handwheels provide precise manual
control of the axis slides. As on conventional
machines, turning the handwheel moves the axis
by a defined amount. The traverse distance per
revolution of the handwheel can be adjusted over a
wide range.
Portable handwheels, such as the HR 330, are
connected to the TNC by cable. Built-in handwheels, such as the HR 130, are built into the
machine operating panel.
An adapter allows up to three handwheels to be
connected simultaneously. Your machine tool
builder can tell you more about the handwheel
configuration of your machine.
TNC 360
1-5
Introduction
What is NC?
The part program
Programming
Reference system
Cartesian coordinate system
Additional axes
Polar coordinates
Setting the pole
Datum setting
Absolute workpiece positions
Incremental workpiece positions
Programming tool movements
Position encoders
Reference mark evaluation
What is NC?
NC stands for Numerical Control. Simply put, numerical control is the
operation of a machine by means of coded instructions. Modern controls
such as the HEIDENHAIN TNCs have a built-in computer for this purpose.
Such a control is therefore also called a CNC (Computer Numerical
Control).
Programming
The TNC is programmed in the ISO format; some programming sections,
however, are guided by dialog prompting. The single commands (words)
can be entered in any sequence within a block (except G90/G91). The TNC
automatically sorts the single commands as soon as the block is concluded.
1-6
TNC 360
Introduction
1.2
Fundamentals of NC
Reference system
In order to define positions one needs a reference system. For example,
positions on the earth's surface can be defined "absolutely" by their
geographic coordinates of longitude and latitude. The term "coordinate"
comes from the Latin word for "that which is arranged", i.e. dimensions
used for determining or defining positions. The network of horizontal and
vertical lines around the globe constitutes an "absolute reference system"
in contrast to the "relative" definition of a position that is referenced, for
example, to some other, known location.
60
Greenwich
30
0
30
60
90 0 90
Fig. 1.8:
+Y
+Z
+X
+Z
+X
+Y
Fig. 1.9:
TNC 360
1-7
Introduction
1.2
Fundamentals of NC
Additional axes
The TNC can control machines that have more than three axes. U, V and
W are secondary linear axes parallel to the main axes X, Y and Z, respectively (see illustration). Rotary axes are also possible. They are designated
as axes A, B and C.
Y
B+
C+
W+
V+
A+
U+
Fig. 1.10:
Polar coordinates
The Cartesian coordinate system is especially
useful for parts whose dimensions are mutually
perpendicular. But when workpieces contain
circular arcs, or when dimensions are given in
degrees, it is often easier to use polar coordinates.
In contrast to Cartesian coordinates, which are
three-dimensional, polar coordinates can only
describe positions in a plane.
The datum for polar coordinates is the pole I, J, K.
To describe a position in polar coordinates, think of
a scale whose zero point is rigidly connected to the
pole but which can be freely rotated in a plane
around the pole.
Positions in this plane are defined by:
Y
R
R
H2
H3
R
H1
J = 10
I = 30
Fig. 1.11:
1-8
TNC 360
Introduction
1.2
Fundamentals of NC
I, J
J, K
K, I
+X
+Y
+Z
0
I
Fig. 1.12:
Z
Setting the datum
The workpiece drawing identifies a certain prominent point on the workpiece (usually a corner) as the "absolute datum" and perhaps one or more
other points as relative datums. The process of datum setting establishes
these points as the origin of the absolute or relative coordinate systems:
The workpiece, which is aligned with the machine axes, is moved to a
certain position relative to the tool and the display is set either to zero or
to another appropriate position value (e.g. to compensate the tool radius).
Y
X
Fig. 1.13:
TNC 360
1-9
Introduction
1.2
Fundamentals of NC
Example:
250
125
216,5
-250
-216,5
-125
216,5
125
250
1225
-125
-216,5
-250
150
0
320
-150
0
3000,1
750
900
950
700
450
325
Example:
Y
X
1
5
10
Fig. 1.15:
1-10
TNC 360
Introduction
1.2
Fundamentals of NC
Y
15
m
X=20m
X
m
10
Y=
Z=15mm
10
20
Fig. 1.16:
2
20
IY
=1
0m
IX=10
mm
15
10
IZ=15mm
X
5
10
10
0
0
Fig. 1.17:
Y
G91R
R
G91H
G91H
J = 10
I = 30
Fig. 1.18:
TNC 360
1-11
Introduction
1.2
Fundamentals of NC
Example:
Workpiece drawing with coordinate dimensioning
(according to ISO 129 or DIN 406, Part 11; Figure 179)
3.5
3.4
3.3
3.6
3.2
r
3.7
3.1
3.8
2.1
3.9
2.2
3.10
Y2
3.12
3.11
1.3
2.3
X2
1.1
1.2
Y1
1
X1
Dimensions in mm
Coordinate
origin
1
1
1
1
1
1
2
2
2
3
3
3
3
3
3
3
3
3
3
3
3
1-12
Coordinates
Pos.
X1 X2
1
1.1
1.2
1.3
2
3
2.1
2.2
2.3
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.12
0
325
900
950
450
700
300
300
300
Y1 Y2
0
320
320
750
750
1225
150
0
150
250
250
250
250
250
250
250
250
250
250
250
250
0
30
60
90
120
150
180
210
240
270
300
330
120
120
200
200
400
50
50
50
26
26
26
26
26
26
26
26
26
26
26
26
H7
H7
H7
H7
H8
H11
H11
H11
TNC 360
Introduction
1.2
Fundamentals of NC
+Z
+Y
+X
If the machine table moves in one or several axes, the corresponding axes
are designated on the machine operating panel with a prime mark (e.g. X,
Y). When an axis is designated with a prime mark, the programmed
direction of axis movement is the opposite direction of tool movement
relative to the workpiece.
Fig. 1.20:
Position encoders
The position encoders linear encoders for linear axes, angle encoders for
rotary axes convert the movement of the machine axes into electrical
signals. The control evaluates these signals and constantly calculates the
actual position of the machine axes.
Fig. 1.21:
Fig. 1.22:
Reference marks
The scales of the position encoders contain one or more reference marks.
When a reference mark is passed over, it generates a signal which
identifies that position as the machine axis reference point.
With the aid of these reference marks the TNC can re-establish the
assignment of displayed positions to machine axis positions.
If the position encoders feature distance-coded reference marks, each
axis need only move a maximum of 20 mm (0.8 in.) for linear encoders,
and 20 for angle encoders.
TNC 360
1-13
Introduction
1.3 Switch-On
Switch on the power supply for the TNC and machine. The TNC then
begins the following dialog:
MEMORY TEST
The TNC memory is automatically checked.
POWER INTERRUPTED
Message from the TNC indicating that the power was interrupted.
Clear the message.
CE
MANUAL OPERATION
TRAVERSE REFERENCE POINTS
To cross over the reference marks in the displayed sequence:
Press the machine START button for each axis.
, ...
1-14
TNC 360
Introduction
MOD
ENT
Confirm selection.
Plan view
In this mode, contour height is shown by image brightness.
The deeper the contour, the darker the image.
Number of depth levels: 7
This is the fastest of the three display modes.
Fig. 1.23:
TNC 360
1-15
Introduction
1.4
Fig. 1.25:
Fig. 1.26:
Rotated 3D view
3D view
This mode displays the simulated workpiece in
three-dimensional space.
1-16
TNC 360
Introduction
1.4
Fig. 1.27:
GRAPHICS
MAGN
Magnify detail.
Details can be magnified in any display mode. The abbreviation MAGN appears on the screen to indicate that the
image is magnified.
TNC 360
1-17
Introduction
1.4
Status Display
The status display in a program run operating mode
shows the current coordinates as well as the
following information:
Fig. 1.28:
Bar graphs can be used to indicate analog quantities such as spindle speed and feed rate in the status display. These
bar graphs must be activated by the machine tool builder.
1-18
TNC 360
Introduction
1.5 Programs
The TNC 360 can store up to 32 part programs at once. The part programs
can be written in HEIDENHAIN plain language dialog or according to ISO.
ISO programs are indicated with ISO.
Each program is identified by a number with up to eight characters.
Program directory
The program directory is called with the PGM NR
key. To erase programs in the TNC memory, press
the CL PGM key.
Action
Mode of
operation
Call program
directory with...
Create (a program)
...
PGM
NR
Edit
...
PGM
NR
Erase
...
CL
PGM
Test
...
PGM
NR
Execute
...
PGM
NR
Fig. 1.29:
Fig. 1.30:
TNC 360
1-19
Introduction
1.5
Programs
PGM
NR
PROGRAM NUMBER ?
Use the arrow keys to highlight the program.
or
1 5
ENT
To erase a program:
CL
PGM
or
NO
ENT
or
ENT
To protect a program:
PGM
NR
PROGRAM NUMBER = ?
e.g.
ENT
ENT
END
1-20
TNC 360
Introduction
1.5
Programs
0 BEGIN 5 MM P
Select MOD functions.
MOD
VACANT BYTES =
Activate the CODE NUMBER function.
repeatedly
CODE NUMBER
TNC 360
6 3 5
1-21
Press the machine axis direction button and hold it for as long as you wish
the axis to move.
Press and hold the machine axis direction button, then press the machine
START button. The axis continues to move after you release the keys.
together
You can only move one axis at a time with this method.
2-2
TNC 360
2.1
e.g.
ENT
Now move the selected axis with the electronic handwheel. If you are
using the portable handwheel, first press the enabling switch on its back.
Interpolation
factor
Traverse in mm per
revolution
0
1
2
3
4
5
6
7
8
9
10
20.000
10.000
5.000
2.500
1.250
0.625
0.312
0.156
0.078
0.039
0.019
Fig. 2.1:
Fig. 2.2:
The smallest programmable interpolation factor depends on the individual machine tool.
Positioning with the electronic handwheel can also be carried out in the operating mode PROGRAMMING AND
EDITING (depending on MP7641).
TNC 360
2-3
2.1
8
Fig. 2.3:
16
ELECTRONIC HANDWHEEL
INTERPOLATION FACTOR:
ELECTRONIC HANDWHEEL
JOG-INCREMENT:
e.g.
e.g.
ENT
2-4
TNC 360
Fig. 2.4:
S
N10 S
e.g.
1 0 0
END
TNC 360
2-5
2.2
N10 M
e.g.
ENT
150
0
S%
The spindle speed override will function only if your machine tool is equipped with a stepless spindle drive.
150
0
2-6
F%
TNC 360
Ensure that the TNC is showing actual position values (see p. 10-4).
X
Fig. 2.5:
e.g.
DATUM SET
e.g.
e.g.
TNC 360
Z=
5 0
For a zero tool: Set the display to Z = 0 or enter thickness d of the shim.
ENT
ENT
For a preset tool: Set the display to the length L of the tool,
for example Z=50 mm, or enter the sum Z=L+d.
2-7
2.3
Y
1
Y
R
R
1
Fig. 2.6:
2
Setting the datum in the working plane; plan view (upper
right)
Move the zero tool until it touches the side of the workpiece.
e.g. +/
e.g.
ENT
Enter the position of the tool center (here X = 5 mm) in the selected axis.
Be careful to enter the correct algebraic sign.
2-8
TNC 360
The TNC must be specially prepared by the machine tool builder for the use of a 3D touch probe.
After you press the machine START button, the touch probe begins
executing the selected probe function. The machine tool builder sets the
feed rate F at which the probe approaches the workpiece. When the 3D
touch probe contacts the workpiece, it
transmits a signal to the TNC, which stores the coordinates of the
probed position
stops moving
returns to its starting position in rapid traverse
F max
Fig. 2.8:
TNC 360
2-9
2.4
for commissioning
after a stylus breaks
when the stylus is changed
when the probe feed rate is changed
in case of irregularities, such as those resulting from machine heating.
During calibration, the TNC finds the effective length of the stylus and
the effective radius of the ball tip. To calibrate the 3D touch probe,
clamp a ring gauge with known height and known internal radius to the
machine table.
Y
5
X
To calibrate the effective length
Fig. 2.9:
Set the datum in the tool axis such that for the machine tool table, Z=0.
TOUCH
PROBE
SURFACE = DATUM
ENT
e.g.
Move the touch probe to a position just above the ring gauge.
or
2-10
The 3D touch probe contacts the upper surface of the ring gauge.
TNC 360
2.4
10
X
Fig. 2.10:
TOUCH
PROBE
SURFACE = DATUM
ENT
Y+
Y
Select RADIUS RING GAUGE.
4x
ENT
The 3D touch probe contacts one position on the bore for each axis
direction.
TNC 360
2-11
2.4
PA
A
Fig. 2.11:
TOUCH
PROBE
Basic rotation of a workpiece, probing procedure for compensation (right). The dashed line is the nominal position;
the angle PA is being compensated.
SURFACE = DATUM
Select the BASIC ROTATION probe function.
ENT
BASIC ROTATION
X+
X-
Y+
ROTATION ANGLE =
e.g.
ENT
Move the ball tip to a starting position A near the first touch point 1 .
X+
Y+
or
Y
Select the probing direction.
Move the ball tip to a starting position B near the second touch point 2 .
2-12
TNC 360
2.4
Fig. 2.12:
ROTATION ANGLE =
ENT
END
TNC 360
2-13
Z
1
Fig. 2.13:
SURFACE = DATUM
X+
e.g.
2-14
Y+
Z+
or
Select the probing direction and the axis in which you wish to set the datum,
for example Z in the Z direction.
ENT
TNC 360
2.5
Corner as datum
Y
4
Y=?
X=?
Fig. 2.14:
2
1
To use the points that were just probed for a basic rotation:
TOUCH POINTS OF BASIC ROTATION?
Transfer the touch point coordinates to memory.
ENT
Move the touch probe to a starting position near the first touch point on the side that was not probed for basic
rotation.
CORNER = DATUM
X+
Y+
Y
Select the probing direction.
or
Move the touch probe to a starting position near the second touch point on the same side.
DATUM X =
e.g.
ENT
Enter the first coordinate of the datum, for example in the X axis.
.
.
.
TNC 360
2-15
2.5
.
.
.
Select the second coordinate.
DATUM Y =
e.g.
ENT
END
Enter the second coordinate of the datum, for example in the Y axis.
If you do not wish to use points that were just probed for a basic rotation:
TOUCH POINTS OF BASIC ROTATION?
NO
ENT
2-16
TNC 360
2.5
The TNC automatically probes the inside wall in all four coordinate axis
directions.
For incomplete circles (circular arcs) you can choose the appropriate
probing direction.
Y+
10
X
X+
Y
8
Fig. 2.15:
Y+
4x
DATUM X =
e.g.
Enter the first coordinate of the circle center, for example in the X axis.
ENT
DATUM Y =
e.g.
1 0
END
TNC 360
ENT
Enter the second coordinate of the circle center, for example in the Y axis.
2-17
2.5
Outside circle
Y
Y
X+
X
2
1
Y+
X
Fig. 2.16:
Y+
or
Y
Select the probing direction.
Repeat the probing process for points 2 , 3 and 4 (see Fig. 2.16).
Enter the coordinates of the circle center.
After the probing procedure is completed, the TNC displays the coordinates of the circle center and the circle radius PR.
2-18
TNC 360
SURFACE = DATUM
X+
Y+
or
Z+
Z
Select the probing direction and the axis in which you wish to find the
coordinate.
TNC 360
2-19
2.6
Z
X
Fig. 2.17:
SURFACE = DATUM
X+
Y+
Z+
or
If you will need the current datum later, write down the value that appears in the DATUM display.
DATUM X =
ENT
END
.
.
.
2-20
TNC 360
2.6
.
.
.
SURFACE = DATUM
X+
Y+
Z+
or
The value displayed as DATUM is the distance between the two points on
the coordinate axis.
To return to the datum that was active before the length measurement:
Select the SURFACE = DATUM probe function.
Probe the first touch point again.
Set the datum to the value that you wrote down previously.
END
Measuring angles
You can also use the 3D touch probe system to measure angles in the
working plane. You can measure
the angle between the angle reference axis and a workpiece side, or
the angle between two sides.
The measured angle is displayed as a value of maximum 90.
To find the angle between the angle reference axis and a side of the workpiece:
Select the BASIC ROTATION probe function.
ROTATION ANGLE =
If you will need the current basic rotation later, write down the value that appears under ROTATION ANGLE.
Make a basic rotation with the side of the workpiece (see Compensating workpiece misalignment).
.
.
.
TNC 360
2-21
2.6
.
.
.
The angle between the angle reference axis and the side of the workpiece appears as the ROTATION ANGLE in the
BASIC ROTATION function.
Cancel the basic rotation.
Restore the previous basic rotation by setting the ROTATION ANGLE to the value that you wrote down previously.
PA
Fig. 2.18:
ROTATION ANGLE =
If you will need the current basic rotation later, write down the value that appears under ROTATION ANGLE.
Make a basic rotation for the first side (see Compensating workpiece misalignment).
Probe the second side as for a basic rotation, but do not set the ROTATION ANGLE to zero!
The angle PA between the workpiece sides appears as the ROTATION ANGLE in the BASIC ROTATION function.
2-22
TNC 360
To do a test run
TEST RUN
TO BLOCK NUMBER =
NO
ENT
e.g.
1 0
ENT
Test the program up to the entered block, for example block 10.
3-2
Function
Key
NO
ENT
TNC 360
GOTO
ENT
I
Only in mode
PROGRAM RUN /
SINGLE BLOCK
I
repeatedly
The feed rate and spindle speed can be changed with the override knobs.
TNC 360
3-3
3.2
Program Run
Interrupting machining
There are various ways to interrupt a program run:
Programmed interruptions
External STOP key
Switching to PROGRAM RUN / SINGLE BLOCK
EMERGENCY STOP button
Programmed interruptions
Interruptions can be programmed directly in the part program. The part
program is interrupted at a block containing one of the following entries:
G38
Miscellaneous functions M0, M02 or M30
Miscellaneous function M06, if the machine tool builder has assigned a
stop function
3-4
TNC 360
3.2
Program Run
CE
0
OFF
TNC 360
3-5
EXT
PROGRAM NUMBER
e.g.
1 0
ENT
If the data transfer is interrupted, press the machine START button again.
3-6
TNC 360
3.3
GOTO
e.g.
1 5 0
TNC 360
ENT
Enter the block number at which you wish to begin data transfer, for
example 150.
Execute the transferred blocks, starting with the block number that
you entered.
3-7
Programming
Programming
In the PROGRAMMING AND EDITING mode of operation you can do such
things as
creating,
adding to, and
editing files.
This chapter describes basic functions and programming input that do not
cause machine axis movement. The entry of geometry for workpiece
machining is described in the next chapter.
Block:
N10 G00 G40 G90 X+100 Y+20 M3
Path
function
Block
Number
Fig. 4.1:
Function
Key
ENT
NO
ENT
Words
END
DEL
4-2
TNC 360
Programming
4.1
Editing functions
Editing means entering, adding to or changing commands and information
for the TNC.
The TNC enables you to
Types of input
Numbers, coordinate axes and radius compensation are entered directly
by keyboard. You can set the algebraic sign either before, during or after a
numerical entry.
Selecting blocks and words
To call a block with a certain block number:
GOTO
e.g.
1 0
ENT
or
or
or
Inserting blocks
Additional program blocks can be inserted behind any existing block
(except the N9999 block).
GOTO
or
TNC 360
e.g.
ENT
4-3
Programming
4.1
Key
CE
CE
CE
DEL
DEL
DEL
4-4
TNC 360
Programming
4.2 Tools
Each tool is identified by a number.
The tool data, consisting of the:
Length L, and
Radius R
are assigned to the tool number.
The tool data can be entered:
into the individual part program in a G99 block, or
once for each tool into a common tool table that is stored as
program 0.
Once a tool is defined, the TNC then associates its dimensions with the
tool number and accounts for them when executing positioning blocks.
TNC 360
4-5
Programming
4.2
Tools
L1 >0
L0
L2 <0
Fig. 4.2:
Move the zero tool to the reference position in the tool axis (e.g. workpiece surface with Z = 0).
If necessary, set the datum in the tool axis to 0.
Change tools.
Move the new tool to the same reference position as the zero tool.
The TNC displays the compensation value for the length L of the tool.
Write the value down and enter it later.
Enter the display value by using the "actual position capture" function (see page 4-20).
4-6
TNC 360
Programming
4.2
Tools
ENT
TOOL NUMBER T
e.g.
ENT
TOOL LENGTH L
1 0
ENT
Enter the compensation value for the tool length, for example
L = 10mm.
TOOL RADIUS R
e.g.
END
You can enter the tool length L directly in the tool definition by using the "actual position capture" function
(see page 4-20).
TNC 360
4-7
Programming
4.2
Tools
PGM
NR
PROGRAM NUMBER =
ENT
In the ELECTRONIC HANDWHEEL and MANUAL modes of operation, you can call the tool table at any time by
simply pressing ENT.
Fig. 4.3:
Dialog
Input
Abbreviation
4-8
Tool table
SPECIAL TOOL?
YES = ENT / NO = NO ENT
POCKET NUMBER?
TOOL LENGTH L?
TOOL RADIUS R?
TNC 360
Programming
4.2
Tools
TOOL NUMBER?
1 7
G
S
Enter the number of the tool as it was defined in the tool table or in a
"G99" block, for example 5.
e.g.
END
Tool change
Automatic tool change
If your machine is built for automatic tool changing, the TNC controls the
replacement of the inserted tool by another from the tool magazine. The
program run is not interrupted.
Manual tool change
To change the tool manually, stop the spindle and move the tool to the
tool change position. Sequence of action:
TNC 360
4-9
Programming
4.2
Tools
If a positive length compensation value was in effect before T0, the clearance to the workpiece is reduced.
4-10
TNC 360
Programming
Fig. 4.4:
The TNC must compensate the length and radius of the tool
Fig. 4.5:
TNC 360
4-11
Programming
4.3
Applications:
Drilling and boring
Pre-positioning
X
Y
X
Fig. 4.6:
G41
G42
Fig. 4.7:
The tool moves to the left (G41) or to the right (G42) of the workpiece during milling
Between two program blocks with differing radius compensation you must program at least one block without radius
compensation (that is, with G40). Radius compensation is not in effect until the end of the block in which it is first
programmed.
4-12
TNC 360
Programming
4.3
Machining corners
Outside corners
The TNC moves the tool in a transitional arc around
outside corners. The tool "rolls around" the corner
point.
If necessary, the feed rate F is automatically
reduced at outside corners to reduce machine
strain, for example for very sharp changes in
direction.
41
Fig. 4.8:
If you work without radius compensation, you can influence the machining of outside corners with the
miscellaneous function M90 (see page 5-36).
Inside corners
The TNC calculates the intersection of the tool
center paths at inside corners. From this point it
then starts the next contour element. This prevents
damage to the workpiece at inside corners.
G41
Fig. 4.9:
TNC 360
G41
4-13
Programming
PROGRAM NUMBER=
e.g.
4 3
ENT
MM=G71 / INCH=G70
e.g.
ENT
Z
Y
MAX
MIN
Fig. 4.10:
The ratio of the blank-form side lengths must be less than 84:1.
4-14
TNC 360
Programming
4.4
Program Creation
e.g.
X 0
Y 0
Z
e.g.
0 +/
END
X 1 0 0
Y 1 0 0
Z
TNC 360
END
4-15
Programming
4.4
Program Creation
4-16
TNC 360
Programming
S
F
Fig. 4.11:
Feed rate F
The feed rate is the speed in mm/min (or inch/min) with which the tool
center moves.
Input range:
F = 0 to 30 000 mm/min (1181 inch/min)
The maximum feed rate is set in machine parameters individually for each
axis.
To set the feed rate:
e.g.
1 0 0
Rapid traverse
You can program rapid traverse directly with the G00 function.
Duration of feed rate F
A feed rate that is entered as a numerical value remains in effect until the
control executes a block in which another feed rate has been programmed.
If the new feed rate is G00 (rapid traverse), the feed rate will return to the
last numerically entered feed rate as soon as the next block with G01 is
executed.
Changing the feed rate F
You can vary the feed rate by turning the knob for feed rate override on
the operating panel (see page 2-6).
TNC 360
4-17
Programming
4.5
Spindle speed S
The spindle speed S is entered in revolutions per minute (rpm).
Input range:
S = 0 to 99 999 rpm
e.g.
1 0
0 0
END
150
0
4-18
S%
TNC 360
Programming
TNC 360
4-19
Programming
Y
X
Fig. 4.12:
e.g.
Select the axis in which you wish to capture a coordinate, for example
the X axis.
Transfer the actual position coordinate to the program.
Enter the radius compensation according to the position of the tool relative to the workpiece.
4-20
TNC 360
Always pre-position the tool at the beginning of a part program to prevent the possibility of damaging the tool or
workpiece. In addition, radius compensation and a path function must be active.
Path functions
Y
Fig. 5.1:
G01
G01
G 01
I, J
G01
G02
5-2
TNC 360
5.1
Pecking
Tapping
Slot milling
Pocket and island milling
Datum shift
Mirroring
Rotation
Enlarging / Reducing
Parameter programming
Instead of numerical values you enter markers in the program, so-called
parameters, which are defined through mathematical functions or logical
comparisons. You can use parametric programming for:
Assign
Addition/Subtraction
Multiplication/Division
Angle measurement/Trigonometry
etc.
TNC 360
5-3
If you choose a starting position within the hatch marked area of Fig. 5.3
the tool will damage the contour as it approaches the first contour point.
The best starting position S lies on the extension of the tool path for
machining the first contour element.
G40
S
Fig. 5.3 :
Workpiece machining starts at the first contour point. The tool moves on a
radius-compensated path to this point.
G41
Fig. 5.4 :
G00 G40
X ... Y ...
Z10
Positioning in X/Y
Positioning in Z
Fig. 5.5 :
5-4
TNC 360
5.2
End position
The end position, like the starting position, must be
approachable without collision
near the last contour point
located to prevent contour damage during workpiece departure
The best end position E lies on the extension of the tool path. The end
position can be located anywhere outside of the hatch marked area in
Fig. 5.6. It is approached without radius compensation.
A
G40
Fig. 5.6 :
X ... Y ...
Z+50
Fig. 5.7 :
G40
Fig. 5.8:
TNC 360
5-5
5.2
G41
G40
Fig. 5.9:
Input
During contour approach, the function G26 is entered after the block in
which the first contour point is programmed, i.e. after the first block
with radius compensation G41/G42.
During contour departure, the function G27 is entered after the block in
which the last contour point is programmed, i.e. after the last block
with radius compensation G41/G42.
G41
R
E
G40
Fig. 5.10:
Program example
.
.
.
G00 G40 G90 X ... Y ... ............................................... Starting position S
G01 G41 X ... Y ... F350 .............................................. First contour point A
G26 R ... ..................................................................... Smooth approach
.
.
.
Contour elements
.
.
.
X ... Y ... ...................................................................... Last contour point B
G27 R ... ..................................................................... Smooth departure
G00 G40 X ... Y ... ....................................................... End position E
For proper execution of the functions G26/G27, a radius must be chosen such that the arc can connect the starting
or end position with the contour point.
5-6
TNC 360
G00 X +100
All machine axes programmed in a single NC block are moved
simultaneously.
Paraxial movement
Y
X
Paraxial movement means that the tool path is parallel to the programmed
axis.
Number of axes programmed in the NC block: 1
100
Fig. 5.11:
Paraxial movement
With this type of movement the tool moves to the programmed position
on a straight line or a circular arc in a "working plane".
Number of axes programmed in the NC block: 2
Y
X
50
70
Fig. 5.12:
TNC 360
5-7
5.3
Path Functions
L X +80 Y 0 Z 10
Y
X
10
Fig. 5.13:
5-8
80
TNC 360
5.3
Path Functions
in Cartesian
coordinates
in polar
coordinates
G00
G10
G01
G11
G24
I, J, K
G02
G12
G03
G13
G05
G15
G06
G16
TNC 360
G25
5-9
The tool moves in a straight line from its starting position to the end
point E . The starting position S was reached in the previous block.
Fig. 5.14:
A linear movement
If necessary
e.g.
If necessary
+/
e.g.
1
X
e.g.
.
.
.
e.g.
.
.
.
5-10
TNC 360
5.4
.
.
.
The tool must move to the left of the programmed contour to compensate its own radius.
e.g.
3
END
ENT
Resulting NC block: N25 G00 G42 G91 X+50 G90 Y+10 Z20 M3 *
TNC 360
5-11
5.4
X = 5 mm
Y = 5 mm
X = 5 mm
Y = 95 mm
X = 95 mm
Y = 95 mm
X = 95 mm
Y = 5 mm
Milling depth:
Z = 10mm
100
95
2
4
95
5
100
10
5
Part program
%S512I G71 * ............................................................ Begin program; program name S512I;
................................................................................... dimensions in millimeters
N10 G30 G17 X+0 Y+0 Z20 *
N20 G31 G90 X+100 Y+100 Z+0 * ............................ Define blank form for graphic workpiece simulation
(MIN and MAX point)
N30 G99 T1 L+0 R+5 * .............................................. Define tool in the program
N40 T1 G17 S2500 * .................................................. Call tool in the spindle axis Z (G17);
spindle speed S = 2500 rpm
N50 G00 G40 G90 Z+100 M06 * ............................... Retract in the spindle axis; rapid traverse; miscellaneous
function for tool change
N60 X10 Y10 * ....................................................... Pre-position near the first contour point
N70 Z10 M03 * ........................................................ Pre-position in Z; spindle on
N80 G01 G41 X+5 Y+5 F150 * .................................. Move to point 1 with radius compensation
N90 Y+95 * ................................................................ Move to corner point 2
N100 X+95 * .............................................................. Move to corner point 3
N110 Y+5 * ................................................................ Move to corner point 4
N120 X+5 * ................................................................ Move to corner point 1 , conclude milling
N130 G00 G40 X10 Y10 M05 * .............................. Retract in X and Y, cancel radius compensation,
spindle STOP
N140 Z+100 M02 * .................................................... Move tool to setup clearance, spindle OFF, coolant OFF,
................................................................................... program stop, return jump to block 1
N9999 %S512I G71 * ................................................ End of program
5-12
TNC 360
5.4
Chamfer G24
The chamfer function permits you to cut off corners at the intersection of
two straight lines.
L
E
L
Z
2
Fig. 5.15:
Chamfer from S to Z
You enter the length L to be removed from each side of the corner.
Prerequisites:
1
The radius compensation before and after the chamfer block must be
the same.
An inside chamfer must be large enough to accommodate the current
tool.
E
Z
2
Fig. 5.16:
To program a chamfer:
ENT
END
Enter the length to be removed from each side of the corner, for
example 5 mm.
TNC 360
5-13
5.4
Z
X
Y
= 95 mm
= 5 mm
Chamfer length:
LF = 10 mm
Milling depth:
= 15 mm
Tool radius:
= +10 mm
100
5 15
15
85
95
100
X
Part program
%S514I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Workpiece blank MIN point
N20 G31 G90 X+100 Y+100 Z+0 * ............................ Workpiece blank MAX point
N30 G99 T5 L+5 R+10 * ............................................ Tool definition
N40 T5 G17 S2000 * .................................................. Tool call
N50 G00 G40 G90 Z+100 M06 * ............................... Retract spindle and insert tool
N60 X10 Y5 * ......................................................... Pre-position in X, Y
N70 Z15 M03 * ........................................................ Pre-position to the working depth, spindle on
N80 G01 G42 X+5 Y+5 F200 * .................................. Move with radius compensation and reduced feed to
................................................................................... the first contour point
N90 X+95 * ................................................................ Program the first straight line for corner E
N100 G24 R10 * ........................................................ Chamfer block: inserts a chamfer with L = 10 mm
N110 Y+100 * ............................................................ Program the second straight line for corner E
N120 G00 G40 X+110 Y+110 * ................................. Retract the tool in X, Y and Z, cancel radius
................................................................................... compensation
N130 Z+100 M02 * .................................................... Move tool to setup clearance
N9999 %S514I G71 *
5-14
TNC 360
5.4
X
Fig. 5.17:
Circle center I, J, K
You can define a circular movement by entering its
center.
A circle center can also serve as reference (pole) for
polar coordinates.
Z
X
I
Fig. 5.18:
Direction of rotation
When there is no tangential transition to another
contour element, enter the mathematical direction
of rotation, where
a clockwise direction of rotation is mathematically negative: function G02
a counterclockwise direction of rotation is
mathematically positive: function G03
Z
G03
Y
Fig. 5.19:
TNC 360
G02
5-15
5.4
Spindle axis
Fig. 5.20:
Main plane
Circle center
XY
G17
IJ
ZX
G18
KI
YZ
G19
JK
Defining the spindle axis also defines the main plane and the
circle center designations
You can program circles that do not lie parallel to a main plane by using Q parameters (see Chapter 7).
Circle center I, J, K
If you program an arc using the functions G02/G03/G05, you must first
define the circle center by:
entering the Cartesian coordinates of the circle center
using the circle center defined in an earlier block
capturing the actual position
Fig. 5.21:
Circle center I, J
5-16
TNC 360
5.4
G91 J
G91 I
Fig. 5.22:
e.g.
e.g.
e.g.
e.g.
1 0 +/
Enter the coordinate for the circle center on this axis, for example
I = 20 mm.
Select the second coordinate axis, for example J.
Enter the coordinate of the circle center, for example J = 10 mm.
END
TNC 360
5-17
5.4
The circle center I, J, K must have been previously defined in the program.
The tool is located at the arc starting point S .
Defining the direction of rotation
You can program the following directions of rotation:
Clockwise rotation
Counterclockwise rotation
No direction of rotation defined
The tool moves in the direction of rotation
defined in an earlier block.
G02
G03
G05
I, J
Input
Fig. 5.23:
The starting and end points of the arc must lie on the circle.
Input tolerance: up to 0.016 mm
To program a full circle, enter the same position for the end point as for
the starting point in a G02/G03 block.
E
S
YE
I, J
J
YS
XS
X
Fig. 5.24:
5-18
Fig. 5.25:
XE
TNC 360
5.4
To program a circular arc around a circle center I, J with G02 (direction of rotation = clockwise):
9 1
Enter the first coordinate of the end point as an incremental value, for
example X = 5 mm.
Enter the second coordinate of the end point as an absolute value, for
example Y = 5 mm.
Y 5 +/
END
TNC 360
5-19
5.4
I
J
= 50 mm
= 50 mm
X
Y
= 50 mm
= 0 mm
Milling depth:
= 5 mm
Tool radius:
= 15 mm
I, J
X
50
50
Part program
%S520I G71 * ............................................................ Begin program
N10 G30 G17 X+1 Y+1 Z20 * .................................. Workpiece blank MIN point
N20 G31 G90 X+100 Y+100 Z+0 * ............................ Workpiece blank MAX point
N30 G99 T6 L+0 R+15 * ............................................ Tool definition
N40 T6 G17 S1500 * .................................................. Tool call
N50 G00 G40 G90 Z+100 M06 * ............................... Retract spindle and insert tool
N60 X+50 Y40 * ....................................................... Pre-position in X, Y
N70 Z-5 M03 * ........................................................... Pre-position to the working depth
N80 I+50 J+50 * ........................................................ Coordinates of the circle center
N90 G01 G41 X+50 Y+0 F100 * ................................ Move with radius compensation and reduced feed to the
first contour point
N100 G26 R10 * ........................................................ Smooth (tangential) approach
N110 G02 X+50 Y+0 * ............................................... Mill circular arc around circle center I,J; negative direction
of rotation; end point coordinates X = +50 und Y = +0
N120 G27 R10 * ........................................................ Smooth (tangential) departure
N130 G00 G40 X+50 Y40 * ...................................... Retract the tool in X, Y; cancel radius compensation
N140 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S520I G71 *
5-20
TNC 360
5.4
Clockwise rotation
Counterclockwise rotation
No direction of rotation defined
The tool moves in the direction of rotation
defined in an earlier block.
Input
Coordinates of the arc end point
Arc radius R
Fig. 5.26:
E1=S2
S1=E2
Fig. 5.27:
CCA
R
S
Fig. 5.28:
TNC 360
CCA
CCA<180
5-21
5.4
Fig. 5.29:
Convex path
Fig. 5.30:
Concave path
G
e.g.
e.g.
1 0
5 +/
END
Enter the coordinates of the arc end point, for example X = 10 mm,
Y = 2 mm.
Enter the arc radius, for example R = 5 mm, and determine the size of
the arc using the algebraic sign, here the negative sign.
5-22
TNC 360
5.4
= 50 mm
X
Y
=
=
X
Y
= 100 mm
= 0
Tool radius:
= 25 mm
Milling depth:
= 18 mm
Coordinates of the
arc starting point:
Coordinates of the
arc end point:
Z
0
0
Y
100
50
100
18
20
Part program
%S523I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+25 * ............................................ Define the tool
N40 T1 G17 S780 * .................................................... Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X+25 Y-30 * ........................................................ Pre-position in X, Y
N70 Z18 M03 * ........................................................ Pre-position to the working depth
N80 G01 G42 X+0 Y+0 F100 * .................................. Move with radius compensation and reduced feed to
the first contour point
N90 G02 X+100 Y+0 R50 * ...................................... Mill circular arc to the end point X = 100, Y = 0;
radius = 50, negative direction of rotation
N100 G00 G40 X+70 Y30 * ...................................... Retract the tool in X, Y; cancel radius compensation
N110 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S523I G71 *
TNC 360
5-23
5.4
Input
Coordinates of the arc end point.
Prerequisites
The contour element to which the tangential arc
connects with G06 must be programmed
immediately before the G06 block.
There must be at least two positioning blocks
defining the tangentially connected contour
element before the G06 block.
Fig. 5.31:
L1
3
2
1
L2
L3
E
Fig. 5.32:
A tangential arc is a two-dimensional operation: the coordinates in the G06 block and the positioning block before it
should be in the plane of the arc.
Enter the coordinates of the arc end point as relative coordinates, for
example X = 50 mm, Y = 10 mm.
Y +/
1 0
END
5-24
TNC 360
5.4
Z
X
Y
= 10 mm
= 40 mm
X
Y
= 50 mm
= 50 mm
Milling depth:
= 15 mm
Tool radius:
= 20 mm
Coordinates of the
arc end point:
Y
100
90
X
50
40
100
15
50
10
Part program
%S525I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Define workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T12 L-25 R+20 * ......................................... Define the tool
N40 T12 G17 S1000 * ................................................ Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X+30 Y30 * ....................................................... Pre-position in X, Y
N70 Z15 M03 * ........................................................ Pre-position to the working depth
N80 G01 G41 X+50 Y+0 F100 * ................................ Move with radius compensation and reduced
feed to the first contour point
N90 X+10 Y+40 * ...................................................... Straight line connecting tangentially to the arc
N100 G06 X+50 Y+50 *
Arc to end point with coordinates X = 50 and Y = 50;
connects tangentially to the straight line in block N90
N110 G01 X+100 * .................................................... End of contour
N120 G00 G40 X+130 Y+70 * ................................... Retract the tool in X, Y; cancel radius compensation
N130 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S525I G71 *
TNC 360
5-25
5.4
1
G1
R
Input
Radius of the arc
Feed rate for the arc
R
G2
Prerequisite
On inside corners, the rounding arc must be large
enough to accommodate the tool.
2
Fig. 5.33:
In the preceding and subsequent positioning blocks both coordinates should lie in the plane of the arc.
The corner point E is cut off by the rounding arc and is not part of the contour.
A feed rate programmed in the G25 block is effective only in that block. After the G25 block the previous feed
rate becomes effective again.
ENT
ENT
ROUNDING RADIUS
e.g.
1
e.g.
1 0 0
Enter the feed rate for the rounding radius, for example
F = 100 mm/min.
END
5-26
TNC 360
5.4
X
Y
= 95 mm
= 5 mm
Rounding radius:
= 20 mm
Milling depth:
= 15 mm
Tool radius:
= 10 mm
Y
100
R = 20
X
100
95
15
Part program
%S527I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T7 L+0 R+10 * ............................................ Define the tool
N40 T7 G17 S1500 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X10 Y-5 * .......................................................... Pre-position in X, Y
N70 Z15 M03 * ........................................................ Pre-position to the working depth
N80 G01 G42 X+0 Y+5 F100 *
Move with radius compensation and reduced feed to
the first contour element
N90 X+95 * ................................................................ Program the first straight line for the corner
N100 G25 R20 * ........................................................ Insert radius R = 20 mm between the two contour elements
N110 Y+100 * ............................................................ Program the second straight line for the corner
N120 G00 G40 X+120 Y+120 * ................................. Retract the tool in X, Y; cancel radius compensation
N130 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S527I G71 *
TNC 360
5-27
You can define the pole anywhere in the program before the blocks
containing polar coordinates. Enter the pole in Cartesian coordinates as a
circle center in a I, J, K block. A pole definition remains effective until a
new pole is defined. The designation of the pole is derived from its
position in the working plane.
Working plane
POLE
XY
I, J
YZ
J, K
ZX
K, I
Pol
I
Fig. 5.34:
You can define the last programmed position as POLE by entering G29.
G91 H
G91 H
G91 H
R
H
G91 H
J
I
Fig. 5.35:
lines
Enter the radius from the pole to the straight line end point, for
example PR = 5 mm.
END
Enter the angle from the angle reference axis to R, for example
H = 30.
5-28
TNC 360
5.5
= 180
= 45 mm
= 120
= 45 mm
60
= 45 mm
= 45 mm
= 300
= 45 mm
= 240
= 45 mm
Milling depth:
= 10 mm
Tool radius:
5 mm
100
R =45
60
100
J=5
5
0
I=5
10
5
Part program
%S530I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+17 * ............................................ Define the tool
N40 T1 G17 S3200 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 I+50 J+50 * ........................................................ Set the pole
N70 G10 R+70 H190 * ............................................. Pre-position in X, Y to polar coordinates
N80 Z10 M03 * ........................................................ Pre-position to working depth
N90 G11 G41 R+45 H+180 F100 * ............................ Move to contour point 1
N100 H+120 * ........................................................... Move to contour point 2
N110 H+60 * ............................................................. Move to contour point 3
N120 G91 H60 * ...................................................... Move to contour point 4, incremental value
N130 G90 H60 * ...................................................... Move to contour point 5, absolute value
N140 H+240 * ........................................................... Move to contour point 6
N150 H+180 * ........................................................... Move to contour point 1
N160 G10 G40 R+70 H+170 * ................................... Retract the tool in X, Y; cancel radius compensation
N170 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S530I G71 *
TNC 360
5-29
5.5
Y
E
Input
Polar coordinate angle H for arc end point
G13
H
J
S
I
Fig. 5.36:
G
H
G12
G13
G15
END
Enter the angle of the arc end point, for example H = 30.
Terminate the block.
5-30
TNC 360
5.5
Circle center
coordinates:
X
Y
= 50 mm
= 50 mm
Radius:
= 50 mm
Milling depth:
= 5 mm
Tool radius:
= 15 mm
Y
100
X
0
J=5
100
I=5
Part program
%S532I G71 * .................................................................................. Begin program
N10 G30 G17 X+0 Y+0 Z20 * ........................................................ Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T25 L+0 R+15 * ................................................................ Define the tool
N40 T25 G17 S1500 * ...................................................................... Call the tool
N50 G00 G40 G90 Z+100 M06 * ..................................................... Retract the spindle and insert the tool
N60 I+50 J+50 * .............................................................................. Set the pole
N70 G10 R+70 H+280 * .................................................................. Pre-position in X, Y to polar coordinates
N80 Z5 M03 * ................................................................................ Pre-position to working depth
N90 G11 G41 R+50 H90 F100 * .................................................... Move with radius compensation and reduced
feed to the first contour point
N100 G26 R10 * .............................................................................. Smooth (tangential) approach
N110 G12 H+270 * .......................................................................... Circle to end point H = 270, negative direction
of rotation
N120 G27 R10 * .............................................................................. Smooth (tangential) departure
N130 G10 G40 R+70 H110 * ......................................................... Retract tool in X, Y; cancel radius compensation
N140 Z+100 M02 * .......................................................................... Retract tool in Z
N9999 %S532I G71 *
TNC 360
5-31
5.5
Input:
E
H
J
I
Fig. 5.37:
8 0
Enter the distance from the pole to the arc end point, for example
R= 10 mm.
END
Enter the angle from the angle reference axis to R, for example
H = 80; terminate the block.
5-32
TNC 360
5.5
Helical interpolation
A helix is the combination of a circular movement in
a main plane and a linear movement perpendicular
to the plane.
Z
Y
I, J
X
Applications
You can use helical interpolation with form cutters
to machine:
Large-diameter internal and external threads
Lubrication grooves
Input
Internal thread
Work direction
Rotation
Radius comp.
Right-hand
Left-hand
Z+
Z+
G13
G12
G41
G42
Right-hand
Left-hand
Z
Z
G12
G13
G42
G41
External thread
Work direction
Rotation
Radius comp.
Right-hand
Left-hand
Z+
Z+
G13
G12
G42
G41
Right-hand
Left-hand
Z
Z
G12
G13
G41
G42
Fig. 5.39:
TNC 360
5-33
5.5
To program a helix:
Enter the total angle of tool traverse along the helix as an incremental
value, for example H = 1080.
8 0
H
Z
5
END
Enter the total height of the helix in the tool plane as an incremental
value, for example Z = 4.5 mm.
Terminate the block.
5-34
TNC 360
5.5
M64 x 1.5
AE =0
1.5 mm
0
360 = 0 at ZE = 0
8
Thread overrun
at start of thread nS:
at end of thread nE:
0.5
0.5
Number of cuts:
A = 180
A = 0
G13
AS =0
H = P.n
P = 1.5 mm
n = nT + nA + nE= 9
h = 13.5 mm
H = n . 360
n = 9 (see total height H)
IPA = 360 . 9 = 3240
nS = 0.5
Z = P . (nT + nS)
= 1.5 . 8.5 mm
= 12.75 mm
TNC 360
5-35
G40
Advantages:
Reduced wear on the machine
High definition of (outside) corners
Note:
In program blocks with radius compensation (G41/G42), the TNC automatically inserts a transition arc at external corners.
Fig. 5.40:
G40
Duration of effect
The miscellaneous function M90 is effective only in the blocks in which it
is programmed. Operation with servo lag must be active.
A limit value can be set in machine parameter MP7460 (see page 119) below which the tool will move at constant feed rate (valid for
operation both with servo lag and with feed precontrol). This value is
valid regardless of M90.
5-36
Fig. 5.41:
TNC 360
5.6
X
Fig. 5.42:
Y
S
Duration of effect
13
16 17
14
15
X
Fig. 5.43:
A contour machined with M97 is less complete than one without. You may wish to rework the contour with a
smaller tool.
Program example
.
.
.
N5
.
.
.
N20
N30
N40
N50
N60
.
.
.
The outer corners are programmed in blocks N20 and N50: these are the
blocks in which you program M97.
TNC 360
5-37
5.6
Fig. 5.44:
Duration of effect
The miscellaneous function M98 is effective only in
the blocks in which it is programmed.
11
Fig. 5.45:
12
Program example
.
.
.
N10
N20
N30
.
.
.
5-38
TNC 360
5.6
XMP
XMP
X(Z,Y)
X(Z,Y)
Fig. 5.46:
for
The values for radius compensation remain effective, even if you have programmed the coordinates with M91 of
M92.
TNC 360
5-39
5.6
Workpiece datum
ZM
Z
YM
Y
X
XM
Fig. 5.47:
5-40
Machine datum
TNC 360
G
G
7
9
X 5
1 5 0 0
END
TNC 360
5-41
6.1 Subprograms
N1
Principle
The (main) program is executed up to the block in
which the subprogram is called with Ln,0 ( 1 ).
Then the subprogram is executed from beginning to
end (G98 L0) ( 2 ).
Finally, the main program is resumed from the
block after the subprogram call ( 3 ).
.
.
.
.
.
.
.
.
.
.
.
.
.
.
N9999
Fig. 6.1:
% ... *
1
L1, 0 *
S
3
R
Z + 100 M2 *
G98 L1 *
2
G98 L0 *
% ... *
Flow diagram for a subprogram;
S = jump, R = return jump
Operating limits
One main program can contain up to 254
subprograms.
Subprograms can be called in any sequence and
as often as desired.
A subprogram cannot call itself.
Subprograms should be located at the end of the
main program (after the block with M2 or M30).
If subprograms are located in the program before
the block with M02 or M30, they will be executed at least once even without being called.
6-2
TNC 360
6
6.1
ENT
LABEL NUMBER?
e.g.
END
ENT
LABEL NUMBER?
End of subprogram.
END
END
TNC 360
6-3
6.1
Subprograms
X = 15 mm
X = 45 mm
X = 75 mm
Y = 10 mm
Y = 60 mm
Y = 10 mm
20
60
Spacing of holes:
X
Y
=
=
20 mm
20 mm
Hole diameter:
5 mm
10 mm
15
10
5
20
20
45
75
Part program
%S64I G71 * .................................................................. Begin program
N10 G30 G17 X+0 Y+0 Z20 * ...................................... Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+2.5 * ............................................... Define the tool
N40 T1 G17 S3500 * ...................................................... Call the tool
N50 G83 P01 2 P02 10 P03 5 P04 0
P05 100 * ....................................................................... Cycle definition PECKING (see page 8-5)
N60 G00 G40 G90 Z+100 M06 * ................................... Retract the spindle and insert the tool
N70 X+15 Y+10 * .......................................................... Move to hole group 1
N80 Z+2 M03 * .............................................................. Pre-position in the infeed axis
N90 L1,0 * ..................................................................... Subprogram call (with block N90 the subprogram is
....................................................................................... executed)
N100 X+45 Y+60 * ........................................................ Move to hole group 2
N110 L1,0 * ................................................................... Subprogram call
N120 X+75 Y+10 * ........................................................ Move to hole group 3
N130 L1,0 * ................................................................... Subprogram call
N140 Z+100 M02 * ........................................................ Retract tool;
....................................................................................... End of main program (M2); the subprogram is
....................................................................................... entered after M2
N150 G98 L1 * ............................................................... Beginning of subprogram
N160 G79 * .................................................................... Execute pecking for the first hole
N170 G91 X+20 M99 * .................................................. Move to incremental position for second hole and drill
N180 Y+20 M99 * ......................................................... Move to incremental position for third hole and drill
N190 X20 G90 M99 * .................................................. Move to incremental position for fourth hole and drill;
....................................................................................... Switch to absolute coordinates (G90)
N200 G98 L0 * ............................................................... End of subprogram
N9999 %S64I G71 * ...................................................... End of program
6-4
TNC 360
Principle
The program is executed up to the end of the
labelled program section (block with Ln,m)
( 1 , 2 ).
.
.
.
.
.
.
.
.
.
.
.
Programming notes
A program section can be repeated up to 65 534
times in succession.
The total number of times the program section
will be carried out is always one more than the
programmed number of repetitions.
N9999
Fig. 6.2:
% ... *
1
G98 L1 *
2
L1,2 *
5
% ... *
ENT
LABEL NUMBER?
e.g.
END
END
TNC 360
6-5
6.2
X
Y
=
=
5 mm
10 mm
Spacing between
holes:
IX
15 mm
Number of
holes:
10
Hole diameter:
5 mm
Y
5
15
5
10
Part program
%S66I G71 * .............................................................. Begin program
N10 G30 G17 X+0 Y+0 Z20 * ................................... Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+2.5 * ........................................... Define the tool
N40 T1 G17 S3500 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X10 Y+10 Z+2 M03 * ........................................ Pre-position in the negative X direction
N70 G98 L1 * ............................................................. Beginning of program section to be repeated
N80 G91 X+15 * ......................................................... Move to incremental hole position
N90 G01 G90 Z10 F100 * ......................................... Drill (absolute value)
N100 G00 Z+2 * ......................................................... Retract the tool
N110 L1,5 * ................................................................ Call LABEL 1; repeat program section between blocks N70
.................................................................................... and N110 five times (for six holes)
N120 Z+100 M02 * .................................................... Retract the tool in Z
N9999 %S66I G71 *
6-6
TNC 360
6.2
Example for exercise: Milling with program section repeat without radius compensation
Machining sequence
Upward milling direction
4
78,35
0
89 10
100
6
21,64
50
11
R30
20,2
30
51
70
100
30
20 2
00
90 1
1
110
220
210
200
Part program
%S67I G71 * .............................................................. Begin program
N10 G30 G17 X+0 Y+0 Z70 * .................................. Define workpiece blank (note: blank form has changed)
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+10 * ............................................ Define the tool
N40 T1 G17 S1750 * .................................................. Call the tool
N50 G00 G40 G90 Z+100 M06 * ............................... Retract the spindle and insert the tool
N60 X20 Y1 M03 * ................................................. Pre-position in the X, Y plane
N70 G98 L1 * ............................................................. Begin program section 1
N80 G90 Z51 *
N90 G01 X+1 F100 *
N100 X+11.646 Z20.2 * ........................................... Program section for machining from
N110 G06 X+40 Z+0 * ............................................... X = 0 to 50 mm and Y = 0 to 100 mm
N120 G01 X+41 *
N130 G00 Z+10 *
N140 X20 G91 Y+2.5 *
N150 L1,40 * ............................................................. Call LABEL 1, repeat program section between blocks
................................................................................... N70 and N150 40 times
N160 G90 Z+20 * ...................................................... Retract the tool
N170 X+120 Y1 * ..................................................... Pre-position for program section 2
N180 G98 L2 * ........................................................... Beginning of program section 2
N190 G90 Z51 *
N200 G01 X+99 F100 *
N210 X+88.354 Z20.2 * ........................................... Program section for machining from
N220 G06 X+60 Z+0 * ............................................... X = 50 to 100 mm and Y = 0 to 100 mm
N230 G01 X+59 *
N240 G00 Z+10 *
N250 X+120 G91 Y+2.5 *
N260 L2,40 * ............................................................. Call LABEL 2, repeat program section between blocks
N180 and N260 40 times
N270 G90 Z+100 M02 * ............................................ Retract the tool
N9999 %S67I G71 *
TNC 360
6-7
.
.
.
.
.
.
.
.
% A ... *
1
%B*
3
R
N9999
Fig. 6.3:
% A ... *
.
.
.
.
.
.
.
.
N9999
% B ... *
%B*
Operating limits
Programs called from an external data storage
medium must not contain any subprograms or
program section repeats.
No labels are needed to call main programs as
subprograms.
The called program must not contain the miscellaneous functions M2 or M30.
The called program must not contain a jump into
the calling program.
/0
PROGRAM NAME?
Enter the main program call and the name of the program you want to call.
A main program can also be called with cycle G39 (see page 8-38).
6-8
TNC 360
6.4 Nesting
Subprograms and program section repeats can be nested in the following
variations:
Subprograms in subprograms
Program section repeats in program section repeats
Subprograms can be repeated
Program section repeats can appear in subprograms
Nesting depth
The nesting depth is the number of successive levels for which subprograms or program sections can call further subprograms or program
section repeats.
Maximum nesting depth for subprograms: 8
Maximum nesting depth for calling main programs: 4
Subprogram in a subprogram
Program layout
% UPGMS G71 *
.
.
.
e.g. N35 G00 G40 Z+100 M2 * .............................. Last program block of main program (with M2)
N36 G98 L1 *
.
.
.
e.g. N39
.
.
.
L2,0 *
Subprogram 1
with program call of
subprogram 2
Subprogram 2
TNC 360
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
6-9
6.4
Nesting
Example for exercise: Group of four holes at three positions (see page 6-4), but with three different tools
Machining sequence:
Countersinking - Pecking - Tapping
Z
The drilling operation is programmed with cycle
G83: PECKING (see page 8-4) and cycle G84:
TAPPING (see page 8-6). The groups of holes
are approached in one subprogram, and the
machining is performed in a second subprogram.
100
75
15
IX = 20 mm
IY = 20 mm
Hole data:
Countersinking
Pecking
Tapping
ZC = 3 mm
ZP = 15 mm
ZT = 10 mm
= 7 mm
= 5 mm
= 6 mm
20
20
15
20
Part program
%S610I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T25 L+0 R+2.5 * ......................................... Tool definition for pecking
N40 G99 T30 L+0 R+3 * ............................................ Tool definition for countersinking
N50 G99 T35 L+0 R+3.5 * ......................................... Tool definition for tapping
N60 T30 G17 S3000 * ................................................ Tool call for countersinking
N70 G83 P01 2 P02 3 P03 3 P04 0
P05 100 * ................................................................... Cycle definition for pecking
N80 L1,0 * ................................................................. Call of subprogram 1
N90 T25 G17 S2500 * ................................................ Tool call for pecking
N100 G83 P01 2 P02 25 P03 10 P04 0
P05 150 * ................................................................... Cycle definition for pecking
N110 L1,0 * ............................................................... Call of subprogram 1
N120 T35 G17 S100 * ................................................ Tool call for tapping
N130 G84 P01 2 P02 15 P03 0.1 P04 100 * .......... Cycle definition for tapping
N140 L1,0 * ............................................................... Call of subprogram 1
N150 Z+100 M02 * .................................................... Retract the tool; end of main program
N160 G98 L1 * ........................................................... Beginning of subprogram 1
N170 G00 G40 G90 X+15 Y+10 M03 * ..................... Move to hole group 1
N180 Z+2 * ................................................................ Pre-position in the infeed axis
N190 L2,0 * ............................................................... Call subprogram 2
N200 X+45 Y+60 * .................................................... Move to hole group 2
N210 L2,0 * ............................................................... Call subprogram 2
N220 X+75 Y+10 * .................................................... Move to hole group 3
N230 L2,0 * ............................................................... Call subprogram 2
N240 G98 L0 * ........................................................... End of subprogram 1
N250 G98 L2 * ........................................................... Beginning of subprogram 2
N260 G79 *
N270 G91 X+20 M99 * .............................................. Machine holes by sequentially activating the three cycles
N280 Y+20 M99 *
N290 X20 G90 M99 *
N300 G98 L0 * ........................................................... End of subprogram 2
N9999 %S610I G71 *
6-10
TNC 360
6.4
Nesting
e.g. N15
.
.
.
e.g. N20
.
.
.
e.g. N27
.
.
.
e.g. N35
.
.
.
N9999
% REPS G71 *
1
G98 L1 *
1
1x 4
G98 L2 *
21
2x 2 1x 4 2x 5
L2,2 * ....................................................... Program section between this block and G98 L2 (block 20) is
repeated twice
3
L1,1 * ....................................................... Program section between this block and G98 L1 (block 15) is
repeated once
7
% REPS G71 *
TNC 360
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
6-11
6.4
Nesting
Repeating subprograms
Program layout
% UPGREP G71 *
.
.
.
e.g.
N10
N11
N12
.
.
.
e.g.
e.g.
N19
N20
.
.
.
G98 L1 *
2x 3
L2,0 * ...................................................
Subprogram call
L1,2 * ................................................... Program section repeat
G00 G40 Z+100 M2 * .......................... Last program block of main program with M2
G98 L2 * .............................................. Beginning of subprogram
2
5
N28
G98 L0 * .............................................. End of subprogram
N9999 % UPGREP G71 * ............................... End of main program
6-12
Step 1:
Step 2:
Step 3:
Step 4:
TNC 360
Coordinate values
Feed rates
Spindle speeds
Cycle data
Q6
Q1
Q3
Q4
Q2
Q5
The TNC automatically assigns data to some Q parameters. For example, parameter Q108 is
assigned the current tool radius. You will find a list of these parameters in Chapter 11.
7-2
TNC 360
Example
Q1
R
H
=
=
Q1
Q2
Cylinder Z1:
Q1 = +30
Q2 = +10
Cylinder Z2:
Q1 = +10
Q2 = +50
Q1
Q2
Q2
Z2
Z1
ENT
ENT
ENT
TNC 360
7-3
7.1
= 50 mm
ZM = 5 mm
Tool radius:
= 15 mm
Y
I, J
50
50
7-4
TNC 360
TNC 360
7-5
7.2
ENT
ENT
1 0
END
ENT
1 2
ENT
Q 5
ENT
END
7-6
TNC 360
sin = a / c
Cosine:
cos = b / c
Tangent:
Where
a2 + b2 = c2
c=
Fig. 7.3:
(a2 = a . a)
2
a +b
Overview
D06: SINE
e.g. N10 D06 Q20 P01 Q05 *
Calculate the sine of an angle in degrees () and
assign it to a parameter
D07: COSINE
e.g. N10 D07 Q21 P01 Q05 *
Calculate the cosine of an angle in degrees () and
assign it to a parameter
D08: ROOT SUM OF SQUARES
e.g. N10 D08 Q10 P01 +5 P02 +4 *
Take the square root of the sum of two squares, and
assign it to a parameter
D13: ANGLE
e.g. N10 D13 Q20 P01 +10 P02 Q01 *
Calculate the angle from the arc tangent of two sides or from
the sine and cosine of the angle, and assign it to a parameter
TNC 360
7-7
Jumps
The jump target is specified in the block through a label number. If the
programmed condition is true, the TNC continues the program at the
specified label; if it is false, the next block is executed.
To jump to another program, you enter a program call after the block with
the target label (see page 6-8).
Overview
D09: IF EQUAL, JUMP
e.g. N10 D09 P01 +Q01 P02 +Q03 P03 5 *
If the two values or parameters are equal,
jump to the specified label (here label 5).
D10: IF NOT EQUAL, JUMP
e.g. N10 D10 P01 +10 P02 Q05 P03 10 *
If the two values or parameters are not equal,
jump to the specified label (here label 19).
D11: IF GREATER THAN, JUMP
e.g. N10 D11 P01 +Q01 P02 10 P03 5 *
If the first value or parameter is greater
than the second value or parameter,
jump to the specified label (here label 5).
D12: IF LESS THAN, JUMP
e.g. N10 D12 P01 +Q05 P02 +0 P03 1 *
If the first value or parameter is less
than the second value or parameter,
jump to the specified label (here label 1).
7-8
TNC 360
7.4
Unconditional jumps
Unconditional jumps are jumps which are always executed because the
condition is always true.
Example:
N20 D09 P01 +10 P02 +10 P03 1 *
Program example
When Q5 becomes negative, a jump to program 100 will occur.
.
.
.
N50 D00 Q05 P01 +10 * ............................................ Assign value, for example 10, to parameter Q5
.
.
.
N90 D02 Q05 P01 +Q5 P02 +12 * ............................ Reduce the value of Q5
N100 D12 P01 +Q5 P02 +0 P03 5 * .......................... If +Q5 is less than 0, jump to label 5
.
.
.
N150 G98 L5 * ........................................................... Label 5
N160
%100 * ............................................................. Jump to program 100
.
.
.
TNC 360
7-9
e.g.
1 0
ENT
Q10 = + 100
The TNC displays the current value (in this example Q10 = 100).
e.g.
ENT
ENT
7-10
TNC 360
The machine tool builder may have programmed a text that differs from the above.
TNC 360
7-11
Applications:
Measuring differences in the height of cast surfaces
Checking tolerances during machining
Enter G55 to activate the touch probe.
The touch probe is automatically pre-positioned (with rapid traverse from
MP6150) and probes the specified position (with feed rate from MP6120).
The coordinate measured for the probe point is stored in a Q parameter.
L?
100
X
100
The TNC interrupts the probing process if the probe is not deflected within
a certain range (range selected with MP6130).
10
Fig. 7.4:
Workpiece dimensions to be
measured
ENT
ENT
X
e.g. +/
e.g.
e.g.
X 5
e.g.
Y 0
e.g.
Z +/
END
Conclude input.
7-12
TNC 360
7.7
X = + 20 mm (Q11)
Y = 50 mm (Q12)
Z = 10 mm (Q13)
Touch point 2:
X = + 50 mm (Q21)
Y = 10 mm (Q22)
Z =
0 mm (Q23)
Part program
%3600717 G71 *
N10 D00 Q11 P01 +20 *
N20 D00 Q12 P01 +50 *
N30 D00 Q13 P01 +10 *
N40 D00 Q21 P01 +50 *
N50 D00 Q22 P01 +10 *
N60 D00 Q23 P01 +0 *
Begin the program; assign the coordinates for prepositioning the touch probe to Q parameters
N70 T0 G17 *
N80 G00 G40 G90 Z+100 M06 * ............................... Insert touch probe
N90 G55 P01 10 P02 Z- X+Q11 Y+Q12 Z+Q13 * ...... The Z coordinate probed in the negative direction is stored in
Q10 (1st point)
N100 X+Q21 Y+Q22 * ............................................... Move to auxiliary point for second pre-positioning
N110 G55 P01 20 P02 Z- X+Q21 Y+Q22 Z+Q23 * .... The Z coordinate probed in the negative direction is stored in
Q20 (2nd point)
N120 D02 Q01 P01 +Q20 P02 +Q10 ......................... Measure the height of the island and assign to Q1
N130 G38 * ................................................................ Q1 can be checked after the program run has been stopped
(see page 7-10)
N140 Z+100 M02 *
N9999 %3600717 G71 * ............................................ Retract the tool and end the program
TNC 360
7-13
X = 50 mm (Q1)
Y = 50 mm (Q2)
Pocket length X = 90 mm
Pocket width Y = 70 mm
25
26
(Q3)
(Q4)
27
17
32
23
21
31
29
28
22
30
20
Note:
At corners 21 and 31 the workpiece will be
machined slightly differently than shown in
the drawing!
Part program
%360077 G71 *
N10 G30 G17 X+0 Y+0 Z20 *
N20 G31 G90 X+100 Y+100 Z+0 *
N30
N40
N50
N60
N70
N80
N90
Enter half the pocket length and width for the paths of
traverse in blocks N200, N220, N300
N150 D04 P01 Q16 P02 +Q06 P03 +4 * ................... Rounding radius for smooth approach
N160 D04 P01 Q17 P02 +Q07 P03 +2 * ................... Feed rate in corners is half the rate for linear movement
N170 X+Q01 Y+Q02 M03 * ....................................... Pre-position in X and Y (pocket center), spindle ON
N180 Z+2 * ................................................................. Pre-position over workpiece
N190 G01 ZQ05 FQ07 * ........................................... Move to working depth Q5 (= 15 mm) with feed rate Q7
(= 100)
N200 G41 G91 X+Q13 G90 Y+Q02 *
Approach the pocket in a tangential arc
N210 G26 RQ16 *
N220 G91 Y+Q14 *
N230 G25 RQ6 FQ17 *
N240 XQ3 *
N250 G25 RQ6 FQ17 *
N260 Y-Q4 *
N270 G25 RQ6 FQ17 *
N280 X+Q3 *
N290 G25 RQ6 FQ17 *
N300 Y+Q14 *
TNC 360
7.8
25
90
30
25
70
35
2
30
90
Part program
%3600715 G71 * ....................................................... Load data for bolt hole circle 1
N10 D00 Q01 P01 +30 * ............................................ Circle center X coordinate
N20 D00 Q02 P01 +70 * ............................................ Circle center Y coordinate
N30 D00 Q03 P01 +11 * ............................................ Number of holes
N40 D00 Q04 P01 +25 * ............................................ Circle radius
N50 D00 Q05 P01 +90 * ............................................ Starting angle
N60 D00 Q06 P01 +0 * .............................................. Hole angle increment (0: distribute holes over 360)
N70 D00 Q07 P01 +2 * .............................................. Setup clearance
N80 D00 Q08 P01 +15 * ............................................ Total hole depth
N90 G30 G17 X+0 Y+0 Z-20 *
N100 G31 G90 X+100 Y+100 Z+0 *
N110 G99 T1 L+0 R+4 *
N120 T1 G17 S2500 *
N130 G83 P01 -Q07 ................................................... Definition of the pecking cycle/setup clearance
P02 -Q08 .......................................................... Total hole depth according to the load data
P03 -5 .............................................................. Pecking depth
P04 0 ............................................................... Dwell time
P05 250 * ........................................................ Feed rate for pecking
N140 L1,0 * ................................................................ Call bolt hole circle 1
Load data for bolt hole circle 2 (only re-enter changed data)
N150 D00 Q1 P01 +90 * ............................................ New circle center X coordinate
N160 D00 Q2 P01 +25 * ............................................ New circle center Y coordinate
N170 D00 Q3 P01 +5 * .............................................. New number of holes
N180 D00 Q4 P01 +35 * ............................................ New circle radius
N190 D00 Q6 P01 +30 * ............................................ New hole angle increment (not a full circle, 5 holes at 30
intervals)
N200 L1,0 * ................................................................ Call bolt hole circle 2
N210 G00 G40 G90 Z+200 M02 * ............................. End of main program
Continued...
TNC 360
7-15
7.8
7-16
TNC 360
7.8
Ellipse
X coordinate calculation:
Y coordinate calculation:
X = a . cos
Y = b . sin
Y
b
X2
X1
Y2
Process:
The points of the ellipse are calculated and
connected by many short lines. The more
points that are calculated and the shorter
the lines between them, the smoother the
curve.
Y1
Y
Q5
DR
0 = E
Q4
DR+
Part program
%376015 G71 * ........................................................ Load data
N10 D00 Q01 P01 +50 * ........................................... X coordinate for center of ellipse
N20 D00 Q02 P01 +50 * ........................................... Y coordinate for center of ellipse
N30 D00 Q03 P01 +50 * ........................................... Semiaxis in X
N40 D00 Q04 P01 +20 * ........................................... Semiaxis in Y
N50 D00 Q05 P01 +0 * ............................................. Start angle
N60 D00 Q06 P01 +360 * ......................................... End angle
N70 D00 Q07 P01 +40 * ........................................... Number of calculating steps
N80 D00 Q08 P01 +0 * ............................................. Rotational position
N90 D00 Q09 P01 +10 * ........................................... Depth
N100 D00 Q10 P01 +100 * ....................................... Plunging feed rate
N110 D00 Q11 P01 +350 * ....................................... Milling feed rate
N120 D00 Q12 P01 +2 * ........................................... Setup clearance Z
N130 G30 G17 X+0 Y+0 Z-20 * ................................. Definition of workpiece blank
N140 G31 G90 X+100 Y+100 Z+0 *
N150 G99 T1 L+0 R+2.5 *
N160 T1 G17 S2500 *
N170 G00 G40 G90 Z+100 * ..................................... Retract in Z
N180 L10,0 * ............................................................. Call subprogram ellipse
N190 G00 Z+100 M02 * ............................................ Retract in Z, end of main program
Continued...
TNC 360
7-17
7.8
7-18
TNC 360
7.8
Start angle
End angle
Increment
Q1
Q2
Q3
Q4
Q5
Start angle Q6
End angle
Q7
Increment
Q8
X coordinate Q9
Y coordinate Q10
Q11
Q12
Part program
%360712 G71 *
N10 D00 Q1 P01 + 90 *
N20 D00 Q2 P01 + 0 *
N30 D00 Q3 P01+ 5 *
N40 D00 Q4 P01 + 45 *
N50 D00 Q5 P01 + 2 *
N60 D00 Q6 P01+ 0 *
Assign the sphere data to the paramN70 D00 Q7 P01 + 360 *
eters
N80 D00 Q8 P01 + 5 *
N90 D00 Q9 P01 + 50 *
N100 D00 Q10 P01 + 50 *
N110 D00 Q11 P01 + 500 *
N120 D00 Q12 P01 + 0 *
N130 G30 G17 X+0 Y+0 Z50 *
N140 G31 G90 X+100 Y+100 Z+0 *
Workpiece blank; define and insert tool
N150 G99 T1 L+0 R+5 *
N160 T1 G17 S1000 *
N170 G00 G40 G90 Z+100 M06 *
N180 L 10,0 * ............................................................. Subprogram call
N190 G00 G40 G90 Z+100 M02 * ............................. Retract tool; return jump to beginning of program
Continued...
TNC 360
7-19
7.8
N250 G54 X+Q9 Y+Q10 Z-Q4 * ................................. Shift datum to center of sphere
N260 G73 G90 H+Q06 * ............................................ Rotation for program start (starting plane angle)
N270 I+0 J+0 * .......................................................... Pole for pre-positioning
N280 G10 G40 G90 R+Q24 H+Q6 * .......................... Pre-positioning before machining
N290 G98 L1 *
N300 K+0 I+Q108 *
N310 G01 Y+0 Z+0 FQ11 * ........................................ Pre-positioning at the beginning of each arc
N320 G98 L2 *
N330 G11 G40 R+Q4 H+Q21 FQ11 *
N340 D02 Q21 P01 +Q21 P02 +Q03 *
N350 D11 P01 +Q21 P02 +Q02 P03 2 *
N390 D01 Q26 P01 +Q26 P02 +Q08 * ...................... Prepare the next rotation increment
N400 D00 Q21 P01 Q01 * .......................................... Reset solid angle for machining to the starting value
N410 G73 G90 H+Q26 *
N420 D12 P01 +Q26 P02 +Q07 P03 1 *
N430 D09 P01 +Q26 P02 + Q07 P03 1 *
Rotate the coordinate system about the Z axis until plane end
angle is reached
7-20
TNC 360
Cycles
Programming a cycle
Defining a cycle
Select the desired cycle and program it in the dialog by entering the
appropriate G function. The following example shows how to define any
cycle:
ENT
SETUP CLEARANCE?
e.g.
+/
ENT
+/
ENT
THREAD PITCH?
e.g.
END
8-2
TNC 360
8
8.1
Cycles
General Overview of Cycles
Cycle call
The following cycles become effective immediately upon being defined in
the part program:
Coordinate transformation cycles
Dwell time
The SL cycle G37 CONTOUR GEOMETRY
All other cycles must be called separately. Further information on cycle
calls is provided in the descriptions of the individual cycles.
If the cycle is to be executed after the block in which it was called up,
program the cycle call
with G79
with the miscellaneous function M99.
If the cycle is to be run after every positioning block, it must be called with
the miscellaneous function M89 (depending on the machine parameters).
M89 is cancelled with M99.
Prerequisites:
The following data must be programmed before a cycle call:
TNC 360
8-3
Cycles
1.
2.
3.
4.
A
C
A
C
A
t
B
C
Fig. 8.1:
PECKING cycle
Input data
SETUP CLEARANCE A :
Distance between tool tip (at starting position) and workpiece surface.
TOTAL HOLE DEPTH B :
Distance between workpiece surface and bottom of hole (tip of drill
taper).
PECKING DEPTH C :
Infeed per cut.
If the TOTAL HOLE DEPTH equals the PECKING DEPTH, the tool will
drill to the programmed hole depth in one operation. The PECKING
DEPTH does not have to be a multiple of the TOTAL HOLE DEPTH. If
the PECKING DEPTH is greater than the TOTAL HOLE DEPTH, the tool
only advances to the TOTAL HOLE DEPTH.
DWELL TIME:
Length of time the tool remains at the total hole depth for chip breaking.
Calculations
The advanced stop distance is automatically calculated by the control:
Total hole depth up to 30 mm: t = 0.6 mm
Total hole depth over 30 mm: t = Total hole depth / 50
maximum advanced stop distance: 7 mm
8-4
TNC 360
8
8.2
Cycles
Simple Fixed Cycles
Example: Pecking
Hole coordinates:
1
= 20 mm
= 30 mm
= 80 mm
= 50 mm
Hole diameter:
6 mm
Setup clearance:
2 mm
15 mm
Pecking depth:
10 mm
Dwell time:
Feed rate:
1 s
80 mm/min
Y
6
2
50
30
80
20
TNC 360
Begin program
Define workpiece blank
Tool definition
Tool call
Cycle definition PECKING
Retract the spindle, insert the tool
Pre-positioning for first hole, spindle ON
Pre-positioning in Z to setup clearance, cycle call
Move to second hole, cycle call
Retract tool and end program
8-5
Cycles
8.2
1.
2.
3.
4.
Required tool
A floating tap holder is required for tapping. The
floating tap holder compensates the tolerances for
feed rate and spindle speed during the tapping
process.
Input data
SETUP CLEARANCE A :
Distance between tool tip (starting position) and workpiece surface.
Standard value: 4x thread pitch.
TOTAL HOLE DEPTH B (thread length):
Distance between workpiece surface and end of thread.
DWELL TIME:
Enter a dwell time between 0 and 0.5 seconds to prevent wedging of
the tool when retracted. (Further information is available from the
machine tool builder.)
FEED RATE F:
Traversing speed of the tool during tapping.
Calculations
The feed rate is calculated as follows:
F = Sxp
F: Feed rate (mm/min)
S: Spindle speed (rpm)
p: Thread pitch (mm)
When a cycle is being run, the spindle speed override control is disabled. The feed rate override control is only
active within a limited range (preset by the machine tool builder).
For tapping right-hand threads activate the spindle with M3; for left-hand threads use M4.
8-6
TNC 360
8
8.2
Cycles
Simple Fixed Cycles
= 20 mm
Pitch
1 mm
F = Sxp F =
Setup clearance:
3 mm
Thread depth:
20 mm
Dwell time:
0.4 s
Feed rate:
100 mm/min
X
20
50
TNC 360
8-7
Cycles
8.2
Machine and control must be specially prepared by the machine manufacturer to enable rigid tapping.
Input data
SETUP CLEARANCE A :
Distance between tool tip (starting position) and workpiece surface.
TAPPING DEPTH B :
Distance between workpiece surface (beginning of thread) and
end of thread
THREAD PITCH C :
The sign differentiates between right-hand and left-hand threads:
+ = Right-hand thread
= Left-hand thread
X
B
Fig. 8.3:
The control calculates the feed rate from the spindle speed. If the spindle speed override knob is turned during
tapping, the control automatically adjusts the feed rate accordingly. The feed rate override is disabled.
8-8
TNC 360
8
8.2
Cycles
Simple Fixed Cycles
Fig. 8.4:
Required tool
This cycle requires a center-cut end mill (ISO 1641). The cutter diameter
must not be larger than the width of the slot and not smaller than half the
width of the slot. The slot must be parallel to an axis of the current
coordinate system.
A
C
Input data
SETUP CLEARANCE A
MILLING DEPTH B : Depth of the slot
PECKING DEPTH C
FEED RATE FOR PECKING:
Traversing speed of the tool during penetration.
FIRST SIDE LENGTH D :
Length of the slot. Specify the sign to determine the first milling
direction.
SECOND SIDE LENGTH E :
Width of the slot
FEED RATE:
Traversing speed of the tool in the working plane.
Fig. 8.5:
Fig. 8.6:
TNC 360
8-9
Cycles
8.2
Y
100
90
10
15 mm
Setup clearances:
2 mm
Milling depths:
15 mm
Pecking depths:
5 mm
80 mm/min
1
Slot length
1st milling direction
Slot widths:
Feed rate:
50 mm
80 mm
+
10 mm
10
10
X
15
30
80
100
120 mm/min
8-10
TNC 360
8
8.2
Cycles
Simple Fixed Cycles
The cutter begins milling in the positive axis direction of the longer side.
With square pockets, the cutter begins in the positive Y direction. At the
end of the cycle, the tool returns to the starting position.
C
B
Requirements / Limitations
This cycle requires a center-cut end mill (ISO 1641) or a separate pilot
drilling operation at the pocket center. The pocket sides are parallel to the
axes of the coordinate system.
Fig. 8.7:
G76
G75
F
D
Fig. 8.8:
Calculations
Stepover factor k:
k = KxR
K:
R:
Rounding radius
Fig. 8.9:
TNC 360
8-11
Cycles
8.2
= 60 mm
= 35
Setup clearance:
mm
2 mm
10 mm
Pecking depth:
4 mm
55
80 mm/min
80 mm
40 mm
100 mm/min
Milling depth:
40
15
80
20
X
100
8-12
TNC 360
8
8.2
Cycles
Simple Fixed Cycles
SETUP CLEARANCE A
MILLING DEPTH B : DEPTH of the pocket
PECKING DEPTH C
FEED RATE FOR PECKING:
Traversing speed of the tool during penetration.
CIRCLE RADIUS R :
Radius of the circular pocket.
FEED RATE:
Traversing speed of the tool in the working plane.
A
C
B
Fig. 8.11:
F
G78
G77
R
Fig. 8.12:
TNC 360
8-13
Cycles
8.2
Y =
50 mm
Setup clearance:
Z
2 mm
Milling depth:
12 mm
Pecking depth:
6 mm
80 mm/min
Circle radius:
35 mm
100 mm/min
Y
12
35
50
60
8-14
TNC 360
Cycles
8.3 SL Cycles
Subcontour list (SL) cycles are very powerful cycles that enable you to mill
any required contour. They are characterized by the following features:
A contour can consist of superimposed subcontours. Pockets and
islands compose the subcontours.
The subcontours are programmed as subprograms.
The control automatically superimposes the subcontours and calculates
the points of intersection of the subcontours with each other.
Cycle G37: CONTOUR GEOMETRY contains the subcontour list and is a
purely geometric cycle, containing no cutting data or infeed values.
The machining data are defined in the following cycles:
PILOT DRILLING G56
ROUGH-OUT G57
CONTOUR MILLING G58/G59
TNC 360
8-15
Cycles
8.3
SL Cycles
D
B
Input data
Enter the LABEL numbers of the subprograms. A
maximum of 12 subprograms can be listed.
Effect
Cycle G37 becomes effective as soon as it is
defined.
Fig. 8.13:
Example:
G99 T3 L+0 R+3.5 *
T3 G17 S1500 * .......................................................... Working plane perpendicular to Z axis
G37 P01 1 P02 2 P03 3 *
.
.
. G40 Z+100 M2 *
G00
.
.
. L1 ........................................................................ First contour label of the CONTOUR GEOMETRY cycle G37
G98
G01 G42 X+0 Y+10 .................................................... Machining in the X/Y plane
X+20 Y+10
I+50 J+50
.
.
.
8-16
TNC 360
8
8.3
Cycles
SL Cycles
ROUGH-OUT G57
Process
Cycle G57 specifies the cutting path and partitioning.
The tool is positioned in the tool axis above the first infeed point, taking
the finishing allowance into account.
Then the tool penetrates into the workpiece at the programmed feed
rate for pecking.
Milling the contour:
The tool mills the first subcontour at the specified feed rate, taking the
finishing allowance into account.
When the tool returns to the infeed point, it is advanced to the next
pecking depth.
This process is repeated until the programmed milling depth is reached.
Further subcontours are milled in the same manner.
Roughing out pockets:
After milling the contour the pocket is roughed out. The stepover is
defined by the tool radius. Islands are jumped over.
If necessary, pockets can be cleared out with several downfeeds.
At the end of the cycle the tool returns to the setup clearance.
Required tool
This cycle requires a center-cut end mill (ISO 1641) if the pocket is not
separately pilot drilled or if the tool must repeatedly jump over contours.
Input data
SETUP CLEARANCE A
MILLING DEPTH B
PECKING DEPTH C
FEED RATE FOR PECKING:
Traversing speed of the tool during penetration.
FINISHING ALLOWANCE D :
Allowance in the working plane (positive number).
ROUGH-OUT ANGLE :
Feed direction for roughing out. The rough-out angle is relative to the
angle reference axis and can be set such that the resulting cuts are as
long as possible with few cutting movements.
FEED RATE:
Traversing speed of the tool in the working plane.
A
C
B
D
Fig. 8.14:
Fig. 8.15:
TNC 360
8-17
Cycles
8.3
SL Cycles
20
15
70
G98 L1
Setup clearance:
Milling depth:
Pecking depth:
Feed rate for pecking:
Finishing allowance:
Rough-out angle:
Feed rate for milling:
Y
60
12
mm
mm
mm
mm/min
G98 L2
mm/min
8-18
Subprogram 1:
Geometry of the island
(From radius compensation G42 and counterclockwise
machining, the control concludes that the contour element is
an island)
Subprogram 2:
Geometry of the auxiliary pocket:
External limitation of the machining surface
(From radius compensation G41 and counterclockwise
machining, the control concludes that the contour element is
a pocket)
TNC 360
8
8.3
Cycles
SL Cycles
Overlapping contours
Pockets and islands can be overlapped to form a new contour. The area of
a pocket can thus be enlarged by another pocket or reduced by an island.
Starting position
Machining begins at the starting position of the first pocket in cycle G37
CONTOUR GEOMETRY. The starting position should be located as far as
possible from the overlapping contours.
Fig. 8.16:
50 mm
50 mm
Circle radii
50
R = 25 mm
Setup clearance:
10 mm
Pecking depth:
5 mm
500 mm/min
Finishing allowance:
Rough-out angle:
2 mm
Milling depth:
Feed rate for pecking:
R2
Y =
Y =
X = 35 mm
X = 65 mm
R2
1
2
X
35
65
500 mm/min
Continued...
TNC 360
8-19
Cycles
8.3
SL Cycles
.
.
.
N140 G98 L0 *
N150 G98 L2 *
.
.
.
N180 G98 L0 *
N9999 %S820I G71 *
S1
N110
N120
N130
N140
G98 L1 *
G01 G41 X+10 Y+50 *
I+35 J+50 G03 X+10 Y+50 *
G98 L0 *
Left pocket
N150
N160
N170
N180
N9999
G98 L2 *
G01 G41 X+90 Y+50 *
I+65 J+50 G03 X+90 Y+50 *
G98 L0 *
% S820I G71 *
Right pocket
A
S2
Fig. 8.17:
Fig. 8.18:
8-20
Fig. 8.19:
TNC 360
8
8.3
Cycles
SL Cycles
Area of inclusion
Both areas (element A and element B) are to be
machined including the area of overlap.
A and B must be pockets.
The first pocket in cycle G37 must start outside
the second.
N110
N120
N130
N140
G98 L1 *
G01 G41 X+10 Y+50 *
I+35 J+50 G03 X+10 Y+50 *
G98 L0 *
N150
N160
N170
N180
G98 L2 *
G01 G41 X+90 Y+50 *
I+65 J+50 G03 X+50 Y+50 *
G98 L0 *
B
A
Fig. 8.20:
Area of exclusion
Surface A is to be machined without the portion
overlapped by B
A must be a pocket and B an island.
A must start outside of B.
N110
N120
N130
N140
G98 L1 *
G01 G41 X+10 Y+50 *
I+35 J+50 G03 X+10 Y+50 *
G98 L0 *
N150
N160
N170
N180
G98 L2 *
G01 G42 X+90 Y+50 *
I+65 J+50 G03 X+90 Y+50 *
G98 L0 *
B
A
Area of intersection
Only the area of intersection of A and B is to be
machined.
A and B must be pockets.
A must start inside B.
N110
N120
N130
N140
G98 L1 *
G01 G41 X+60 Y+50 *
I+35 J+50 G03 X+60 Y+50 *
G98 L0 *
N150
N160
N170
N180
G98 L2 *
G01 G41 X+90 Y+50 *
I+65 J+50 G03 X+90 Y+50 *
G98 L0 *
Fig. 8.22:
TNC 360
8-21
Cycles
8.3
SL Cycles
.
.
.
N210
N220
.
.
.
G98 L0 *
G98 L3 *
N250 G98 L0 *
N9999 %S822I G71 *
Area of inclusion
Elements A and B are to be left unmachined
including the area of overlap:
A and B must be islands.
The first island must start outside the second
island.
N180
N190
N200
N210
N220
N230
N240
N250
N9999
G98 L2 *
G01 G42 X+10 Y+50 *
I+35 Y+50 G03 X+10 Y+50 *
G98 L0 *
G98 L3 *
G01 G42 X+90 Y+50 *
I+65 J+50 G03 X+90 Y+50 *
G98 L0 *
% S822 I G71
Fig. 8.23:
The supplements and subprograms are entered in the main program on page 8-22.
8-22
TNC 360
8
8.3
Cycles
SL Cycles
Area of exclusion
All of surface A is to be left unmachined except the
portion overlapped by B:
A must be an island and B a pocket.
B must start inside A.
N180
N190
N200
N210
N220
N230
N240
N250
N9999
G98 L2 *
G01 G42 X+10 Y+50 *
I+35 J+50 G03 X+10 Y+50 *
G98 L0 *
G98 L3 *
G01 G41 X+40 Y+50 *
I+65 J+50 G03 X+40 Y+50 *
G98 L0 *
S822I G71*
Fig. 8.24:
Area of intersection
Only the area of intersection of A and B is to be left
unmachined.
A and B must be islands.
A must start inside B.
N180
N190
N200
N210
N220
N230
N240
N250
N9999
G98 L2 *
G01 G42 X+60 Y+50 *
I+35 J+50 G03 X+60 Y+50 *
G98 L0 *
G98 L3 *
G01 G42 X+90 Y+50 *
I+65 J+50 G03 X+90 Y+50 *
G98 L0 *
% S822I G71
Fig. 8.25:
TNC 360
8-23
Cycles
8.3
SL Cycles
16
50
R
16
5
R2
16
25
35
65
8-24
TNC 360
8
8.3
Cycles
SL Cycles
Fig. 8.26:
Fig. 8.27:
Milling completed
Process
Pilot drilling of holes for cutter infeed at the starting points of the subcontours. With SL contours that consist of several overlapping surfaces, the
cutter infeed point is the starting point of the first subcontour:
The tool is positioned above the first infeed point.
The subsequent drilling sequence is identical to that of cycle G83:
PECKING.
The tool is then positioned above the next infeed point, and the drilling
process is repeated.
X
Input data
SETUP CLEARANCE
MILLING DEPTH
PECKING DEPTH
DWELL TIME
FEED RATE
Fig. 8.28:
FINISHING ALLOWANCE
Allowed material for the drilling operation (see Fig. 8.29).
The sum of tool radius and finishing allowance should be the same for
pilot drilling and roughing out.
Y
D
R
X
Fig. 8.29:
TNC 360
Finishing allowance
8-25
Cycles
8.3
SL Cycles
C
B
Fig. 8.30:
Required tool
This cycle requires a center-cut end mill (ISO 1641).
Direction of rotation for CONTOUR MILLING
With clockwise direction of rotation G58:
M3 defines climb milling for pocket and island.
With counterclockwise direction of rotation G59:
M3 defines up-cut milling for pocket and island.
Input data
SETUP CLEARANCE A
MILLING DEPTH B
PECKING DEPTH C
FEED RATE FOR PECKING:
Traversing speed of the tool during penetration.
FEED RATE:
Traversing speed of the tool in the working plane.
Y
D
X
Fig. 8.31: Finishing allowance
8-26
TNC 360
8
8.3
Cycles
SL Cycles
The following scheme illustrates the application of the cycles Pilot Drilling,
Rough-Out and Contour Milling in part programming:
1. List of contour subprograms
G37
Cycle call not required.
2. Drilling
Define and call drilling tool
G56
Pre-positioning
Cycle call required!
Fig. 8.32:
Fig. 8.33:
ROUGH-OUT cycle
Fig. 8.34:
3. Rough-out
Define and call tool for rough milling
G57
Pre-positioning
Cycle call required!
4. Finishing
Define and call finish milling tool
G58/G59
Pre-positioning
Cycle call required!
5. Contour subprograms
M02 *
Subprograms for the subcontours.
TNC 360
8-27
Cycles
8.3
SL Cycles
8-28
TNC 360
Cycles
TNC 360
Fig. 8.35:
8-29
Cycles
8.4
Application
You can repeat machining operations at various locations on the workpiece by shifting the datum.
Activation
X
When the DATUM SHIFT cycle has been defined, all coordinate data are
based on the new datum. Shifted axes are identified in the status display.
Input data
Only the coordinates of the new datum need to be entered. Absolute
values are based on the workpiece datum manually defined with datum
setting. Incremental values are based on the last valid datum; this datum
can itself be shifted.
Fig. 8.36:
IY
X
IX
Cancellation
To cancel a datum shift, enter the datum shift coordinates X = 0, Y = 0
and Z = 0.
8-30
TNC 360
8
8.4
Cycles
Cycles for Coordinate Transformations
15
20
25
40
20
15
60
30
25 30
.
.
.
N230 G98 L0 *
N9999 %S840I G71 *
TNC 360
8-31
Cycles
8.4
Subprogram:
N110 G98 L1 *
N120 X10 Y10 M03 *
N130 Z+2 *
N140 G01 Z5 F200 *
N150 G41 X+0 Y+0 *
N160 Y+20 *
N170 X+25 *
N180 X+30 Y+15 *
N190 Y+0 *
N200 X+0 *
N210 G40 X10 Y10 *
N220 G00 Z+2 *
N230 G98 L0 *
The location of the subprogram (NC block) depends on the transformation
cycle:
LBL 1
Datum shift
Mirror image, rotation, scaling
8-32
block N110
block N130
LBL 0
block N230
block N250
TNC 360
8
8.4
Cycles
Cycles for Coordinate Transformations
Y
X
Fig. 8.39:
Activation
The MIRROR IMAGE cycle becomes active as soon
as it is defined. Mirrored axes are identified in the
status display.
Fig. 8.40:
Input data
Enter the axis that you wish to mirror. The tool axis
cannot be mirrored.
Y
X
Cancellation
To cancel the mirror image, program G28 without
defining an axis.
Fig. 8.41:
TNC 360
8-33
Cycles
8.4
Z
Z
Y
Y
3
X
60
20
15
70
25 30
.
.
.
N250 G98 L0 *
N9999 %S844I G71 *
8-34
TNC 360
8
8.4
Cycles
Cycles for Coordinate Transformations
ROTATION G73
Application
Within a program the coordinate system can be rotated around the active
datum in the working plane.
Activation
A rotation becomes active as soon as the cycle is defined. This cycle is
also effective in the POSITIONING WITH MANUAL INPUT mode.
Reference axis for the rotation angle:
X/Y plane
Y/Z plane
Z/X plane
X axis
Y axis
Z axis
Z
Z
X
Y
35
60
70
Continued...
TNC 360
8-35
Cycles
8.4
.
.
.
N250 G98 L0 *
N9999 %S846I G71 *
The corresponding subprogram (see page 8-32) is programmed after M2.
8-36
TNC 360
8
8.4
Cycles
Cycles for Coordinate Transformations
Z
Z
Y
Y
16
12
2
70
20
15
20
24
60
25 30
.
.
.
N250 G98 L0 *
N9999 %S847I G71 *
The corresponding subprogram (see page 8-32) is programmed after M2.
TNC 360
8-37
Cycles
.
.
.
.
.
.
8-38
TNC 360
8
8.5
Cycles
Other Cycles
OO
Activation
The angle of orientation defined in the cycle is positioned to with M19.
If M19 is executed without a cycle definition, the machine tool spindle will
be oriented to the angle set in the machine parameters.
Fig. 8.42:
Prerequisite
The machine must be set up for this cycle.
Input data
Angle of orientation S (based on the angle reference axis of the working
plane)
Input range:
Input resolution:
TNC 360
0 to 360.
0.1.
8-39
Possible applications:
Blockwise transfer (DNC mode)
Downloading program files into the TNC
Transferring program files from the TNC to
external storage devices
Printing files
9.1
Fig. 9.1:
EXT
Menu option
PROGRAM DIRECTORY
Blockwise transfer
In the operating modes PROGRAM RUN/FULL SEQUENCE and SINGLE
BLOCK, it is possible to transfer programs which exceed the memory
capacity of the TNC by means of blockwise transfer with simultaneous
execution (see page 3-6).
9-2
TNC 360
9.2
RS-232-C/V.24 Interface
HEIDENHAIN devices
External unit
eg. FE
GND
TXD
RXD
RTS
CTS
DSR
GND
DTR
Fig. 9.2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
HEIDENHAIN
standard cable
3m
RS-232-C
adapter block
HEIDENHAIN
connecting cable
max. 17 m
ws/br
ws/br
gn
ge
gr
rs
bl
rt
br
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ws/br
ws/br
ge
gn
rs
gr
br
rt
bl
X21
TNC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GND
RXD
TXD
CTS
RTS
DTR
GND
Chassis
Receive Data
Transmit Data
Clear To Send
Request To Send
Data Terminal Ready
Signal Ground
The connecting pin layout on the TNC logic unit (X25) is different from that on the adapter block.
Non-HEIDENHAIN devices
The connector pin layout on a non-HEIDENHAIN device may differ considerably from that on a HEIDENHAIN device. The pin layout will depend on
the unit and the type of data transfer.
TNC 360
9-3
9.3
HEIDENHAIN devices
HEIDENHAIN devices (FE floppy disk unit and ME magnetic tape unit) are
designed for use with the TNC. They can be used for data transfer without
further adjustments.
Example: FE 401 Floppy Disk Unit
Non-HEIDENHAIN devices
The TNC and non-HEIDENHAIN devices must be adapted to each other.
Adapting a non-HEIDENHAIN device for the TNC
PC: Adapt the software
Printer: Adjust the DIP switches
Adapting the TNC for a non-HEIDENHAIN device
Set user parameter 5020.
9-4
TNC 360
10
MOD Functions
The MOD functions provide additional displays and input possibilities. The
MOD functions available depend on the selected operating mode.
Functions available in the operating modes PROGRAMMING AND EDITING and TEST RUN:
MOD
ENT
Page through the MOD functions until you find the desired function.
Repeatedly
10-2
TNC 360
10
MOD Functions
Code number
86357
123
Timers for:
Control ON
Program run
Spindle ON
857282
Code numbers are entered in the dialog field after the corresponding MOD
function is selected.
BAUD RATE
The baud rate is the speed of data transfer in bits per second.
Permissible baud rates (enter with the numerical keys):
110, 150, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 baud
The ME 101 has a baud rate of 2400.
RS-232-C Interface
The proper setting depends on the connected device.
Use the ENT key to select the baud rate.
External device
RS-232-C interface =
TNC 360
FE
ME
EXT
empty
10-3
10
MOD Functions
Starting position A
Target position of the tool Z
Workpiece datum W
Scale datum M
Z
4
Fig. 10.1:
10-4
TNC 360
10
MOD Functions
TNC 360
10-5
10
MOD Functions
Z
Z
Z
max
min
The maximum traverse range is defined by software limit switches. This range can be additionally
limited through the MOD function AXIS LIMIT. With
this function you can enter the maximum traverse
positions for the positive and negative directions.
These values are referenced to the scale datum.
min
max
Y
max
min
X
Fig. 10.2:
MOD
Enter the values that you wrote down as LIMITS in the corresponding axes.
END
The tool radius is not automatically compensated in the axis traverse limits values.
Traverse range limits and software limit switches become active as soon as the reference marks are
crossed over.
In every axis the TNC checks whether the negative limit is smaller than the positive one.
The reference positions can also be captured directly with the function "Actual Position Capture"
(see page 4-20).
10-6
TNC 360
11
Dialog language
Interface behavior
Traversing speeds
Machining sequences
Effect of the overrides
Note:
The character defined here for end of program is also valid for the setting
of the standard interface.
MP5010
11-2
Function
MP
Bit
End of program
Beginning of program
5010.0 .................................................................................. 0 to 7
5010.0 .................................................................................. 8 to 15
Data input
Data output
5010.1 .................................................................................. 0 to 15
5010.2 .................................................................................. 0 to 15
5010.3 .................................................................................. 0 to 7
5010.3 .................................................................................. 8 to 15
Positive acknowledgment
Negative acknowledgment
5010.4 .................................................................................. 0 to 7
5010.4 .................................................................................. 8 to 15
5010.5 .................................................................................. 0 to 15
TNC 360
11
MP5020
Function
Selections
Value
7
8
Active ........................................................................................... +4
Inactive ......................................................................................... +0
Active ........................................................................................... +8
Inactive ......................................................................................... +0
Character parity
Even ............................................................................................. +0
Odd ............................................................................................. +16
Character parity
11/2
2
1
1
Example
To adapt the TNC interface to an external nonHEIDENHAIN device, use the following setting:
8 data bits, BCC any character, transmission stop with DC3, even character parity, character parity desired, 2 stop bits.
Input value:
Interface type
MP5030
TNC 360
Function
Selections
Value
Interface type
Standard .......................................................................................... 0
Interface for blockwise transfer ...................................................... 1
11-3
11
MP6010
Function
Value
Function
Value
MP6120
MP6130
MP6140
MP6150
MP7210
Function
Value
11-4
TNC 360
11
MP7220
Function
Value
Dialog language
MP7230
Function
Value
MP7240
Function
Value
TNC 360
Parameter
Function
Value
MP7260
MP7261
MP 7264
11-5
11
MP7270
Function
Selections
Value
Decimal character
MP7280
Function
Value
11-6
TNC 360
11
MP7290
Function
Value
MP7300
Function
Selections
Value
Graphics display
Entry range: 0 to 3 (sum of the individual values)
MP7310
Function
Selections
Value
View in 3 planes
according to ISO 6433, Part 1
Rotate ........................................................................................... +2
Do not rotate ................................................................................ +0
MP7410
Function
Value
Value
Overwrite current tool data with the calibrated data of the touch probe ......................................................... 0
Retain current tool data .................................................................................................................................... 1
TNC 360
11-7
11
MP7420
Function
Selections
Value
Merge contours
Milling in depth
MP7430
Function
Value
Effect of M functions
The M functions M6 and M89 are influenced by MP 7440:
Entry range: 0 to 7
(Sum of the individual values in the value column)
MP7440
11-8
Function
Selections
Value
TNC 360
11
MP7460
Function
Value
Maintain constant path speed at inside corners for angles of (degrees) ...................................... 0 to 179.999
MP7470
Function
Value
MP7620
TNC 360
Function
Selections
Value
1% increments ................................................................. +0
0.01% increments ............................................................ +8
11-9
11
MP7640
Function
Value
No handwheel .................................................................................................................................................. 0
HR 330 with additional keys the keys for traverse direction
and rapid traverse are evaluated by the NC ..................................................................................................... 1
HR 130 without additional keys ....................................................................................................................... 2
HR 330 with additional keys the keys for traverse direction
and rapid traverse are evaluated by the PLC ................................................................................................... 3
HR 332 with 12 additional keys ....................................................................................................................... 4
Multi-axis handwheel with additional keys ...................................................................................................... 5
11-10
TNC 360
11
Function
Effective at
start of
block
end of
block
M00
M02
Stop program run / Spindle stop / Coolant off. Clear the status display
(depending on machine parameter) / Return to block 1
M03
Spindle on clockwise
M04
Spindle on counterclockwise
M05
Spindle stop
M06
M08
Coolant on
M09
Coolant off
M13
M14
M30
M89
or
TNC 360
M90
Smoothing corners
M91
M92
M93
M94
M95
Reserved
M96
Reserved
M97
M98
M99
11-11
11
Function
Effective at
start of
block
M01
M07
M11
M12
Effective at
M50
M51
M53
M54
M55
M16
M56
M17
M57
M18
M58
M59
end of
block
M52
M15
M19
M20
M60
M21
M61
M22
M62
M23
M63
M24
M64
M25
M65
M26
M66
M27
M67
M28
M68
M29
M69
M31
M70
M32
M71
M33
M72
M34
M73
M35
11-12
Function
start of
block
end of
block
M10
M74
M36
M75
M37
M76
M38
M77
M39
M78
M40
M79
M41
M80
M42
M81
M43
M82
M44
M83
M45
M84
M46
M85
M47
M86
M48
M87
M49
M88
TNC 360
11
Parameter value
Q109
Q109
Q109
Q109
= 1
= 2
= 1
= 0
Parameter value
Q110
Q110
Q110
Q110
Q110
= 1
= 0
= 1
= 2
= 3
TNC 360
M function
Parameter value
M08: Coolant on
M09: Coolant off
Q111 =
Q111 =
1
0
11-13
11
Parameter value
Millimeters
Inches
Q113 =
Q113 =
0
1
Coordinate axis
Parameter
X axis
Y axis
Z axis
IV axis
Q115
Q116
Q117
Q118
11-14
Parameter value
R0
RL
RR
R+
R
Q123 = 0
Q123 = 1
Q123 = 2
Q123 = 3
Q123 = 4
TNC 360
11
V
2 . R .
Units:
S in
V in
R in
rpm
m/min
mm
You can read the spindle speed directly from the diagram.
Example:
Tool radius
Cutting speed
Spindle speed
R = 15 mm
V = 50 m/min
S 500 rpm
(calculated S = 497 rpm)
Tool radius
R [mm]
Cutting velocity
V [m/min]
TNC 360
11-15
11
Feed rate F
The feed rate F of the tool is calculated from the number of tool teeth n,
the permissible depth of cut per tooth d, and the spindle speed S:
F= n.d.S
Units:
F
d
S
in
in
in
mm/min
mm
rpm
The feed rate read from the diagram must be multiplied by the number of
tool teeth.
Example:
Depth of cut per tooth
Spindle speed
Feed rate from diagram
Number of tool teeth
Feed rate to enter
d
S
F
n
F
=
=
=
=
=
0.1 mm
500 rpm
50 mm/min
6
300 mm/min
Spindle speed
S [rpm]
11- 16
TNC 360
11
in
in
in
mm/min
mm/1
rpm
The feed rate for tapping can be read directly from the diagram below.
Example:
Thread pitch
Spindle speed
Feed rate for tapping
p = 1 mm/rev
S = 100 rpm
F = 100 mm/min
Thread pitch
p [mm/rev]
Spindle speed
S [rpm]
TNC 360
11-17
11
3 axes
2 axes
3 axes
Background programming
For editing one part program while the TNC is running another.
Test run
Internally and with test run graphics.
Program types
HEIDENHAIN plain language format and ISO programs
Tool table (program 0)
Program memory
Battery-buffered for up to 32 programs
Capacity: approximately 4000 program blocks
Tool definitions
Up to 254 tools in one program or up to 99 tools in the tool table
(program 0).
11-18
TNC 360
11
Programmable Functions
Contour elements
Straight line, chamfer, circular arc, circle center, circle radius, tangentially
connecting arc, corner rounding.
Program jumps
Subprogram, program section repeat, main program as subprogram.
Fixed cycles
Pecking, tapping (also with synchronized spindle), rectangular and circular
pocket milling, slot milling, milling pockets and islands from a list of
subcontour elements.
Coordinate transformations
Datum shift, mirroring, rotation, scaling factor.
3D Touch Probe System
Probing functions for measuring and datum setting, digitizing 3D surfaces
(optional, only available with HEIDENHAIN plain language programming).
Mathematical functions
Basic operations +, , . and %, trigonometric functions
sin, cos, tan and arctan.
Square roots ( a ) and root sum of squares ( a2 + b2 ).
Logical comparisons greater than, smaller than, equal to, not equal to.
TNC Specifications
TNC 360
6 ms
Ambient temperature
0C to 45C (operation)
30C to 70C (storage)
Traverse
Traversing speed
Spindle speed
Input resolution
11-19
11
Accessories
FE 401 Floppy Disk Unit
Description
Applications
Data interfaces
TNC :
PRT :
Diskette drives
Diskette type
Models
Spindle insertion
TS 120: manual
TS 511: automatic
Probing reproducibility
Probing speed
Electronic Handwheels
11-20
HR 130
Integrable unit
HR 330
TNC 360
11
TNC 360
11-21
11
ARITHMETICAL ERROR
You have attempted to calculate with illegal values.
Define values within the range limits.
Choose probe positions for the 3D touch probe that are farther separated.
Calculations must be mathematically possible.
CYCL INCOMPLETE
EXCESSIVE SUBPROGRAMMING
Conclude subprograms with G98 L0.
Program subprogram calls without repetition (L ..,0).
Program a call for program section repeats to include the repetitions
(L ..,5).
Subprograms cannot call themselves.
Subprograms cannot be nested in more than 8 levels.
Main programs cannot be nested as subprograms in more than 4
levels.
11-22
TNC 360
11
KEY NON-FUNCTIONAL
This message always appears when you press a key that is not needed for
the current dialog.
PROGRAM-START UNDEFINED
Program the first traverse block with G00 G90 G40 (tool must be called
previously).
Do not resume an interrupted program at a block with a tangential arc
or pole transfer.
TNC 360
11-23
11
WRONG RPM
Program a spindle speed within the permissible range.
11-24
TNC 360
11
Group
Function
Positioning functions
00
01
02
03
05
06
07
10
11
12
13
15
16
04
28
36
37
39
54
56
57
58
59
72
73
74
75
76
77
78
83
84
85
79
Cycle call
17
18
19
20
24
25
26
27
*
*
*
*
29
30
31
38
40
41
42
43
44
50
51
55
Unit of measurement
70
71
Definition of positions
90
91
98
99
Tool definition
Cycles
Selecting the
working plane
Chamfers
Corner rounding
Approaching and departing
a contour
Definition of the
workpiece blank
Traverse with/without
radius compensation
TNC 360
*
*
*
*
5-10
5-10
5-18
5-18
5-18
5-24
5-41
5-28
5-28
5-30
5-30
5-30
5-32
8-38
8-33
8-39
8-26
8-3
8-30
8-25
8-17
8-26
8-26
8-36
8-35
8-9
8-11
8-11
8-13
8-13
8-4
8-6
8-8
8-3
5-16
5-16
5-16
5-16
5-13
5-26
5-6
5-6
5-28
4-14
4-14
3-4
4-12
4-12
4-12
4-12
4-12
1-20
4-9
7-17
4-14
4-14
1-11
1-11
6-2
4-7
11-25
11
11-26
Address
letter
Function
A
B
C
F
F
F
Feed rate
Dwell time with G04
Scaling factor with G72
Traversing conditions
H
H
I
J
K
L
L
L
Help functions
Block number
P
P
R
R
R
R
R
Polar radius
Circle radius with G02/G03/G05
Rounding radius with G25/G26/G27
Chamfer side length with G24
Tool radius with G99
S
S
Spindle speed
Oriented spindle stop with G36
T
T
U
V
W
X
Y
Z
X axis
Y axis
Z axis
End of block
TNC 360
11
Parameter definitions
TNC 360
Function
00
Assign
7-3
01
02
03
04
Addition
Subtraction
Multiplication
Division
7-5
7-5
7-5
7-5
05
Square root
7-5
06
07
Sine
Cosine
7-7
7-7
08
09
10
11
12
If equal, jump
If not equal, jump
If greater than, jump
If less than, jump
7-8
7-8
7-8
7-8
13
7-7
14
Error number
7-11
15
7-11
19
7-11
Refer to page
a2 + b2)
7-7
11-27
11
Function
Effective at
start of
block
end of
block
M00
M02
Stop program run / Spindle stop / Coolant off. Clear the status display (depending on machine parameter) / Return to block 1
M03
Spindle on clockwise
M04
Spindle on counterclockwise
M05
Spindle stop
M06
M08
Coolant on
M09
Coolant off
M13
M14
M30
M89
or
11-28
M90
Smoothing corners
M91
M92
M93
M94
M95
Reserved
M96
Reserved
M97
M98
M99
TNC 360