EN - 840D - Complete DIN Milling 01 2008
EN - 840D - Complete DIN Milling 01 2008
Training Documentation
SINUMERIK 810/840D
Valid for:
Control
SINUMERIK 810/840D
Edition 01.2008
Module content
1 Brief description
Objective of the module:
Having worked through this module you will be familiar with the most important technological aspects
and machine functions.
This module shows the general layout of a program with respect to the technological commands as
per DIN 66025-2 for Turning and Milling.
Layout of a CNC-program
Programming of the technological data
Switching commands
Programmable pre-settings
Summary
Layout of a CNC-
program Section 1
Section 5
Summary
Each program is compiled and stored under a program name in the con-
trol unit. The name can contain letters as well as numbers.
Program layout:
Block
Auxil-
Nr.. Misc.
iary Interpolation para-
Co-ordinate axes Feed Speed Tool func-
com- meter tion
mand
N G X Y Z I J K F S T M
The geometrical data include all instructions that clearly define mathemati-
cally the motion of the tool or the axes.
The technological data are used for instance to activate the required tool
and to pre-select the necessary cutting parameters feed rate and spindle
speed. Miscellaneous functions can control for example such things as di-
rection of rotation and auxiliary appliances.
Programming example:
….
N80 T1; Roughing tool
N90 M6
N100 G54 F0.2 S180 M4
N110 G00 X20 Y0 Z2 D1
N120 …… …..
The address T is followed by the name of the tool, which may be stated
either with numbers or letters. (Here only the variant using numbers will be
dealt with.)
All applicable tool data (e.g. tool type, length, radius etc.) are activated in
the program with the address D.
Here a complete set of data D is referred to as „Cutting edge“.
Several cutting edge numbers (D1 … D9) may be generated for each tool.
After the call-up of the tool follows the infinitely variable selection of the
optimum cutting values with the addresses F and S.
The feed rate with the address F can be entered either as feed per min vf
(in mm/min) or as feed per revolution f (in mm).
Generally speaking the following starting status for the machines applies:
Instruction Meaning
M3
M4
M3
Direction of viewing
M4
This section describes just a few of the multitude of possible selections for
turning and milling machines that deserve highlighting.
(Codes that have already been dealt with are no longer included)
In order to reach the final position precisely the path velocity is reduced at
the end of the block towards zero. This is useful, for instance, to obtain rela-
tively sharp edges when machining around contour corners.
However, it must be borne in mind that, if there are too many positioning se-
quences, the additional machining time required in consequence cannot be
altogether disregarded.
In this case the tool moves as much as possible with constant velocity with-
out deceleration at the end of a block. Hence the machining time is less than
under the continuous path status „Exact stop“.
The corners of contours are machined without any relief and therefore the
corners are not so sharply defined.
With this function the control works with a speed control taking into account
several blocks ahead (Look Ahead).
The even speed in this instance results in better cutting conditions and also a
better surface quality.
The following image compares the frequent braking and accelerating se-
quences between the individual blocks in case of G60 and the constant
speed in case of G64.
Feed rate
G64 Continuous operation
with Look Ahead
Programmed feed rate
Block path
*
Usual preset starting status
The continuous path behaviour „Exact stop“ with the Codes G9 or G60
respectively does not entirely ensure dimension-wise as to how precisely
a corner point between two positioning blocks is attained.
If an exact stop has been activated in a program, the codes described be-
low can be used to specify a very precise braking behaviour at the end of
blocks. By this it is possible to determine as to how precisely the pro-
grammed corner point will be attained.
The tool motion changes to the next block when the tool has reached the
fine positioning window.
Sharp contour corners result at the programmed destination points.
Block change-over
Tool
Please find out the values pre-set on your machine by the machine manu-
facturer from his Operation Manual if you are going to use the described
codes.
The block change-over is initiated as soon as the control has evaluated the
command speed for all axes to be equal to zero.
Since the physical tool position lags behind the calculated value by a certain
amount, the effect in this case is that the axis changes direction before the
end of the interpolation is reached.
The greater the feed rate, the greater is also the lag of the tool behind the
evaluated value and therefore the rounding radius.
Hint: The rounding radius depends on the programmed path velocity as well
as the drive mechanics of the machine.
They can be activated only in conjunction with Exact stop and with G9
or G60 respectively.
Notes
Address Meaning
T Tool number
D Cutting edge (Tool data)
Instruction Meaning
Switching information
Instruction Meaning
M08 Coolant ON
M09 Coolant OFF
All instructions (except G9) mentioned above are modal, i.e. they remain
operative until the program calls for an opposed instruction.
1 Brief description
Objective of the module:
Having worked through this module you will be able to understand the programming planes and also
to specify points in a DIN conforming co-ordinate system.
This module explains the assignment of the axis and plane descriptions to the co-ordinate system of
the machine and also trains the determination of points in relation to the work space.
Programming planes
Section 4
The various axes of motion of machine tools are referred to within the work
space of CNC-machines by means of address letters. Here the denomina-
tion of the axes is according to the DIN-standard, the rules of which specify
the attribution of axis denominations.
The machine co-ordinate system that derives from this is imperative for the
geometrical description of work pieces, since this then permits the un-
equivocal determination of points in a plane and in space.
Z-Axis: This is parallel to the working spindle or coincides with it. The
positive direction is away from the work piece. In case there is more than
one spindle, one of them will be declared as the main spindle.
X-Axis: This is parallel to the setting-up plane or coincides with it. If the
Z-axis is vertical, the positive X-axis is directed towards the right. If the Z-
axis is horizontal, the positive X-axis is directed towards the left.
Y-Axis: This is at right angles to both the X and Z-axis, such that a
spatial Cartesian co-ordinate system results.
The direction „FROM“ the work piece „TO“ the tool is „PLUS“
The DIN standard provides the following variants for such cases.
Y
B
Explanation:
For the determination of all points within the work space, the control unit
requires a zero point of the co-ordinate system. This has been determined
by the machine manufacturer. All other points have either fixed distances
from the machine zero point or else the distance must be defined.
The work piece zero point (W) is the origin of the work
piece co-ordinate system. This can be specified by the
programmer and should always be chosen such that the
least calculation work is required to determine points on
the contour given the dimensioning of the drawing. For
turning work it lies mostly on the turning axis and the
right hand planar face.
ZMR
ZMF
XPF
XMR
ZMW
XMF
ZPF
Notes
ZPF
ZMR
ZMW
XMR
XMW
YMR
YMW
XMR = Distances from the reference point to the machine zero point. These are
YMR = set by the manufacturer during commissioning and are transferred to the
ZMR = control unit when the reference point is reached.
XMW = These represent distances from the machine zero point to the work piece
YMW = zero point. The work piece zero point must be determined by the opera-
ZMW = tor by scratching or probing and entered into the tool correction memory.
XPF = Distances from the tool carrier reference point to the tool point on the
ZPF = cutting edge or the front face of the milling cutter.
XMF = Distances from the machine zero point to the tool carrier reference point.
ZMF = The distance is determined by the manufacturer and entered into the
control unit.
Notes
Continuous path control units can control slides and tool carriers simulta-
neously along 2 or more axes at a programmed feed rate. For this the
speed of the individual drives must be matched to one another. This job
is taken over by the interpolator of the CNC-control unit. This is a soft-
ware program for the evaluation of intermediate positions and speed
conditions of the individual axes such that the slides can follow the pro-
grammed path. As from the 2 ½ D Continuous path control unit the inter-
polation can be switched between the three different planes.
+Z
G18
G19
G17
-Y
+X
The standard plane being used for working with CNC-Turning ma-
chines is G18. With CNC-Milling machines the plane G17 is nor-
mally taken to be the usual programming plane.
1 Brief description
Objective of the module:
Working through this module will enable you to program linear and circular departure commands both
with absolute and incremental dimensions.
This module explains the use of absolute, incremental and mixed co-ordinate points. It also explains
the programming of simple geometrical path conditions.
Absolute and
incremental Section 1
dimensioning, Mixed
Summary Section 5
All dimensions always refer to the active work piece zero point.
Co-ordinates
An example for milling :
G90 X Y
P1 20 35
P2 50 60
P3 70 20
Co-ordinates
An example for turning:
G90 X Z
P1 25 -7.5
P2 40 -15
P3 40 -25
P4 60 -35
All position statements refer to the current starting position of the tool.
The programmed value states the co-ordinate distance, by which the tool
is to traverse during the ensuing machining step
Co-ordinates
An example for milling:
G91 X Y
P1 20 35
P2 30 20
P3 20 -35
Co-ordinates
An example for turning:
G91 X Z
P1 12.5 -7.5
P2 7.5 -7.5
P3 0 -10
P4 10 -10
Code G91 is modally active for all axes simultaneously and can be re-set
to absolute dimensioning with G90.
Depending on the presently activated status (G90 or G91), all further co-
ordinate values will also be in this sort of dimensioning.
G90 X Y
P1 20 35
P2 IC(30) IC(25)
P3 70 IC(-40)
G91 X Y
P1 AC(20) AC(35)
P2 30 AC(60)
P3 20 -40
Hint: The above example describes only a small selection of mixed co-
ordinate inputs.
Rapid traverse is used for the quickest possible re-positioning of the tool
to the contour element or, for instance, for moving the tool to the tool
changing position. .
The highest possible speed along a straight line that the machine is ca-
pable of attaining is used for this, however, no machining is possible
here. Hence the control unit does not required a value input under the
address F.
straight line
The straight line interpolation is used to move the tool with an exactly
defined speed along a straight line from the current position to the pro-
grammeed destination point.
All axes can be traversed simultaneously, in which case the resulting line
of motion can lie anywhere at an angle within the working space. For this
the control unit requires a specified feed rate which at the latest must be
defined under the address F in the block containing the Code G1.
The following example describes the milling of a slot with absolute di-
mensioning as per the drawing A shown below..
The following program extract shows the milling of the same slot using
incremental dimensioning: (up to N40 see above.)
……
N50 G91 G1 Z-14 Infeed along Z by –14mm,
N60 G1 X-20 Y-30 Z2 Incremental traversing of the axes
N70 G90 Z2 F1000 Retraction with absolute dimensions
N80 G0 Z200
N90 M30
The example shown below describes the milling of the slot with mixed
co-ordinates input.
Program blocks such as the call-up of the tool etc., which have already
been dealt with, will not be repeated.
….
N40 G90 G0 X40 Y48 Z2 M8 To the starting position P1 ab
solute,
N50 G1 Z=IC(-14) Incremental co-ordinate Z,
N60 X20 Y=IC(-30) Z-10 Incremental co-ordinate Y,
N70 Z2 F1000
….
Apart from the destination point co-ordinates, the control unit here also
needs statements about the sense of rotation and the centre of the circle.
The centre is entered with I, J and K with incremental dimensions with
the centre point as origin.
The following assignment applies:
start point
destination point
centre point
Please note: The end-point in the sketch is now the starting point
for the circular interpolation.
start point
destination point
centre point
G2
G3
G2
G3
Tool arrangement in front of the turning axis
Please note:
Notes
Path information
Instruction Meaning
Interpolation
parameter Meaning
The statements IC(…) and AC(…) are valid only for the address preceeding
them.
Example:
Instruction Meaning
1 Brief description
Objective of the module:
Having worked through the module you will be able to understand the mathematical connections nec-
essary for the programming and to calculate missing contour points.
In this module contour points will be calculated using the Pythagoras principle and trigonometrical
functions (Sine, Cosine and Tangent).
Types of angles
Section 1
Trigonometrical func-
Section 3
tions
Exemplary functions
Section 4
In most cases these contour points can be taken directly from the
drawing provided it has been dimensioned properly for use with NC‘s.
In some cases, however, the an evaluation of co-ordinates may be
necessary. For these calculations a basic knowledge of the types of
angles, trigonometrical functions and the Pythagoras principle is re-
quired.
Types of angles
In the case of oblique work piece contours angles with a definite rela-
tionship to one another result between the contour sections. Depend-
ing on their relative position a differentiation is made between com-
plementary angles, step angles and side angles.
The various sides of the right angled triangle are named specifically.
The two other lines, which form the right angle, are called
Sides
In case of a right angled triangle the missing length of a side can be calcu-
lated if the length of the other two sides is known. For this the Pythagoras
principle is used.
c²= a² + b²
5x5=25
3x3=9
16+9=25
4x4=16
c = a2 b2
b = c 2 a2
By suitable re-arrangement of a = c 2 b2
the equations the respective
sides can be calculated
1 Adjacent side
2 Hypotenuse
3 Opposite side β
2
α Angle
3
β Angle
By the use of the various trigonometrical functions all pages and sides can
be determined.
Sine function
GK GK
sin H GK sin * H
H sin
Cosine function
AK AK
cos H AK cos * H
H cos
Tangent function
GK GK
tan AK GK tan * AK
AK tan
Notes
P1 M1 P2 P3 P4 M2
X 25 35 40 30
Z -20 -20
The values for the spaces shown with a dark background are di-
mensions that can be taken directly from the drawing.
Notes
P1 M1 P2 P3 P4 M2
X 25 35 27,929 37,071 40 30
The values for the spaces shown with a dark background are di-
mensions that can be taken directly from the drawing.
Notes
Since the two sides are equal, all values can be found using the Py-
thagoras principle.
xp 2 5 5² / 2 3,5355
zp2 xp 2 3,5355
zp4 zp2 * (1) 3,5355
xp3 zp3 3,5355
P2x 25 (2 * (5 xp 2)) 25 (2 * (5 3,5355 )) 27,929
P2z P1z zp2 20 zp2 20 5² / 2 20 3,5355 23,5355
P3x 40 2 * (5 3,5355) 37,071
a (P3x p2x) / 2 (37,071 27,929 ) / 2 4,571
zp3 a 4,571
P3z P1z zp2 zp3 20 3,535 4,571 28,1065
P4z P3z zp2 28,1065 3,5355 31,642
1 Brief description
Objective of the module:
Having worked through this module you will be enabled to use the various zero points within the
working space of a turning machine.
This module describes the call-up of individual work piece zero points on the work piece with
reference to various outset conditions.
Summary Section 5
Notes
All axis motions on a CNC-machine tool are referred to the right-hand Car-
tesian co-ordinate system.
At the same time the control unit activates the co-ordinate system at the
machine zero point.
X Axis denominations:
Planar axis X
(Ordinate)
Z
M
Longitudinal axis Z
(Abscissa)
For reasons of design this machine zero point on turning machines is lo-
cated exactly on the rotational axis on the right hand planar face of the
spindle flange (see image).
Hence this point is not usually employed when machining a work piece.
Notes
For machining the work piece the work piece co-ordinate system (WCS) is
available on the machine.
By this the machine zero point is offset by a defined distance, thus obtain-
ing a work piece zero point that is directly referred to the item to be ma-
chined.
With this code the work piece zero point can be defined on the machine.
The following image shows how by programming G54 the position of the
work piece zero point has been shifted to the right hand planar face of the
turned item.
The zero point set on the machine in the jogging mode is activated in the
program with the same code (G54).
By this the co-ordinate origin for the program and the machine zero point
co-ordinate are now identical.
Notes
For the efficient production of parts it is often sensible to provide several
work piece zero points.
The application example indicates the use of yet another zero point lo-
cated on the setting plane of the chuck.
In the picture below the work piece zero point has been transferred with
G55 exactly to the setting plane of the chuck jaws.
In the program this must be activated by means of the code G55.
The use of several zero point offsets can substantially reduce the setting
times particularly in cases of one-off or small series machining.
For example: You could define just once a specific setting point for each
one of your clamping fixtures or else a specific work piece zero point for
various work pieces.
In the program the respective zero point offset depending on the clamping
fixture or the work piece can then be selected.
Important: Any zero point offset once defined remains stored in the control
unit until such time as it is newly defined under the same code.
Notes
The indexing of the tool turret must always take place at a collision-proof
point within the work space of the turning machine.
For this the tool carrier is generally retracted well back into the positive
range of the work space.
(Please take into account the real traverse ranges of your machine; the
values used in the example are only exemplary!)
On this basis the tool carrier will traverse to various positions depending
on the active tool length (in X and Z) and the position of the work piece
zero point. (It is always the tool tip that is being positioned.)
Pos. X
Pos. Z
In case the next tool is going to be for instance a long boring bar, the tool
carrier must be re-positioned along the longitudinal axis further away from
the work piece.
Notes
In order to approach a tool changing point that is independent of the length
of the tool and the presently active zero point offset, the following condi-
tions must be programmed.:
Pos. X
M W
Pos. Z
Since by using the code SUPA any manipulations of the co-ordinate sys-
tem have been de-activated only for the programmed block, they do not
need to be re-activated.
But care must be taken that after each tool change the required cutting
edge must be called up.
Notes
Suggestion of a sub-program for tool changing:
N10 G18 G0 X300 Z500 SUPA G40 D0; Approach of tool changing point
in the turning plane,
zero point offsets OFF,
all tool corrections OFF,
Instruction Meaning
1 Brief description
Objective of the module:
This module explains how to construct a part program clearly and functionally correct.
Program structure of
Section 3
a machining sequence
Notes
It is always the motion of the tool along the drawn ideal contour of
the work piece.
The program should exhibit a clear and concise structure and should
contain commentaries wherever possible to ensure that other users
can comprehend the layout easily at later stages.
Notes
The following flow chart represents a possible suggestion for a suitable
structure of the main program.
Program heading
Tool call-up 1
Technology
block
Approaching the
safety level with
the tool
Machining
sequence 1
Retraction of the
tool
no yes
Workpiece finished
Technology
block
Approaching the
safety level with
the tool
Machining
sequence 2
Notes
The programming of the machining sequence can be achieved by means
of description of the individual steps using departure commands (e.g. G0,
G1, G2 etc.) or by means of machining cycles.
The following criteria should be kept in mind when selecting between the
two described possibilities:
Notes
For the user it may be advantageous to switch on certain settings, that are
to be activated in the part program, already in the program heading. .
N10 G17 G54 G64 G71 G90 G94 X/Y-plane, 1st ZP-offset,
continuous control, metrical
system, absolute dimensions,
linear feed rate F in mm/min,
N20 ….
….
N10 G18 G54 G64 G71 G90 G96 Z/X-plane, 1st ZP-offset,
continuous control, metrical
system, absolute dimensions,
constant cutting speed S in m/min,
As the tool progresses towards the centre during facing, the spindle speed
evaluated internally in the control unit increases steadily until eventually the
maximum possible spindle speed would be attained.
Depending on the clamping conditions and the size of the work piece a
speed limitation should always be selected for reasons of safety.
* The explanation of the diameter input will be found in Section 5 of this manual.
Notes
They remain valid for the program until a block is reached where an op-
posing command is programmed or terminated automatically by the end of
the program.
On the following pages the effects of the described codes are shown
graphically.
Only the motion of the X-axis is taken is into account for this.
The roughing of the shown work piece is not part of this example.
Notes
Effect of the command DIAMON under G90:
N70 ….
N80 G90 DIAMON; Absolute dimension, diameter progr. ON
N90 G1 X0 Z0; Starting position on diameter 0
N100 X30; Motion to diameter 30
N110 Z-10; Motion in Z
N120 X60; Motion to diameter 60
N130 ...
N70 ….
N80 G90 DIAMON; Absolute dimension, diameter progr. ON
N90 G1 X0 Z0; Original position to diameter 0
N100 G91; Incremental dimension
N110 X30; Motion by diameter 30
N120 Z-10
N130 X30; Motion by diameter 30
N140 G90; Switching back to absolute dimensions
N150 ….
Notes
Effect of the command DIAMOF under G90:
N70 ….
N80 G90 DIAMOF; Absolute dimensions, diameter progr. OFF
N90 G1 X0 Z0; Original position to the radius 0
N100 X15; Motion to the radius 15
N110 Z-10
N120 X30; Motion to the radius 30
N130 DIAMON; Diameter programming ON
N140 ….
N70 ….
N80 G90 DIAMOF; Absolute dimensions, diameter progr. OFF
N90 G1 X0 Z0; Original position to the radius 0
N100 G91; Incremental dimension
N110 X15; Motion by radius 15
N120 Z-10
N130 X15; Motion by radius 15
N140 G90 DIAMON; Absolute dimensions, diameter progr. ON
N150 ….
Notes
Effect of the command DIAM90 under G90:
Programming example : Explanation:
N70 ….
N80 G90 DIAM90; Absolute dimensions, diameter progr. for G90
N90 G1 X0 Z0; Original position to diameter 0
N100 X30; Motion to diameter 30
N110 Z-10
N120 X60; Motion to diameter 60
N130 ….
N70 ….
N80 G90 DIAM90; Absolute dimensions, diameter progr. for G90
N90 G1 X0 Z0; Original position auf Diameter 0
N100 G91; Incremental dimension, DIAM90 radius
programming!!!
N110 X15; Motion by radius 15
N120 Z-10;
N130 X15; Motion by radius 15
N140 G90; Absolute dimensions, DIAM90 diameter
programming!!!
N150 ….
1 Brief description
Objective of the module:
Having worked through this module you will be able to write a simple milling program taking into ac-
count the radius correction.
This module describes the commands for radius correction, the rounding and the chamfering of
edges. These you will use for the writing a simple CNC-program and provide explanations.
Cutter radius
compensation
Section 1
Rounding and
chamfering of edges Section 2
Summary
Section 4
Exercise 1
Open the editor
Write the following program heading into the editor. Explain the blocks in
the table. While doing this make yourself familiar with the editor. Mark the
zero point on the drawing
N50 G0 x115 y65 z2 Approach of starting point and safety level (P1)
N60 G1 z0
N70 x-35
N80 G0 z2
N90 x115 y15
N100 G1 z0
N110 x-35
N120 G0 z150
N130 x150 y150 M9
N70 N50
N110 N90
The instructions G41 or G42 are necessary for the programming of con-
tours. With this the contour shown on the drawing can be described di-
rectly. The value for the milling cutter entered in the tool management is
taken into account. The equidistant path for the cutter centre evaluated by
the control unit is such that the required contour results on the cutter cir-
cumference.
To enable the control unit to evaluate the correct equidistant path it must
know whether the milling cutter is on the right or the left of the contour.
This is determined by looking in the direction of feed.
Solution 1: Solution 2:
Approach and leaving the Approach and leaving into fresh
contour air. The points P0 and P9 do not lie
on the contour
The function ‘soft approach and leaving’ is the tangential approach at the
point of contact independently of the starting point.
The function is used predominantly in conjunction with the tool radius cor-
rection, however, this is not compulsory.
G247/ G248
G347/ G348
DISR
progr. contour
For the machining of the finished contour the instructions RND, CHR, CHF are to
be used for the radii and the chamfers.
RND :
At the programmed intersection be-
tween two straights a radius is
added. The size of this is defined by
RND=7.
CHF :
At the programmed intersection
between two straights a chamfer is
added. The length of the chamfer
is defined by CHF=9.
CHR :
At the programmed intersection
between two straights a chamfer is
added. CHR=5 defines the length
of the legs of this chamfer.
Notes
Describe the contour using the instructions referred to so far. A milling cut-
ter with a diameter of 8mm is to be used (Name SF8). Start describing the
contour at the point x13; y5.
Notes
Angle ANG=
If for a straight only one end point co-ordinate of the plane is known, or in
the case of contours the final end point via several blocks, an angular
statement can be used to completely define the straight path section. The
angle is always referred to the abscissa of the current plane G17 to G19;
e.g.: in case of G17 to the X-axis. Positive angles are taken to be anti-
clockwise.
20
15
23
G1 x15
G1 x20 ang=-36
G1 x23 ang=-72
Mixed programming:
Absolute and incremental dimensions (G90/G91) you know already for the
programming of contours . These two types can be programmed together
in one block. For this the instructions ‘ic’ (incremental) and ‘ac’ (absolute)
can be used. In this way ‘ic’ can be used to program incremental dimen-
sions within G90. The instruction G90 is modal.
20
12 4
G90 G91
G1 x12 y25 G1 x=ac(12) y=ac(25)
25
Notes
Describe the contour using the instructions referred to so far. A milling cut-
ter with a diameter of 8mm is to be used (Name SF8).
N620 G0 x17.5 y60.5 z2 Positioning above the centre of left upper pocket
N630 G... z… M... Plunging into the pocket and coolant ON
N640 G... Activation of cutter radius compensation
(climb milling)
N650 G1 x12 y60.5 Approach of contour
N660 G1 y... RND=... 1st corner point with rounding to the next element
N670 G1 x=ic(...) Approach of starting point for 55° chamfer
N680 G1 x... ang=… Oblique 55°
N690 G1 y... RND=... 2nd corner point with rounding to the next element
N700 G1 x=...(10) RND=... 3rd corner point with rounding to the next element
N710 G... Switching to incremental dimensions
N720 G1 y... RND=... 4th corner point with rounding to the next element
N730 G1 x=ac(...) CHR=... 5th corner point with chamfering to the next element
N740 G1 y=...(...) RND=... 6th corner point with rounding to the next element
N750 G1 x... RND=... 7th corner point with rounding to the next element
N760 G... Switching to absolute dimensions
N770 G1 x... Y... Closing of contour
N780 G... De-activation of cutter radius compensation
N790 G1 x17.5 y60.5 Retraction of the cutter
N800 G0 z150 M9 Leaving the contour and coolant OFF
N810 G0 x... Y... Traverse to tool changing position
N820 M... End of program
Notes
Instruction Meaning
Exercise 1
Open the editor
Write the following program heading into the editor. Explain the blocks in
the table. While doing this make yourself familiar with the editor. Mark the
zero point on the drawing.
N10 G54 G64 G17 Zero point offset, continuous control ON, plane selec-
SOFT tion xy, soft control
N20 T1 Select tool Nr. 1 (PF60 with tool tips)
N30 M6 Load the selected tool
N40 S1000 F200 M3 Speed (rpm), feed (mm/min), rotation clockwise, coolant
M8 D1 ON, activation of first cutting edge
N50 G0 x115 y65 z2 Approach of starting point and safety level (P1)
N60 G1 z0 Infeed to command dimension
N70 x-35 Milling (P2)
N80 G0 z2 Lift-off to safety level
N90 x115 y15 Approach of starting point for 2nd pass (P3)
N100 G1 z0 Infeed to command dimension
N110 x-35 Milling (P4)
N120 G0 z150 Lift-off to tool changing level
N130 x150 y150 M9 Approach tool changing position, coolant OFF
N70 N50
N110 N90
Notes
Describe the contour using the instructions referred to so far. A milling cut-
ter with a diameter of 8mm is to be used (Name SF8). Start describing the
contour at the point x13; y5.
Notes
Describe the contour using the instructions referred to so far. A milling cut-
ter with a diameter of 8mm is to be used (Name SF8). Start describing the
contour at the point x13; y5.
N620 G0 x17.5 y60.5 z2 Positioning above the centre of left upper pocket
N630 G1 z-3 M8 Plunging into the pocket and coolant ON
N640 G41 Activation of Cutter radius compensation
(climb milling)
N650 G1 x12 y60.5 Approach of the contour
N660 G1 y52 RND=4 1st corner point with rounding to the next element
N670 G1 x=ic(7.8) Approach of starting point for 55° chamfer
N680 G1 x23.8 ang=-55 Oblique 55°
N690 G1 y41 RND=4 2nd corner point with rounding to the next element
N700 G1 x=ic(10) RND=4 3rd corner point with rounding to the next element
N710 G91 Switching to incremental dimensions
N720 G1 y18 RND=4 4th corner point with rounding to the next element
N730 G1 x=ac(23) CHR=1.5 5th corner point with chamfering to the next element
N740 G1 y=ac(69) RND=4 6th corner point with rounding to the next element
N750 G1 x-11 RND=4 7th corner point with rounding to the next element
N760 G90 Switching to absolute dimensions
N770 G1 x12 y60.5 Closing the contour
N780 G40 De-activation of Cutter radius compensation
N790 G1 x17.5 y60.5 Retraction of the cutter
N800 G0 z150 M9 Leaving the contour
N810 G0 x150 y150 Traverse to tool changing position
N820 M30 End of program
1 Brief description
Objective of the module:
Having worked through this module you will be able to judge the necessity for sub-routines, to write
sub-routines for contours with soft approach and leaving the contour with cutter radius compensation
and to call these up in a simple milling program.
This module explains the programming with sub-routines. The soft approach and leaving of the con-
tour will be used for contour machining.
Content of the module:
Call-up of sub-routines
Section 2
Programming of sub-
Section 3
routines
Summary
Section 4
Global sub-routines
These sub-routines can be used for all kinds of work piece programs;
these must be written keeping in mind the danger of possible collisions.
Both programs using incremental or absolute dimensions can be used.
Example:
The machine table is to be positioned at a certain location for tool chang-
ing after the machining has been completed. The co-ordinates can there-
fore be stated with absolute values.
In order to avoid collisions, z must be positioned first of all followed by x/y.
Local sub-routines
Local sub-routines are often used where contours are repeated on the
same work piece. If, for instance, a pocket is to be milled several times on
one work piece, it can be programmed just once and then repeated sev-
eral times. Since the absolute dimension vary, the pocket must be pro-
grammed from a defined starting point, which is then approached in the
main program. From there the pocket is then described with incremental
dimensions.
Example:
The contour of a pocket must be milled at 2 different locations.
Course work 1:
The work piece has already been programmed in the program Modul30.
This is now to be copied, renamed in [Link] and then modified.
Change to the Sector Program. Open the program directory and select the
program [Link] an.
The window ‚Save as‘ opens. Rename the file in MODUL31 and
acknowledge with the Softkey OK.
Course work 2:
Commence a new sub-routine by the name of UP_MODUL31.SPF and pro-
gramme the following program lines with the respective supplements. The pro-
gram starts at the centre cross.
Notes
Course work 4:
Alter the main program [Link] such that the internal contours are machined
using the sub-routine. When positioning in the z-axis care must be taken to con-
sider the infeed amount (z-4) per sub-routine pass.
….
N610 x150 y150
N620 G… x… y… z… M… With rapid traverse to the start-point of the upper left contour and
coolant ON
N630 …………….. p… Call-up of sub-routine for one pass
N640 G1 z1 Retraction from the pocket at feed rate
N650 g... x… y… z… With rapid traverse to the start-point of the upper right contour
N660 …………….. p... Call-up of sub-routine for two passes
N670 G… z… Retraction from the pocket at feed rate
N680 G… z… M... Departure in z to the tool changing point and coolant OFF
N690 G… x… y… Departure in x and y to the tool changing point
N700 M… End of main program
Notes
Instruction Meaning
Parameter Explanation
Course work 3:
In the main program [Link] delete all lines as from block N620.
Notes
Course work 4:
Alter the main program [Link] such that the internal contours are machined
using the sub-routine. When positioning in the z-axis care must be taken to con-
sider the infeed amount (z-4) per sub-routine pass.
….
N610 x150 y150
N620 G0 x28.8 y50 z1 M8 With rapid traverse to the start-point of the upper left contour and
coolant ON
N630 UP_Modul31 p1 Call-up of sub-routine for one pass
N640 G1 z1 Retraction from the pocket at feed rate
N650 g0 x53.6 y50 z3 With rapid traverse to the start-point of the upper right contour
N660 UP_Modul31 p2 Call-up of sub-routine for two passes
N670 G1 z2 Retraction from the pocket at feed rate
N680 G0 z150 M9 Departure in z to the tool changing point and coolant OFF
N690 G0 x150 y150 Departure in x and y to the tool changing point
N700 M30 End of main program
1 Brief description
Objective of the module:
Having worked through this program you will be able to programme a milling program with loops,
jumps and repeats.
In the module you will learn the commands for the looping of parts of the program, for jumping to cer-
tain blocks in the program and the repeating of sections of the program.
Label denomination,
Parameter usage
Section 1
Jump instructions,
Program section Section 2
repeats
Example
Section 3
Summary
Section 4
N100 ..
N110 BL123: Denomination of a label by the name of BL123
N120 G0 x10..
Parameter usage
;T1—WSF Dr60
Program heading
R1=200 ; n for WSF Dr60
R2=30 ; vf for WSF Dr60
...
N100 T1 ; WSF Dr60
N110 m6
N120 S=R1 F=R2 M3 M8 D1 Aassignment of speed and feed by means of R1 and
R2
N130 ...
Parameters can be used within the program for the evaluation of individ-
ual values or by themselves. For reason of the advance evaluation by the
control unit it is possible that undesirable effects on the active parameters
might occur. This can be prevented by using the instruction STOPRE -
The next block will only be executed after the previous block has been
finished. For this STOPRE must be written in a block by itself.
N10 R1=0
...
N110 BL123:
N120 G0 x10..
…
N140 STOPRE The control unit waits until block N130 has been completed.
N150 R1=R1+1 Each time the block is run for machining R1 is increased by 1.
N160 EL123:
Jump instructions
Jump instructions can also be used within a program. These permit the
omission of parts of the program or to jump back for repeats. The instruc-
tion GOTOF is used to jump forward, while the GOTOB is used to jump
backward. .
For this a search is carried out for the included label name or the block
number before the jump to this location is carried out.
;T1—WSF Dr60
R1=200 ; n for WSF Dr60
R2=30 ; vf for WSF Dr60
N10 GOTOF N100 Jump to block N100
N20 LB001:
…
N90 GOTOF N170 Jump to block N100
N100 T1 ; WSF Dr60
N110 m6
N120 S=R1 F=R2 M3 M8 D1
N130 …
...
N160 GOTOB LB001 Jump back to lLabel LB001
N170 T4
;T1—WSF Dr60
R1=200 ; n for WSF Dr60
R2=30 ; vf for WSF Dr60
N10 T1 ; WSF Dr60
N20 m6
N30 S=R1 F=R2 M3 M8 D1
1 N40 G0 z2
N50 LB001:
2
N50 G1 z=ic(-10)
…
N90 LE001:
... Jump back to Label LB001 and two
N160 Repeat LB001 LE001 P2 repeats between LB001and LE001
N170 T4
Holes are to be drilled into the milled work piece. These holes are to be
programmed using jumps and parameters.
Course work 1:
Under ‚Program management‘ in the sector ‚Program‘ copy the file [Link].
Rename this program [Link]. For explanations see Module 31 Sub-
program techniques.
Course work 2:
Open the file [Link] and supplement the program by the following lines for
the drilling.
….
N690 G0 x150 y150 Traverse to the tool changing point in x and y
N700 R1=... R2=... Set the parameter R1 (drilling and counter depth) and R2 (feed rate)
to zero
N710 T=„NC-centre drill“ Request NC-centre drill Ø larger 12mm (for simulation SF10)
N720 M6 Load NC-centre drill
N730 R1=… R2=... Specify depth for centring and feed rate
N740 S1000 F=... M3 M8 D1 Specify technology data for centring
N750 Repeat ... ... p1 Execute program between the Labels LB001 and LE001 once
N760 T=„SPB8“ Request drill diameter 8mm (for simulation SF8)
N770 … Load drill
N775 … Advance evaluation Stop
N780 ...=8+(8*1/3) ...=50 Specify depth for centring and countering in R1 and feed rate in R2
N790 S800 F=R2 M3 M8 D1 Specify technology data for the drill
N800 R...=8+(8*1/3) Specify depth for drilling (1/3 drill point)
N810 ... LB001 LE001 p1 Execute the program between the Labels once
N820 G0 Z150 Retraction in Z-direction
N830 X150 Y150 Retraction in X and Y-direction
N840 M30 End of program
Instruction Meaning
REPEAT Repeats the section between the labels for the pro-
grammed number of times.
Repeat LB002 LE002 P2
STOPRE The next block will not be decoded until the previous
block has been completed.
G4 Dwell
G4 S2 Dwell for 2 revolutions
G4 F2 Dwell for 2 seconds
Holes are to be drilled into the milled work piece. These holes are to be
programmed using jumps and parameters.
Course work 1:
Under ‚Program management‘ in the sector ‚Program‘ copy the file [Link].
Rename this program [Link]. For explanations see Module 31 Sub-
program techniques.
Course work 2:
Open the file [Link] and supplement the program by the following lines for
the drilling.
….
N690 G0 x150 y150 Traverse to the tool changing point in x and y
N700 R1=0 R2=0 Set the parameter R1 (drilling and counter depth) and R2 (feed rate)
to zero
N710 T=„NC-Anbohrer“ Request NC-centre drill Ø larger 12mm (for simulation SF10)
N720 M6 Load NC-centre drill
N730 R1=-5 R2=100 Specify depth for centring and feed rate
N740 S1000 F=R2 M3 M8 D1 Specify technology data for centring
N750 Repeat LB001 LE001 p1 Execute program between the Labels LB001 and LE001 once
N760 T=„SPB8mm“ Request drill diameter 8mm (for simulation SF8)
N770 M6 Load drill
N775 STOPRE Advance evaluation Stop
N780 R1=8+(8*1/3) R2=50 Specify depth for centring and countering in R1 and feed rate in R2
N790 S800 F=R2 M3 M8 D1 Specify technology data for the drill
N800 R1=8+(8*1/3) Specify depth for drilling (1/3 drill point)
N810 Repeat LB001 LE001 p1 Execute the program between the labels once
N820 G0 Z150 Retraction in Z-direction
N830 X150 Y150 Retraction in X and Y-direction
N840 M30 End of program
1 Brief description
Objective of the module:
Having worked through this module you will be able to programme circular and rectangular pockets
using DIN-commands.
This module explains the possibilities of DIN-programming when machining circular and rectangular
pockets.
Finishing allowance
Programming of circular pockets
Programming of rectangular pockets
Exercise
Summary
Finishing allowance
Section 1
Programming of circu-
lar pockets Section 2
Programming of rec-
Section 3
tangular pockets
Exercise
Section 4
Summary
Section 5
Notes
There are several possibilities for machining with a finishing allowance. For
instance, the tool radius can be theoretically increased by means of the
wear correction feature.
wear = 0
G41 G1 x… y…
x… y...
Real radius
Wear = 1
G41 G1 x… y…
x… y…
Notes
Das finishing allowance kann auch durch die Verwendung des Befehls
OFFN erreicht werden. Der Wert for OFFN steht standardmäßig immer auf
0. Der Radius entspricht immer dem der toolverwaltung. Ändert sich der
Wert von OFFN somit immer dann wenn die
Schneidenradiuskompensation aktiv ist der Wert von OFFN dem Radius
zugeschlagen. Damit lässt sich das finishing allowance im Programm
beeinflussen.
OFFN>0
Realer Radius
G41 G1 x… y… G41 G1 x… y…
x… y... x… y…
N..
/ N300 OFFN=1
…
N400 OFFN=0
Notes
Course work 1
Set up a file by the name of ‚[Link]‘
Course work 2
The circular pocket with a diameter of 22mm is to be milled. After the
straight plunge into the pocket, it is to be milled with a circular motion leav-
ing 0.5 mm finishing allowance for subsequent finishing.
Notes
N10 G55 G64 G17 Soft Zero point offset 55, plane xy, ...
N20 T=„SF12“ Call up tool SF12
N30 M6 Change tool
N40 S1300 F230 M3 M8 Select speed and feed, start spindle and coolant ON
N50 G0 X60 y20 z2 Positioning 2mm above the 1st circular pocket
N60 G1 z-3,8 Straight line plunging into the circular pocket, finishing
allowance 0,2mm
/N70 OFFN=0,25 Detrermine finishing allowance at edge in the deletion block
N80 R1=... Specify circular pocket radius
N90 CT1: Choose label for the circular pocket
N100 G41 G247 Disr=1 x=ic(R1) Approach of pocket edge with a quarter circle, radius 1
N110 G3 x=(ic0) I=ic(r1*-1) Milling the circular pocket counter-clockwise
N120 G1 G... G248 x60 y20 Disr=1 Leave edge with a quarter circle and de-activation of cutter
radius compensation
N130 CT1E: Choose label for end of circular pocket
N140 G0 z2 OFFN=0 Retraction with rapid traverse in Z from pocket
Notes
Course work 3
The rectangular pocket of length 25mm, width 20mm is to be milled. After
the straight line plunge into the pocket, it is to be milled counter-clockwise,
leaving a finishing allowance of 0.5mm for subsequent finishing.
Notes
Course work 4
Load the milling cutter SF8 and programme the roughing of the second
circular- and rectangular pocket.
Notes
Instruction Meaning
Notes
N10 G55 G64 G17 Soft Zero point offset 55, plane xy, ...
N20 T=„SF12“ Call up tool SF12
N30 M6 Change tool
N40 S1300 F230 M3 M8 Select speed and feed, start spindle and coolant ON
N50 G0 X60 y20 z2 Positioning 2mm above the 1st circular pocket
N60 G1 z-3,8 Straight line plunging into the circular pocket, finishing
allowance 0,2mm
/N70 OFFN=0,25 Determine finishing allowance at edge in the deletion block
N80 R1=11 Specify circular pocket radius
N90 CT1: Choose label for the circular pocket
N100 G41 G247 Disr=1 x=ic(R1)Approach of pocket edge with a quarter circle, radius 1
N110 G3 x=(ic0) I=ic(r1*-1) Milling the circular pocket counter-clockwise
N120 G1 G40 G248 x60 y20 Disr=1 Leave edge with a quarter circle
N130 CT1E: Choose label for end of circular pocket
N140 G0 z2 OFFN=0 Retraction with rapid traverse in Z from pocket
Notes
Course work 3
The rectangular pocket of length 25mm, width 20mm is to be milled. After
the straight line plunge into the pocket, it is to be milled counter-clockwise,
leaving a finishing allowance of 0.5mm for subsequent finishing.
Notes
Course work 4
Load the milling cutter SF8 and programme the roughing of the second
circular- and rectangular pocket.
1 Brief description
Objective of the module:
Having worked through the module you will know the commands for Mirroring, Offset, Rotating and
Scaling of contours.
This module explains the use of the commands for the machining of identical contour elements in
various positions.
Scaling
Mirroring
Offset
Rotating
Offset
Section 1
Rotating
Section 2
Mirroring
Section 3
Scaling
Section 4
Summary
Section 5
TRANS, ATRANS
The zero point can be offset in the programmed axes by means of these com-
mands. The command TRANS clears all active frames. ATRANS (adaptive offset)
generates the active frames.
For instance in case of multiple settings of work pieces the zero point can be off-
set and the main program executed repeatedly.
Course work 1
Course work 2
Programme the lines for milling the surface. Take into account that the
zero point lies in the middle. The milling cutter (PF60) has a diameter of
60mm, the work piece measures 80x80mm.
Course work 3
Load a milling cutter SF8, offset the zero point to the starting point of the contour
and position the tool at this location.
ROT, AROT
Variant 1
Rotation about an axis
AROT X.. Y.. Z..
X+
+
+
Y+
AROT z=90
X+ Y+
The zero point has been rotated by 90° about the Z-axis.
Variant 2
Rotation of the active plane
AROT RPL...
X+
+
+
Y+
AROT RPL=90 Y+
X+
The active plane has been rotated by 90° about the Z-axis.
The command ROT resets the co-ordinate system and all other active
frames back to the original status.
Course work 4
Rotate the co-ordinate system by the required amount about the now valid
zero point. Enter the work piece with the cutter at feed rate by 3mm. After
that start the sub-program. Now un-select all frames.
MIRROR, AMIRROR
Variant 1
Mirroring an axis
AMIRROR X0
Y+
Y+
X+
X+
Variant 2
Mirroring several axes
MIRROR X0 Y0
Y+
X+ X+
Y+
The command MIRROR resets the co-ordinate system and all other
active frames back to the original status.
Course work 5
Mirror the work piece about the X-axis. Offset the zero point to the starting point of
the contour and there rotate the co-ordinate system. Take into account the posi-
tion of the positive X-axis.
In some cases the Scaling of contour elements is quite sensible. The exist-
ing contours can be scaled up or down by a given factor.
The factor is defined following the command Scale for each individual axis.
If no value follows the command scale SCALE all frames are cancelled.
The same applies to the command M30.
Variant 1
Scaling of an axis
ASCALE X1.5
Variant 2
Scaling of several axes
ASCALE X=1x1.5 Y=1x1.5
Course work 6
Scale the X and Y-axis. Let the control unit calculate the respective factor.
Plunge into the work piece by 3mm and cal up the sub-program
UP_Modul31. Traverse to the tool changing point. Terminate the main pro-
gram.
SCALE X... Y... Z... Absolute programmable enlarging or diminishing (scaling), as referred
to the presently valid, with G54 to G57 and G505 to G599 selected
work piece zero point
ASCALE X... Y... Z... Additive programmable enlarging or diminishing (scaling) as referred
MIRROR X... Y... Z... Absolute programmable mirroring as referred to the presently valid,
with G54 to G57 and G505 to G599 selected work piece zero point
AMIRROR X...Y...Z... Additive programmable mirroring as referred to the presently
valid, selected or programmed zero point
X..... Y..... Z..... Co-ordinate axis, in which the signs are changed,
Course work 1
Course work 2
Programme the lines for milling the surface. Take into account that the
zero point lies in the middle. The milling cutter (PF60) has a diameter of
60mm, the work piece measures 80x80mm.
Course work 3
Load a milling cutter SF8, offset the zero point to the starting point of the contour
and position the tool at this location.
ROT, AROT
With the command ROT or AROT the co-ordinate system can be rotated.
In this case the anti-clockwise direction is positive. The positive X-axis is
taken to be the zero position.
Variant 1
Rotation about an axis
AROT X.. Y.. Z..
X+
+
+
Y+
AROT z=90
X+ Y+
The zero point was rotated by 90° about the Z-axis.
Variant 2
Rotation about the active plane
AROT RPL...
X+
+
+
Y+
AROT RPL=90 Y+
X+
The active plane has been rotated by 90° about the Z-axis.
The command ROT resets the co-ordinate system and all other active
frames back to the original status.
Course work 4
Rotate the co-ordinate system by the required amount about the now valid zero
point. Plunge the milling cutter into the work piece by 3mm with feed rate. After
that start the sub-program. After that de-activate all frames.
MIRROR, AMIRROR
Variant 1
Mirroring einer axis
AMIRROR X0
Y+
Y+
X+
X+
Variant 2
Mirroring mehrer axisn
AMIRROR X0 Y0
Y+
X+ X+
Y+
The command MIRROR resets the co-ordinate system and all other active
frames back to the original status.
Course work 5
Mirror the work piece about the X-axis. Offset the zero point to the starting point of
the contour and there rotate the co-ordinate system. Take into account the posi-
tion of the positive X-axis.
Scale the X and Y-axis. Let the control unit calculate the respective factor.
Plunge into the work piece by 3mm and cal up the sub-program
UP_Modul31. Traverse to the tool changing point. Terminate the main pro-
gram.
Course work 7
1 Brief description
Objective of the module:
Having worked through this module you will be able to programme with cycles.
This module shows the general way that cycles work and enables you to employ them.
General aspects of
programming with
Section 1
cycles
List of cycles
Section 3
Many standard machining jobs can be carried out with cyces. This applies
for example to face-milling, the milling of slots and pockets or drilling of
work pieces. The available cycles vary from machine to machine. Further-
more, the layout of the individual cycle depends on the respective cycle
status (version).
The blocks needed for this are implemented in the cycle. the cycle takes
care of the approach motions, the machining and the defined ending.
This means that after the cycle has been completed, all values that were
active before the start of the cycle are once more activated.
The cycles used on the Sinumerik all have the same layout. Hence it is
relatively easy to understand the functions and explanations. Graphics of-
ten provide useful support to this end.
Cycles
Sequence
The available cycles for the required sequence (boring, milling) can eas-
ily be found by means of the horizontal Softkeys.
The cycles available for the selected sequence are then shown for se-
lection by means of the vertical Softkeys.
The retraction plane should be chosen such that a lateral departure is pos-
sible without danger of collision. This must be borne in mind particularly in
the case of complex set-ups.
Explanation
If a face has just been milled at Z–3 and holes are now to be drilled into
this face, the reference plane can be specified at –3.
The control unit traverses the tool to this point with rapid traverse and then
switches to the programmed feed rate. The safety distance is incremental
relative to the reference plane.
In some of the input masks there is often a possibility of choosing the type
of machining. The possible values are already provided. These can be
chosen by means of the Softkey ‚Alternative‘.
Notes
The cycles listed here are but a small selection.
Boring
Tapping
Boring
Milling of slots
Milling a spigot
Further cycles
1 Brief description
Objective of the module:
Having worked through this module you will be able to add the parameter values to cycles comforta-
bly with the support of the editor.
This module describes the general dealing with cycles in the program editor by means of the drilling
cycle „CYCLE82“.
Notes
The manufacturer of the control unit has provided a number of cycles for
certain, often recurring technological sequences on CNC-machines.
Quite apart from the extremely high programming effort the alteration of
certain dimensions might well mean that the whole NC-program would
have to be newly created.
The technological steps are already programmed into these efficient and
productive programs. The necessary mathematical co-ordinate values, the
technological data and variations are supplied to the control by means of
parameters.
Name
Retraction plane
Reference plane
Safety level
Final drilling depth
Dwell
The input of the parameter values into the program can be carried out ei-
ther via the input mask for cycle support or directly in the NC-block.
Notes
When the editor is opened, the whole pallet of the cycles implemented in
the control unit is at your disposal.
The cycles are sub-divided into the technologies drilling, Milling and Turn-
ing.
For further explanation of the general dealing with cycles the cycle
„Drilling, centring“ will be described in the following. .
The vertical Softkey strip shown in the image below appears after pressing
the Softkey „Drilling“ and shows the available cycles together with the ad-
ditional functions provided.
For deep holes with the options chip breaking and swarf
removal.
Notes
After selection of the cycle the editor opens an input mask for the safe pro-
gramming of the necessary parameters:
Optional Softkeys
Notes
The more important parameters of a machining cycle are described below
using the example CYCLE82.
Parameter description
This serves as a safety plane for the approach of the first and any
further machining position. With this any possible collision with
clamps and other parts of the work piece, which extend above the
machining plane, is avoided.
Safety distance above the reference plane. The control unit auto-
matically locates this in the opposite direction to the drilling direction.
(please do not enter a directional sign!)
Dwell DTB
Dwell period in seconds for tool relief and cleaning up at the bottom
of the hole.
Notes
The values of any parameters not required for a particular machining se-
quence (e.g. the dwell when drilling small diameter holes) can remain „0“
or else the values can be deleted.
After specifying the parameter values return to the editor by pressing the
key “OK“.
In order to change any parameters, position the cursor in the block of the
NC-program containing the cycle and press the Softkey ‘Revert to mask’.
The graphics together with the input mask appear once more showing the
parameters already programmed. These can now be changed as neces-
sary.
Obviously it is also possible to edit the parameter values directly in the NC-
block without using the mask.
In this case it is most important to ensure the correct sequence and that
the values are properly separated by correctly placed kommas.
Notes
Before a cycle is started, the tool must be activated and located in a safe
position such as to prevent a collision during approach to the work piece.
Important: After the cycle has been completed, the tool will be back
in that position which it had before the cycle was called
up.
When carrying out the cycle, the control differentiates in case of a drilling
cycle between a once-only and multiple call-up.
Once-only call-up
If only one hole is to be drilled, the tool must be traversed to the required
drilling position in the active plane (X and Y in case of vertical milling ma-
chines) before the cycle is called up.
The co-ordinates for the infeed axis (Z-axis) are always stated in the cy-
cle. A preceding approach is not necessary.
Notes
If several holes are to be drilled with the same tool, a modal call-up of the
drilling cycle is advisable.
Multiple call-up
As in all other cases when using a cycle, the prime requisite before starting
the cycle is that the activated tool is located at a safe, collision-free posi-
tion.
However, it is not necessary to approach the co-ordinates of any drilling
position; the cycle always expects the position statements directly after it
has been called up.
For pitch circles or systematically spaced holes the control unit provides an
effective means for the input using positioning cycles.
These can be accessed by means of the key shown alongside (see page
3)
The code MCALL should be seen as a switch. It renders the cycle call-up
modal (block N190).
Directly after stating the positions for drilling, the multiple call-up must be
switched OFF again with the same code (block N230).
1 Brief description
Objective of the module:
Having worked through this module you will be able to programme drilled holes using cycles.
This module explains how to use cycles for drilling operations on the milling machine.
Modal call-up
Section 2
Drilling patterns
Section 3
Tapping
Section 4
Summary
Section 5
Further explanations:
Chamfer diameter
The shown work piece is to be drilled in the course of this work piece.
As a first step the hole at x-20 y-20 is drilled. For this the hole must be centred
deep enough to attain the chamfering diameter followed by drilling the hole. In the
example the cycle ‚Drilling/centring‘ CYCLE82 is used for centring and for drilling
the deep hole drilling cycle CYCLE83. Here all parameters
necessary for the machining can be set. For this open the %[Link]
N10 G54 G64 G17 Soft
program [Link] and supplement the program. N20 T="PF60"
N30 M6
N40 S1000 F200 M3 M8 D1
N50 G0 x115 y65 z2
N60 G1 z0
N70 x-35
N80 G0 z200
N90 T="ZB12"
The CYCLE82 can also
N100 M6
be used for reaming.
N110 S1200 F150 M3 M8 D1
N120 G0 x-20 y-20
N130 CYCLE82(2,0,1,-4.25,,1)
N140 T="SPB8"
N150 M6
N160 S1200 F150 M3 M8 D1
N170 G0 x-20 y-20
M6
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
N180 CYCLE83(2,0,1,-30,,-10,,1,0,,1,1,3,3,,-1,1)
N190 G0 Z200
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
In the deep hole drilling cycle the following values have been programmed (see
page 3). Please answer the posed questions.
X Y Z
Z
Up to which Z value (abs) does the machine plunge into the work piece for the first
drilling?
Z
Up to which Z-dimension (abs) does the machine drill in the first step?
Z
How deep is the second drilling depth?
How many chip clearing processes are there? State the depths (abs)
1 2 3 4 5 6 7 8 9 10
M6
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
In order to machine similar holes with just one cycle definition, the modal call-up is
posssible.
With the modal call-up a range is defined in which the type of machining and the
associated hole positions are described. This range starts with an MCALL and
finishes with a second MCALL. If these hole positions are to be used again for a
later machining sequence, they can be called up again with a label denomination.
Example:
Exercise
In the following the holes on the pitch circle are to be defined in a Label by means
of polar co-ordinates and centered 3.25mm deep. For this insert the program
section after line 130.
N200 MCALL CYCLE82(2,0,1,-3.25,,1) Open the modal range and specify machining with
CYCLE 82 festlegen
N210 POS001: Specify label denomination POS001
N220 G111 x-20 y... Specify POL for polar the co-ordinates to be the centre
of the circular pocket
N230 G0 ap=... rp=... Specify polar co-ordinates for the 1st hole
N240 G0 ap=ic(...) rp=10
N250 G0 ap=ic(...) rp=10 Explanation see solution Summary page 10
N260 G0 ap=ic(...) rp=10
N270 G0 ap=ic(...) rp=10 Incremental advance for 7 further holes
N280 G0 ap=ic(...) rp=10
N290 G0 ap=ic(...) rp=10
N300 G0 ap=ic(...) rp=10
N310 ... Terminate modal range
N320 …. Specify label denomination POS001E
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
Cycles are available for a circular and rectangular pattern for the programming of
standard drilling pattern.
Using the pattern „Grid for holes in line“ the holes on the grid of our
work piece are now to be centred.
Exercise
180° 90°
N340 POS002:
N350 CYCLE801(-11,-45,180,9,9,3,3) Result of the cycle programming
N360 ENDLABEL:
N370 MCALL
Drilling the holes in the hole grid and the central bore of the pitch circle
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
As for the drilling cycle the machining parameters must be specified. The cycle
can be used with and without a compensating chuck. The direction of rotation at
the cycle start determines whether a left or right hand thread is being cut. The
pitch can be defined for standard threads by stating the size of thread. For other
threads the actual value of the pitch can be entered.
Exercise
Finally the threads M6 are to be tapped now. For the description of the tapping
positions the pitch circle is to be used.
…………………………………………………………….
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
Instruction Meaning
When programming drilling patterns (e.g. holes on a pitch circle) the polar co-ordinate system is often
used. This often saves extensive calculation effort that would be necessary if the centres of the holes
were to be programmed in Cartesian co-ordinates.
The plane polar co-ordinate system consist of an origin, the pole of the plane and a number of rays
from the pole outwards (polar axes). A point can thus be defined explicitly by means of the radius vec-
tor and the polar angle.
Y
+42
+6
G111 in x
5°
Polarachse
Pol X
G111 in y
Cycles Explanation
CYCLE84(…) Tapping
Exercise
In the deep hole drilling cycle the following values have been programmed (see
page 3). Please answer the posed questions.
X -20 Y -20 Z 2
Z 0
Up to which Z value (abs) does the machine plunge into the work piece for the first
drilling?
Z 1
Up to which Z-dimension (abs) does the machine drill in the first step?
Z -10
How many chip clearing processes are there? State the depths (abs)
1 2 3 4 5 6 7 8 9 10
-9 -19 -27 -30
M6
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
In order to machine similar holes with just one cycle definition, the modal call-up is
possible.
With the modal call-up a range is defined in which the type of machining and the
associated hole positions are described. This range starts with an MCALL and
finishes with a second MCALL. If these hole positions are to be used again for a
later machining sequence, they can be called up again with a label denomination.
Example:
Exercise
In the following the holes on the pitch circle are to be defined in a Label by means
of polar co-ordinates and centred 3.25mm deep. For this insert the program sec-
tion after line 130.
N200 MCALL CYCLE82(2,0,1,-3.25,,1) Open the modal range and specify machining with
CYCLE 82
N210 POS001: Specify label denomination POS001
N220 G111 x-20 y-20 Specify POL for polar the co-ordinates to be the centre
of the circular pocket
N230 G0 ap=20 rp=10 Specify polar co-ordinates for the 1st hole
N240 G0 ap=ic(45) rp=10
N250 G0 ap=ic(45) rp=10
N260 G0 ap=ic(45) rp=10
N270 G0 ap=ic(45) rp=10 Incremental advance for 7 further holes
N280 G0 ap=ic(45) rp=10
N290 G0 ap=ic(45) rp=10
N300 G0 ap=ic(45) rp=10
N310 MCALL Terminate modal range
N320 POS001E: Specify label denomination POS001E
M6
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
Drilling the holes in the hole grid and the central bore of the pitch circle
M6
20
x10
8* 4
/ 20
5°(3
0
R1
20
60°)
45°
45
n
8
9
-3
0
TIE
F
9xn 8
x20
9
11
Exercise
Finally the threads M6 are to be tapped now. For the description of the tapping
positions the pitch circle is to be used.
MCALL CYCLE84(2,0,1,-12,,,3,,1,,350,500,3,1,0,0,,)
1 Brief description
Objective of the module:
Having worked through this module you will be able to use the most important operating aspects of
the control unit and to set up a part program.
This module presents an overview of the operation sectors machine, parameters and program.
Operation sector
Machine Section 1
Summary Section 4
Notes
The control unit can be switched ON and OFF in a variety of ways. That
depends largely on the overall configuration of the individual machine.
1 2
3 4
5
6
1 Mode-of-operation Automatic
2 Name of the selected part program
3 Display of the present tool positions in the available axes
4 Statements regarding the master spindle
5 Display of the current NC-program block
6 NC-display Feed
7 Active tool
8 Horizontal Softkey strip
9 Vertical Softkey strip
Displayed in the operation sector 'Machine' is the execution of the part pro-
Notes
In this range the operator can edit the necessary data for the execution of
programs.
Tool compensation
R-Parameter
Value assignment for the R-parameters that can be freely used in the
program
Setting data
Notes
The operation sector 'Program' contains the whole process of program ed-
iting and management:
Notes
The following notes describe the sequence for editing a part program in the
operation sector 'Program':
Enter the required name MOTOR for the directory, select the data extension
„Work Piece Data (WPD)“ and acknowledge the input with 'Enter'.
After pressing the Softkeys „OK“ you are already in the work
piece directory „[Link]“.
Enter here the program name PLEUEL and acknowledge after your choice
of the data extension „Part Programm File (MPF)“ the inputs with 'Enter'
and OK.
The program editor of the control unit is available for the input of the codes
or cycles.
Notes
All basic functions of the control unit are accessible to the machine opera-
tor via the operation surface. They are combined in the Operation sec-
tors.
When using the plant the product instructions by the manufacturer must be
regarded.
Tool correction,
zero point offsets,
R-parameters,
setting data
Program editing,
simulation,
program management
Alarm messages,
service messages