sinumerik
Tool and Mold Making
SINUMERIK 810D/840D
s
s First for the
theory 1
Machine operators –
at the machine 2
References
SINUMERIK 810D/840D Information for
Tool and Mold Making programmers 3
Contents Page
Valid for
Control software version
SINUMERIK 840D 6
SINUMERIK 840DE (Export version) 6
SINUMERIK 840D powerline 6
SINUMERIK 840DE powerline 6
SINUMERIK 840Di 2
SINUMERIK 840DiE (Export version) 2
SINUMERIK 810D 3
SINUMERIK 810DE (Export version) 3
SINUMERIK 810D powerline 6
SINUMERIK 810D powerline 6
04.04 Edition
0 Introduction
Printing history, Trademarks
SINUMERIK® Documentation
Printing history
Brief details of this edition and previous editions are listed below.
The status of each edition is shown by the code in the „Remarks“ column.
Any change to the technical content of a page as compared with the previous
edition is indicated by the changed edition number in the header of
the page concerned.
Trademarks
SIMATIC, SIMATIC HMI, SIMATIC NET, SIROTEC, SINUMERIK and SIMODRIVE are registered
trademarks of Siemens AG. Other names in this publication might be trademarks whose use by a
third party for his own purposes may violate the rights of the registered holder.
More information is available on the Internet: Other functions not described in this documentation might be executable
http://www.ad.siemens.de/sinumerik in the control. This does not, however, represent an obligation to supply
such functions with a new control or when servicing.
This document has been created using a number of layout and
graphics utilities. We have checked the contents of this manual for agreement with the
The reproduction, transmission or use of this document or its contents is hardware and software described. Nonetheless, differences might exist
not permitted without express written authority. Offenders will be liable for and therefore we cannot guarantee that they are completely identical.
damages. All rights, The information given in this publication is reviewed at regular intervals
including rights created by patent grant or registration of a utility model or and any corrections that might be necessary are made in the subsequent
design, are reserved. printings. We welcome suggestions for improvement.
© Siemens AG 1995 - 2004. All rights reserved. Subject to change without prior notice
0.2
© Siemens AG 2004 All rights reserved. SINUMERIK 840D Manual, Tool and Mold Making 04.2004
Introduction
Contents 0
Contents
1.2 What are the needs of tool and mold making? .................................... 1.3
0.3
© Siemens AG 2004 All rights reserved. SINUMERIK 840D Manual, Tool and Mold Making 04.2004
0 Introduction
Contents
References
0.4
© Siemens AG 2004 All rights reserved. SINUMERIK 840D Manual, Tool and Mold Making 04.2004
First for the theory
Contents Page
1.2 What are the needs of tool and mold making? 1.3
1
1.1 First for the theory
Introduction
1.1 Introduction
5-axis machining of complex parts, in tool and mold making in particular, is based on the CAD - CAM
- CNC process chain.
The aim of this brochure is to help both CNC programmers at the CAM workstation and operators at
the machine to do their job, and to simplify communication between the CAM station and the machi-
ne.
Automotive
trim
Sinumerik 840D features powerful, sophisticated functions, the intelligent use of which greatly simpli-
Þes the entire 5-axis programming and machining process and improves production results.
1.2
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
What are the needs of tool and mold making?
1.2
1.2 What are the needs of tool and mold making?
! good operability
! user-friendly programming at the
machine
! optimum performance in the
CAD – CAM – CNC process chain
! maximum quality control at
the machine
Valve
1.3
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.2 First for the theory
What are the needs of tool and mold making?
Freeform
5-axis machining in
1
surface modern milling centers
Inclined surface 2
with hole ... to machine geometries anywhere in the area
# (the setting angle of the tool axis must be
able to be varied) ...
3 + 2 axes
Deep cavity 3
... or to mill deep cavities $ ...
1.4
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
What are the needs of tool and mold making? 1.2
Machine movement
CNC programming
Direction
vector for tool orientation
A set position in the CNC program is described
with the coordinate axes X, Y and Z. To describe
the tool orientation we recommend using the
direction vector A3, B3, C3, so that the orientati-
on can be programmed independently from the
kinematics.
C3
A3 B3
For certain tasks a Þxed orientation is perfectly adequate, e.g. on inclined planes. In many cases, ho-
wever, it is desirable for the tool orientation to change during the traversing movement. This is known
as 5-axis simultaneous machining. The control system has to interpolate 2 rotary axes in addition to
the 3 linear axes. With modern 5-axis control systems like Sinumerik 840D you can program elements
such as inclined holes and pockets with a Þxed tool orientation directly on the machine and adjust the
key machining parameters in CAM programs.
1.5
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.3 First for the theory
Milling with 3 axes, 3 +2 or 5 axes?
" 3 axes
Controlled path axes X, Y, Z
1
The orientation of the cutter remains unchanged along the entire cutter path. The cutting conditions at
the cutter tip are never perfect.
# 3 + 2 axes
Controlled path axes X, Y, Z
Fixed rotary axes, e.g. A, C (table)
In these machine tools the orientation of the tool or the position of the table can be altered, e.g. by
resetting.
In the picture on the left the cutter is working with optimum cutting conditions. The cutting conditions
deteriorate as the cutter moves up towards the top or to the side of the workpiece. In order to obtain
optimum cutting conditions here too, the table is swiveled. To machine a freeform surface completely,
the table often has to be swiveled several times in various directions.
1.6
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Milling with 3 axes, 3 +2 or 5 axes?
1.3
$ 5 axes:
Controlled path axes X, Y, Z
Controlled rotary axes, e.g. A, B
Advantage: The orientation of the tool can be optimized along the entire path, synchronously to the
linear movement of the tool. In this way optimum cutting conditions are maintained throughout the
path.
1.7
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.4 First for the theory
What moves and how?
1 2
1.8
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
What moves and how?
1.4
4 5
1.9
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.4 First for the theory
What moves and how?
Kinematic-independent programming
Depending on the machine kinematics, completely different machine movements may be required
to machine the same surface. The machine kinematics in example 2 are much more suitable for the
production of this workpiece.
Example
Machining a cylinder jacket surface
USION When programming on a machine with Sinumerik 840D there is generally no need to worry
CONCL about machine kinematics and tool length. All you need to think about is the relative move-
ment between the tool and the workpiece. The control system does the rest.
See below for details of how operation varies according to the machine kinematics.
1.10
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
What moves and how?
1.4
Inßuence of tool length on machine axis movement
Example
The longer the tool in the example, the
larger the traversing movements of the axis
slides.
Each tool change would require the CNC
program to be recalculated on the CAM system.
When programming on a machine with Sinume-
rik 840D, there is no need to worry about
tool length if tool offset is enabled. The control
system takes care of it automatically.
Note: Depending on the tool length, it can happen that the traversing range of an axis is overrun and
the axis runs on to the limit switch, even though all values in the CNC program are within the work
area. A distinction is made here between the “gross” and “net” work area.
The examples show that with 5-axis machining it is vital that the CNC programs are not speciÞc to the
machine or tool. This is why Sinumerik 840D features integral 5-axis transformation.
1.11
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.5 First for the theory
Machine-independent CNC programs
Of course we want CNC programs that can be run on various machine kinematics with a range of
tools. For this to be possible, the control system has to compensate the inßuences illustrated below.
Example
In the CNC program an orientation change is programmed with no other traversing
movement. The orientation change can be programmed with A3, B3, C3, irrespective of
the machine kinematics.
Without TRAORI
The control system disregards the tool length. It
rotates around the center of rotation
of the axis. The tool tip moves out of position
and does not remain Þxed.
With TRAORI
The control system only changes the orientation,
the position of the tool tip remains Þxed. The ne-
cessary compensating movements in X, Y and Z
are calculated automatically.
1.12
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Machine-independent CNC programs
1.5
Sample CNC program
In this example a straight line is milled from X0 to X10. The tool orientation changes from 90°
to 45°.
With TRAORI there is no need to worry about the actual machine movement when program-
NOTE ming a straight line. The end point is approached exactly, and the tool tip describes a straight
line.
1.13
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.6 First for the theory
Theory of tool radius compensation
For radius compensation in face milling with CUT3DF, it is not enough simply to specify the cutter
geometry. The compensation direction is also required. The compensation direction is calculated
from the surface normal, the tool direction and the tool geometry. This perpendicular is known as
the surface normal or surface normal vector. It is calculated from the current tool orientation and the
perpendicular to the workpiece surface.
1
The compensation options in Sinumerik 840D
2
allow the tool offset to be calculated using the
surface normal vector. Previously, very few CAM
systems were capable of providing the surface
normal with every CNC block.
Generally speaking, only small radius changes relative to the standard tool (radius used for
NOTE calculations by the CAM program) can be corrected. A smaller cutter radius is easy to calcula-
te but results in a different peak-to-valley height. With a larger radius there is a risk of collision
between the tool and the workpiece contour.
FN Surface normal
TCP Tool center point
PE Tool insertion point
TB Path tangent
VK Compensation vector
1.14
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Theory of tool radius compensation
1.6
Inßuence of tool radius compensation in 5-axis circumferential mil-
ling, taking account of the limitation surface (CUT3DCC)
Example
Milling a pocket with a smaller cutter
5
2 # Tool with smaller radius
TCP PE
1.15
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.6 First for the theory
Theory of tool radius compensation
Sinumerik 840D also offers other compensation functions, however, a few applications of which we
have already seen on the previous pages. All variants of Sinumerik 840D tool radius compensation
are enabled with G41/42 and disabled with G40.
CUT2D 2 1/2D compensation with compensation plane determined with G17 - G19
3D circumferential milling
Face milling
1.16
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
What are frames?
1.7
1.7 What are frames?
Coordinate systems
1.17
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.7 First for the theory
What are frames?
Using frames
Example
Machining on an inclined plane
1.18
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Precision, speed, surface quality
1.8
1.8 Precision, speed, surface quality
CAD ) CAM Many CNC programs for freeform surface machining come from CAM systems. The CAM system
obtains the workpiece geometry from a CAD system.
CAM ) CNC The CAD -> CAM -> (post-processor) -> CNC process chain is particularly important in the machi-
ning of freeform surfaces.
1.19
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.8 First for the theory
Precision, speed, surface quality
Compressor function
2
Linear interpolation at the block transitions leads
1 to acceleration jumps in the machine axes,
which in turn can cause resonance in the machi-
ne elements and can ultimately be detected on
the workpiece surface as a beveled pattern " or
as vibration #.
1.20
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Precision, speed, surface quality
1.8
If the tolerance band for the CAM system is known, this or a slightly higher value should be used
In COMPCAD this value is typically between 1.2 and 1.5 of the programmed chord tolerance of
the CAM system. If this value is not known, the default setting for CYCLE832 should be used as a
starting value.
1.21
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.9 First for the theory
Structure of CNC mold making programs
A CNC program for machining freeform surfaces is made up of many CNC blocks and is generally not
edited on the CNC control system.
The most clearly structured CNC program is one in which the CAM programmer uses the following
program structure:
Example
Main program with subroutine call
N10 T1D1
Tool call
The subroutines contain the typical traversing blocks, which owing to the complexity of the programs
should not be changed.
The zero offset, all technology values, start point and high-speed settings are deÞned in the main
program. The high-speed setting parameters can be used to inßuence the quality of the workpiece.
A well structured CNC program can also be resumed from a chosen point after a program interrupti-
on.
1.22
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Orientation in 5-axis applications
1.10
1.10 Orientation in 5-axis applications
A 5-axis machine can position the tool in any orientation to the workpiece, subject of course to the
machine kinematics. In order to move from one orientation to another, intermediate positions must be
interpolated. The path from the start to the end orientation is described in this way.
1 2
In orientation interpolation we have a choice of linear interpolation, great circle interpolation, conical
surface interpolation and curve interpolation.
Linear interpolationORIAXES
In linear interpolation from a start " to an end orientation # the necessary rotary axis movements are
broken down into equidistant sections.
1
2
1.23
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.10 First for the theory
Orientation in 5-axis applications
In this interpolation process the path from the start " to an end orientation # is interpolated in such
a way that the orientation vector runs in the plane that is spanned by the starting vector and the Þnal
vector.
Applications:
Structural components in the aviation industry.
ORIVECT should also be used for face milling in
1
mold making applications.
2
ORICONCW
Interpolation on the peripheral surface of a cone
in the clockwise direction with speciÞcation of the
end orientation and taper direction or aperture
angle of the cone.
ORICONCCW
Interpolation on the peripheral surface of a
cone in the counterclockwise direction with
speciÞcation of the end orientation and taper
direction or aperture angle of the cone.
ORICONIO
Interpolation on the peripheral surface of a cone
with speciÞcation of the end orientation and an
intermediate orientation.
1
2
ORICONTO
Interpolation on the peripheral surface of a cone
with tangential transition and speciÞcation of the
end orientation.
1.24
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Orientation in 5-axis applications
1.10
Example
Let‘s have a look at an example:
In great circle interpolation the orientation should change from start A3 = sx, B3 = sy, C3 = sz to
end A3 = ex, B3 = ey, C3 = ez. No value is zero, i.e. the orientation is inclined (s = start orientati-
on, e = end orientation).
Reorientation in great circle interpolation takes place in a plane $. The line on the cone is referred
to as a great circle '. In the illustration the C axis rotates through 85°. The A axis swivels from 60°
to 30°. Speed control for the reorientation is continuous.
1 A=6
° 0°
= 30
A
C = 85°
1.25
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.10 First for the theory
Orientation in 5-axis applications
Example
The situation is quite different if interpolation goes through the point &.
This is the case if for example sx = 0 and ex = 0, i.e. the start and end orientation
are parallel to the Y/Z plane.
What happens next? The C axis starts at 0°, the A axis at 45°, for example.
1.26
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
First for the theory
Orientation in 5-axis applications
1.10
Let‘s take another look at great circle interpolation in the vicinity of the pole in practice:
Certain machine kinematics, especially the commonly used fork head, feature poles or singularities.
Example
Example: When milling a pocket with a
45° incline $ the A and C axis rotate harmo-
niously when traversing from one corner to the
other - everything is OK.
Incidentally, the pole situation is a physics problem rather than a control technology problem.
In fact Sinumerik 840D alleviates the problem substantially.
Poles can be avoided by appropriate clamping. For example, an inclined chuck can be helpful.
NOTE
1.27
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
1.10 First for the theory
Orientation in 5-axis applications
In curve interpolation the movement of the orientation vector is described by the paths at the tool tip
(spline curve ") and the path of a second point on the tool (spline curve #).
To machine an inclined surface by circumferential milling, for example, the upper and lower contour
would be described. This type of interpolation results in a faster path speed and improved surface
quality.
1.28
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators -
at the machine
Contents Page
2
2.1 Machine operators - at the machine
Workpiece – determining the zero point
Function
Once the machine has been switched on and the reference point approached, the axis positions rela-
te to the machine coordinate system. The position of the workpiece in the machine coordinate system
is signaled to the control system by the zero offset.
Previously, the workpiece was clamped, manually aligned paraxially to the machine axes, and then
the zero offset was determined, e.g. by scratching. By looking at two examples that commonly occur
in practice, we can see how much easier it is with probes and SINUMERIK cycles. We will show how
the control system compensates the basic rotation of the workpiece, eliminating the need for time-
consuming, manual alignment.
Example Determining the zero point + measuring the basic rotation about the tool axis
P3
P4
P1
P2
Task assignment
After being clamped, the workpiece is rotated relative to the machine coordinate system in the wor-
king area. You have to determine the zero offset and the position of the coordinate system, in other
words the basic rotation.
2.2
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Workpiece – determining the zero point
2.1
Prerequisites
! Probe is calibrated, active and clamped in the spindle; tool offset is valid
! Measuring cycles are installed
! Workpiece is clamped
If only one workpiece is to be machined, as is usually the case in tool and mold making,
NOTE
measurement takes place in JOG mode (as described below). If several similar parts are to be
machined in the same device, two measuring cycles are used in automatic mode (the approxi-
mate zero point must be set up).
1 G54
Select zero offset " for data transfer, e.g. G54, G55, G56 or G57. In this
example G54 was used.
2.3
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.1 Machine operators – at the machine
Workpiece – determining the zero point
P3
P4
P1
P2
Using the “axis keys”, position the probe in front of the touch point P1 on
the
workpiece.
Save P2 For touch points P2, P3 (P4) position the probe in front of the workpiece
again and proceed as for P1. Note: Point P4 is only required for non-rec-
Save P3 tangular workpieces.
Calculate
corner Press “Calculate corner”:
An offset in the X-Y plane and a basic rotation about “Z” has now been
determined.
2.4
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Workpiece – determining the zero point
2.1
Determining the Z value for the zero offset
Press “NC Start” to start the measuring operation. The Z value is added to
the zero point table.
Determination of the zero point and basic rotation for a 3-axis machine is now complete. If the basic
rotation is not equal to zero, the control system converts programmed, paraxial movements into corre-
sponding XY movements.
• Effect of zero offset on machines with a If the machine has a fourth axis, e.g. C axis, and
rotary axis in the table the workpiece is to be machined paraxially to the
machine coordinate system, the basic rotation of
• Effect of zero offset on machines without a the workpiece must be compensated with the C
rotating table axis.
2.5
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.1 Machine operators – at the machine
Workpiece – determining the zero point
Zero offset
The Z axis Þeld contains the measurement result for the rotation. Copy this
value into the C axis Þeld. First overwrite the value for “Z” with 0.
Call the zero offset table to transfer the display to the rotary axes.
Offset
Axes +
Enter the value from “Z” under “C”.
Press “NC Start”. The turntable rotates about C = 24.894° and aligns the
workpiece paraxially to the machine coordinate system.
2.6
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Workpiece – determining the zero point
2.1
Repeat the entire measuring procedure from page 2.3 onwards, but this
time on the paraxially aligned workpiece. This is necessary because the
rotation means that the X, Y values are no longer correct and need to be
determined again. The Z value has not changed.
Corner
The angle of rotation that was entered manually under “C” in the zero point
table is not overwritten.
When you press “NC Start”, the zero point is approached in “Z” with a safety
clearance.
Example Production – Machine kinematics “with” and “without” a C axis in the table
1 2
In production the same CNC program results in different movements of the machine axes, depending
on the machine kinematics.
2.7
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.1 Machine operators – at the machine
Workpiece – determining the zero point
On request, the “Measure workpiece” function in Sinumerik 840D can include measuring functions
tailored to speciÞc tool and mold making requirements.
These can include the “Spigots” function, which makes zero point deter-
Spigots mination much easier on cast parts with no deÞned workpiece edges. This
function is used when it is not possible to touch the workpiece edges.
Example Overview - Measuring function for tool and mold making with reference to “Spigots”
2.8
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Workpiece – determining the zero point
2.1
Zero offset with swiveling of working plane
Requirements
Task, function
To determine the zero point for a workpiece with an inclined plane" and rectangular base. According
to the CAM program the tool must be aligned perpendicularly to this plane for the subsequent opera-
tions. The entire sequence can be divided into 4 individual steps. The approximate zero offset must
be known.
Sequence
Measure inclined plane" – CYCLE998,
Measure angle:
2.9
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.1 Machine operators – at the machine
Workpiece – determining the zero point
Result:
3 The translatory values X and Y and the basic
rotation of the tool axis Z for zero offset are
determined.
Note:
This operation is entirely unrelated to the machi-
ne kinematics.
2.10
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Workpiece – determining the zero point
2.1
Programming
Call the “Program” operating area.
Program
N02 T1D1 ;Use the “Measure”, “Mill”, “Measure workpiece”, “Measure angle” soft-
keys
to call the cycle. Select the measuring function as shown in the screen
form below
and enter all parameters.
2.11
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.1 Machine operators – at the machine
Workpiece – determining the zero point
Start swiveling.
To change the parameters, use the cursor to highlight the cycle in the pro-
NOTE
Recompile
gram and press the “Recompile” softkey. The parameters are copied back
into the screen form for the cycle, the screen form is opened and you can
make your changes.
2.12
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Gauging tools
2.2
2.2 Gauging tools
Function
T1 1 2 D1
The tool magazine is loaded, the tool numbers
Taper
base T1, T2, etc. " entered in the tool table and the
tools assigned a tool offset D # - consisting of
L1 radius “R” and length “L1” - in the usual way.
L1 L1
The CAM programmer speciÞes the tool type
and
geometry. You specify the tool length in the
associated tool parameter.
Come to an agreement with the CAM programmer: to avoid major tool deßection, the CAM
2.13
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.2 Machine operators – at the machine
Gauging tools
Using a tool presetting device the tool offset data “L” and “R” has been determined externally and the
tool placed in the tool magazine. The tool offset data is then entered:
! @ #
1 2 3
- ) >
- 0 .
An easier option is to use a tool probe in JOG or AUTOMATIC mode and the tool gauging cycle CY-
CLE971. The measurement data “L” or “R” can be determined in a single operation and automatically
stored in the tool offset memory.
2.14
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Gauging tools
2.2
To do this, call CYCLE971 in the program, select radius or length and the appropriate measurement
strategy, and enter the parameters. If you call the tool offset memory after the probing operation, the
offset data for the active tool will have been entered automatically.
!L
2.15
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.3 Machine operators – at the machine
Program data transfer
CNC programs are saved on the HMI control unit and gradually loaded onto the control unit via a
", loaded into the NCK CNC memory # and network connection %.
executed with the machine.
3
Disk drive
7
Server Directory FIXTURE.SPF
...
N5120 X Y Z A3 B3 C3
N5130 X Y Z A3 B3 C3
...
TCP/IP Ethernet
Advanced
6
LAMP.MPF
...
1 N 50 EXTCALL
“FIXTURE.SPF”
PCU 50 ...
2 PCU 20
Setting data
5
HMI/PCU hard disk
...
Server/disk drive/
NCK CNC memory
directory/.....
Production
The program data storage is deÞned in conjunc- In the main program ' an EXTCALL command
tion with the network administrator and Siemens. is programmed, which calls the swapped out
Sinumerik 840D supports a number of options, geometry program ( in accordance with the net-
including: work path on the server, the PCMCIA card, etc.
In the setting data & the path to the swapped The EXTCALL ensures that the program data is
out program data is deÞned in close consultation gradually transferred to the NCK CNC memory.
with the network administrator.
2.16
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Testing a program
2.4
2.4 Testing a program
Testing a program
2.17
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.5 Machine operators – at the machine
Calling and executing a program
Call.MPF (Aufruf.MPF) 1
Main program
N1 G55 6
N2 T1 D1 ;Tool change
N3 M3 S15000
N4 CYCLE832 (0.1,103) 4
N5 EXTCALL “CAM_Roughing”5 ;The search path for
;the swapped out programs
;must already be deÞned in
;the setting data. All
;programs should be located
;in the same directory.
N6 T2 D2 ;Tool change
N7 M3 S20000
N8 CYCLE832 (0.01,102001)
N16 EXTCALL “CAM_Finishing”
N17 M30
N3 G1 Z0 F500 7
N4 G1 X-1.453 Y0.678 F10000
N17 G1 X-1.814 Y0.842
N18 G1 X-1.879 Y0.684 Z-0.001
...
N5046 G1 X-4.118 Y-11.442
N5047 G0 Z10
N5048 Z50
N5049 X10.663 Y-3.67 A3=0.34202 B3=0 C3=0.939693 8
N5050 Z2.868 A3=0.34202 B3=0 C3=0.939693
N5051 G1 Z-2.132 A3=0.34202 B3=0 C3=0.939693 F5000
...
N6582 G1 X7.609 Y3.555 A3=0.34202 B3=-0 C3=0.939693
N6583 G0 Z50 A3=0.34202 B3=-0 C3=0.939693
N6584 M17 9
2.18
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Calling and executing a program
2.5
Main program: The main program contains the two key functions for milling, CYCLE832 % and
EXTCALL&.
CYCLE832 %: CYCLE832 was developed speciÞcally for the program structure illustrated here, with
separation of technology and geometry data. The machining technology for 5-axis milling is deÞned
in CYCLE832. For the roughing program “CAM_ROUGHING” (CAM_SCHRUPP.SPF) with T1, the
parameters in CYCLE832 have been set to favor high speed. For the Þnishing program “CAM_FINIS-
HING” (CAM_SCHLICHT. SPF), the parameters have been set to favor high precision.
TRAORI can also be called in CYCLE832. The current zero offset is retained. See section 2.7 below
for more information about CYCLE832.
EXTCALL&: Since CAM programs are generally very large, they are swapped out to an external
storage device. EXTCALL calls the subroutines from the external storage device.
Subroutine: In the subroutine G90 for absolute programming is immediately followed by the geomet-
ry blocks. In our example these are blocks for 3-axis milling(, followed by blocks for 5-axis simultane-
ous milling ), identiÞed by the vector details A3, B3 and C3.
Selecting/starting/stopping/interrupting/continuing a program
2 1
Workpieces
In the workpiece directory highlight the part program " - in this case the
Select program “CALL.MPF” (AUFRUF.MPF) - and press “Select”.
Press “NC Start” to start the part program. This calls the geome-
try programs “ROUGHING.SPF” (CAM_SCHRUPP.SPF) # and
“FINISHING.SPF” (CAM_SCHLICHT. SPF), which are loaded block by
block onto the control system from the external drive during the machining
process.
2.19
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.6 Machine operators – at the machine
Interrupting a program
Function
When a program is interrupted with “NC Stop”, the tool can be moved away from the contour in
JOG mode, e.g. to perform a measurement. The control system saves the breakpoint coordinates.
The differential travel of the axes is displayed.
Operation
Select axes.
2
Move the axes to the breakpoint according to the differential travel display-
ed. The breakpoint cannot be overrun.
Continue machining.
Function
When 5-axis transformation is enabled, TOROT generates a frame whose Z axis coincides with the
current tool orientation. This allows the tool to be retracted in a 5-axis program, after a tool breakage,
for example, without the risk of collision, by retracting the Z axis. After tool orientation has been pro-
grammed with TOROT, all the programmed geometry axis movements refer to the frame generated
by this programming.
2.20
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Interrupting a program
2.6
Settable frame
(programmed frame)
Basic
coordinate system
Workpiece
coordinate system
Tool retraction
along the Z axis
Current
workpiece orien-
tation
As an alternative to incremental retraction in MDA mode, the tool can be retracted in JOG mode by
pressing the direction key in the tool direction.
Notice: For retraction in JOG mode the machine must be conÞgured accordingly
(Z axis as the geometry axis).
NOTE
TOROT must be deselected before the start of the next program: TOROTOF
2.21
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.6 Machine operators – at the machine
Interrupting a program
Function
This function was developed speciÞcally for programs called with EXTCALL. It is therefore ideal for
large programs obtained from a CAM station.
If machining has been interrupted with the “Reset” key, the “Accelerated external block search without
calculation” function can be used to select any point in the part program from which to start or conti-
nue machining.
Operation
CAM_Roughing.SPF (CAM_Schrupp.SPF) 1
N1 G90
N2 G0 X0 Y0 Z10
N3 G1 Z0 F500
N4 G1 X-1.453 Y0.678 F10000
N17 G1 X-1.814 Y0.842
N18 G1 X-1.879 Y0.684 Z-0.001
CAM_Finishing.SPF (CAM_Schlicht.SPF)
N1 G90
2.22
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
Interrupting a program
2.6
Pressing the “Breakpoint” softkey inserts the
entire program sequence " up to the breakpoint
into the screen form.
Corrections
2.23
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.6 Machine operators – at the machine
Interrupting a program
Quick View
Quick View can be used to view mold making The two editor lines $ display the block current-
part programs containing G01 blocks. Program ly highlighted in the graphic. Scrolling through
loops, polynomials, transformations and G02/03 the editor window automatically highlights the
blocks are not supported. position in the graphic %.
Four views # are available: 3D view ", X/Y
Simulation
2.24
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
High-speed settings – CYCLE832
2.7
2.7 High-speed settings - CYCLE832
Function
The CAM program sequence can be inßuenced with CYCLE832. It provides technological support for
the machining of freeform contours (surfaces) in the 3- and 5-axis high-speed machining range.
Surface quality
Precision Speed
Operation
The cycle combines the essential G codes and machine and setting data that are required for HSC
machining. These are speciÞed in the parameter Þelds. Depending on the parameter choice " the
trend triangle # shows a trend towards either “Speed” or “Precision”.
2.25
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.7 Machine operators – at the machine
High-speed settings – CYCLE832
The user simply chooses between Þnishing, preÞnishing and roughing in the Machining Þeld and
enters a value in the Tolerance Þeld. The values in all other Þelds have already been entered by the
machine manufacturer. The machine manufacturer can enable the other Þelds by means of the Adap-
tation Þeld.
2.26
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
High-speed settings - CYCLE832
2.7
Note If changes are made you should be guided by are becoming more and more rigid, feedforward
the tolerance value speciÞed in the CAM pro- control is used less and less. It allows following
gram. Smaller tolerances than those speciÞed errors to be reduced almost to zero.
there are not recommended. Transformation
TRAORI is used for 5-axis simultaneous milling. More information can be found in Chapter 3,
If TRAORI is already included in the NC pro- which contains detailed descriptions of the indivi-
gram, there is no need to specify it here. dual parameters.
Programming
CYCLE832 is ideally programmed in the hig- dual program sections or freeform surfaces. See
her-order NC control program which calls the also the programming examples in the previous
geometry program. In this way you can apply the chapter.
cycle to the entire geometry or, depending on
the transparency of the CAM program, to indivi-
The following call options with reduced parameter transfer can be used for CYCLE832:
2.27
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.8 Machine operators – at the machine
ShopMill
2.8 ShopMill
In Sinumerik 840D, software version 6.4, the restricted to sequencer programming by means
user-friendly ShopMill interface provides a real of partial machining steps and even supports
alternative to the universal Sinumerik 840D stan- demanding 5-axis applications.
dard DIN/ISO user interface.
A complete description of the ShopMill functions
ShopMill features many additional mold making can be found in
functions, greatly simplifying its use for mold “Sinumerik 810D/840D Using and
makers. Programming ShopMill (SW06) 11/03
6FC5298-6AD10-0AP2 (German)”
As a consequence, ShopMill is now no longer
ShopMill:
Simple operation
and
programming
in the workshop
Switching by
machine
manufacturer
function
Standard
DIN/ISO:
multifunctional
user interface
for production
machines
2.28
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Machine operators – at the machine
ShopMill
2.8
ShopMill functions
Setup
1 2 Powerful setup functions in ShopMill ensure
rapid and accurate detection of the component
position. Any offsets are compensated automati-
cally by the control system.
" Edge
# Corner
3 4
$ Hole
% Spigot
Sequencer
1 2
ShopMill sequencer programming allows easy
programming of simple
2 1/2D machining tasks directly on the machine.
An ideal add-on for mold makers.
3
" Program
# 2D representation
$ 3D representation
G code editor
ShopMill comes with a powerful G code editor,
which easily supports mold making programs
of up to 100 MB in size, eliminating the need to
switch to the standard DIN/ISO interface.
2.29
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
2.8 Machine operators – at the machine
ShopMill
Block search
The extended block search function described
in section 2.6 also now comes as standard with
ShopMill.
3D viewing
1 2
ShopMill also allows simple viewing of 3D forms.
Cutouts can also be deÞned.
" Workpiece
# 2D representation
$ 3D representation
3
Tool management
ShopMill tool management is clearly structured
and supports various tool types, tool names in
plain text, sister tools and tool geometry with
length, radius and number of cutters.
Ethernet
The ShopMill program manager allows direct
access to external drives via a high-speed
Ethernet connection.
Extensive mold making programs can be stored
1
2.30
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for
programmers
Contents Page
3
3.1 Information for programmers
Introduction
3.1 Introduction
Introduction
In the programming of freeform surfaces, the The postprocessor is of the utmost importance
entire CAD/CAM/CNC in gaining the maximum beneÞt from the
process chain is of vital importance. capabilities of Sinumerik 840D.
The CAD system generates the geometry of the The postprocessor has to ensure that the higher-
desired workpiece. On the basis of this geometry order functions of Sinumerik 840D are activated
Þle the CAM system generates the corresponding in the best possible way. An overview of all
processing strategy with associated technology higher-order Sinumerik 840D functions can be
information. found in Chapter 4.
3.2
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Kinematic-independent NC programs
3.2
3.2 Kinematic-independent CNC programs
RI
TRAO
G1
G1
3.3
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.2 Information for programmers
Kinematic-independent NC programs
2. Tool gauging
In machine kinematic-neutral programs, the tool
data are calculated directly from the tool Þle.
Corner rounding
4. Feedrate proÞle
3.4
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Five-axis transformation – TRAORI
3.3
3.3 Five-axis transformation – TRAORI
Programming TRAORI offers several advantages. In particular: the program is independent of the
tool length and machine kinematics; the feedrate relates to the tool center point, and compensation
movements to compensate the rotary axis movements are performed automatically.
Programming
TRAORI(n)
TRAFOOF
Function
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.4 Information for programmers
Tool orientation - A3= B3= C3=, ...
We recommend using directional vectors to program the tool orientation. Sinumerik 840D supports
all types that are relevant in practice for programming the tool orientation. Orientation transformation
TRAORI must be activated.
Programming
G1 X Y Z A2= B2= C2= Programming on the basis of Euler angles or RPY angles
(roll pitch yaw)
G1 X Y Z A5= B5= C5= Programming the surface normal vector at end of block
____________________________________________________________________________
LEAD Lead angle for programming tool orientation.
Angle relative to the surface normal vector in the plane
spanned by the path tangent and surface normal vector.
3.6
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Tool orientation – A3= B3= C3=, ...
3.4
Variants for deÞning the tool setting
This section covers only the most important functions. More information can be found on the DOCon-
CD.
A3 B3
Example ORIVECT.MPF
N020 TRAORI
N030 G60 F10000
X0 Y0 Z0
N050 A3=0 B3=0 C3=1
N060 A3=0 B3=1 C3=0
N070 A3=1 B3=0 C3=0
N080 A3=1 B3=1
N090 A3=1 B3=1 C3=1
N100 A3=1 B3=0 C3=1
N110 A3=0 B3=1 C3=1
N160 A3=0 B3=-1 C3=0
N170 A3=-1 B3=0 C3=0
N180 A3=-1 B3=-1
N190 A3=-1 B3=-1 C3=1
N200 A3=-1 B3=0 C3=1
N210 A3=0 B3=-1 C3=1
N888888 M30
Example
ORIRPY.MPF
where B2 = +45° N020 TRAORI
rotated about the N030 G60 F10000 X0 Y0 Z0
rotated Y axis
N050 C2=0 B2=0
N060 C2=90 B2=90
3.7
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.4 Information for programmers
Tool orientation – A3= B3= C3=, ...
Example ....
N020 TRAORI
N030 G60 F10000 X0 Y0 Z0
N050 A2=0 B2=0 C2=0
N060 A2=0 B2=-90 C2=0
...
Example
2
....
N100 G54
N110 G64
N120 ORIWKS
N130 CUT3DF
N110 ORIC
N120 START: ROT X=R20
N130 G0 X=260 Y0 A3=1 B3=0 C3=0
N140 G1 Z0 LEAD=5 TILT=10 G41
N150 X240.000 Y0.000 A5=1 B5=0.000
C5=0.000
...
3.8
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
High-speed settings – CYCLE832
3.5
3.5High-speed settings – CYCLE832
To simplify programming and clarify program structure, Sinumerik 840D includes CYCLE832, which
contains the most important functions for freeform surface milling.
CYCLE832 also makes it easier for the machine operator to inßuence the program.
Programming
1)
Setting can be changed by machine manufacturer.
2)
Sequence of parameters (CYCLE832(_TOL,76543210)
3.9
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.5 Information for programmers
High-speed settings – CYCLE832
Decimal place 3
With G641 the tolerance value corresponds to Continuous-path control (_TOLM)
the ADIS value. On initial input the tolerance is 0 G64 (default)
preset with the following values: 1 G641 Corner rounding with ADIS,
0 Deselection: 0.1 (linear axes) ADISPOS
0.1 degrees (rotary axes) 2 G642 Corner rounding with single-axis
Measurement system mm/inches is tolerance
taken into account 3 G643 Block-internal corner rounding
1 Finishing: 0.01 (linear axes) 4 G644 Speed-optimized
0.08 degrees (rotary axes) corner rounding
2 PreÞnishing: 0.05 (linear axes) With the NC block compressor with COMPCAD,
0.4 degrees (rotary axes) COMPCURV, G642 is always selected.
3 Roughing: 0.1 (linear axes)
0.8 degrees (rotary axes)
If the tolerance value is also to apply to the rotary Decimal place 4
axes, 5-axis transformation must be set up by Compression, NC block compressor (_TOLM)
the machine manufacturer. 0 FFWON SOFT
with feedforward control, with jerk limi-
tation
Decimal place 2 1 FFWOF SOFT
Transformation (_TOLM) without feedforward control, with jerk
The Transformation input Þeld is only displayed if limitation
the NC option is set (5-axis machining package 2 FFWOF BRISK
set). without feedforward control, without
0 TRAFOOF jerk
CAM programs with open limitation
rotary axis positions are supported In order for feedforward control (FFWON) and
1 TRAORI jerk limitation (SOFT) to be selected, the control
2 TRAORI (2) system and machining axes must have been
Deselection of the transformation number of the optimized by the machine manufacturer.
manufacturer cycle to call 5-axis transformation.
The parameter is used in conjunction with the
following GUD7 variable _TOLT2. Decimal place 5
This can be followed by the name of a manufac- Compression, NC block compressor (_TOLM)
turer cycle which calls the manufacturer trans- 0 none (COMPOF)
formation cycle. If _TOLT2 is empty (“default”), 1 COMPCAD
selecting transformation 1, 2 ... calls 5-axis 2 COMPCURV
transformation with TRAORI(1), TRAORI(2). 3 B spline
In order for feedforward control (FFWON) and
jerk limitation (SOFT) to be selected, the control
system and machining axes must have been
optimized by the machine manufacturer.
In order for these functions to be used, the CNC/machine must have been optimized by the machine
TIP manufacturer in the proper manner.
3.10
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
High-speed settings – CYCLE832
3.5
Using the high-speed setting cycle
CYCLE832 combines the essential G codes and In CAM programs in the HSC range the three
machine and setting data that are required for machining types have a direct bearing on
HSC machining. the precision and speed of the path contour.
By specifying a tolerance value the operator/
programmer can weight these factors accordin-
Surface quality gly.
Decimal place 0
Decimal place 1
3.11
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.5 Information for programmers
High-speed settings – CYCLE832
The compressor is ideally called in CYCLE832. To program it separately you should use the following
procedure.
Programming
COMPCURV
COMPCAD
COMPOF
3.12
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
High-speed settings – CYCLE832
3.5
Function of the spline compressor
Notes on programming
If the high-speed setting cycle CYCLE832 is Writing of machine data [MA] must be unlocked
not available, then the compressor should be by the machine manufacturer.
programmed as follows. This is the case with
software versions prior to 6.4.
Example
N010 FGROUP (X, Y, Z) ; Feed relates to the path axes
N020 UPATH G642
N020 $MA_COMPRESS_POS_TOL [X] = 0.01 ; Path tolerance setting
N030 $MA_COMPRESS_POS_TOL [Y] = 0.01 ; Path tolerance setting
N040 $MA_COMPRESS_POS_TOL [Z] = 0.01 ; Path tolerance setting
N050 $MA_COMPRESS_POS_TOL [A] = 0.08 ; Rotary axis tolerance setting
N060 $MA_COMPRESS_POS_TOL [B] = 0.08 ; Rotary axis tolerance setting
; (The value for the rotary axes should be
; factor 8 - 10 of the path tolerance.)
N070 NEWCONF
N080 COMPCAD ;Compressor on
N090 G1 X.37 Y2.9 F600 ;G1 before end point and feed!
N100 X16.87 Y-4.698 A3=0.1736482 B3=-0.84950947 C3=0.49817663
N110 X16.865 Y-4.72 A3=0.1736482 B3=-0.84950664 C3=0.49818147
N120 X16.91 Y-4.799 A3=0.17364925 B3=-0.84774706 C3=0.5011695
...
N1037 COMPOF ;Compressor off
...
3.13
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.5 Information for programmers
High-speed settings – CYCLE832
If continuous-path mode is called within CYCLE832, the ADIS value in G641 corresponds to the tole-
rance value TOL_. If you are programming without CYCLE832, you should include the ADIS value.
G64
G642 ADIS=… or ADISPOS=…
G643 ADIS=… or ADISPOS=…
3.14
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
High-speed settings – CYCLE832
3.5
Corner rounding "
The look ahead function also means that the
control system is able to round the corners it
detects. The programmed corner points are
therefore not approached exactly. Sharp corners
are rounded.
3
1
3.15
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.5 Information for programmers
High-speed settings – CYCLE832
Feedforward control and jerk limitation can only be called in CYCLE832 as a combination of the two
functions. This is because this combination offers ideal conditions for freeform surface milling. Both
functions can of course also be programmed separately.
Programming
FFWON/
FFWOF
BRISK
SOFT
BRISK:
Acceleration behavior: abrupt acceleration of the
path axes according to the speciÞed machine
data
3.16
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
High-speed settings – CYCLE832
3.5
SOFT:
Acceleration behavior: soft acceleration of path
axes.
Recommendations
FFWON SOFT
The emphasis is on high path accuracy. This is
Feedforward
achieved by a soft speed control which is largely
control Acceleration
free from following errors.
FFWOF SOFT
High path accuracy is not a priority. Additional
FFWON BRISK
rounding is achieved by means of following er-
without high
rors. For use with older part programs/machines.
following errors/ acceleration
tolerance
FFWON BRISK
not recommended
FFWOF SOFT
FFWOF BRISK
with gentle
For use in roughing and when maximum speed
following errors/ acceleration
is required.
tolerance
3.17
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.6 Information for programmers
Feedrate profile – FNORM, FLIN, ...
Programming
F… FNORM
F… FLIN
F… FCUB
F=FPO(endfeed, quadf, ufb)
FNORM Basic setting. The feedrate is applied over the entire path of
the block and is subsequently regarded as the modal value.
_______________________________________________________________________________
FLIN Path velocity proÞle linear:
The feedrate is traversed linearly from the current value at the
beginning of the block to the end of the block and is
subsequently regarded as the modal value.
_______________________________________________________________________________
FCUB Path velocity proÞle cubic:
The non-modally programmed F values, relative to the
end of the block, are connected through a spline. The spline
starts and ends tangentially to the previous or
following feedrate setting. If the F address is missing
from a block, the last programmed F value is
used.
_______________________________________________________________________________
F=FPO... Polynomial path velocity proÞle:
The F address denotes the feedrate proÞle via a
polynomial from the current value to the end of the block. The
Þnal value is
subsequently regarded as the modal value.
_______________________________________________________________________________
endfeed: Feedrate at block end
_______________________________________________________________________________
quadf: Quadratic polynomial coefÞcient
_______________________________________________________________________________
ubf: Cubic polynomial coefÞcient
Function
What is a feedrate proÞle?
To allow a more ßexible programming of the gram continuously smooth velocity characteris-
feedrate proÞle, linear and cubic characteristics tics depending on the curvature of the workpiece
have been added to the feedrate programming in to be machined.
accordance with DIN 66025.
The cubic characteristics can be programmed These speed characteristics make it possible to
either directly or as interpolating splines. These program limiting acceleration changes and the-
additional characteristics make it possible to pro- reby to produce uniform workpiece surfaces.
3.18
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Orientation interpolation – ORI...
3.7
3.7 Orientation interpolation - ORIVECT, ...
Programming
Orientation reference
ORIMKS The reference system for the orientation vector is the machine
coordinate system. If $MC_ORI_IPO_WITH_G_CODE = 0 it is also
identical to ORIAXES
ORIWKS The reference system for the orientation vector is the workpiece
coordinate system. If $MC_ORI_IPO_WITH_G_CODE = 0 it is
also identical to ORIVECT
Orientation interpolation
Axis interpolation
Vector interpolation
3.19
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.7 Information for programmers
Orientation interpolation - ORI...
Also required:
A3=… B3=… C3=... or XH=…, YH=…, ZH=… end orientation
Also required:
A3=… B3=… C3=... or XH=…, YH=…, ZH=… end orientation
PO[XH] = (xe, x2, x3, x4, x5) PO[YH] = (ye, y2, y3, y4, y5)
PO[ZH] = (ze, z2, z3, z4, z5)
If additional BSPLINE or POLY information is not available, simple linear
interpolation is performed accordingly from the start to the end orientation.
3 4
3.20
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
3D tool offsets - CUT3DFS
3.8
3.8 Tool offsets - CUT3DFS, ...
2 ½D circumferential milling
3D circumferential milling
Face milling
3.21
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.9 Information for programmers
Programming at the machine
With the user-friendly functions in Sinumerik 840D the program can be easily programmed at the
control system.
Example
%_N_slide
N10 T1
N20 S1000 M3
N30 M8 M60
N40 ORIWKS TRAORI
N50 ORIVECT
N60 G54 ;Zero point at !.
N70 TRANS X25 Y10 Z70 ;Coordinate system moved to ".
N80 AROT Y+60 ;Coordinate system rotated into inclined plane. From this point
;the static transformation is calculated automatically.
N90 G0 X20 Y15 Z5 ;Approach Þrst drilling position and with A3, B3, C3 tool
A3=0 B3=0 C3=1 ;parallel to Z axis, i.e. tool perpendicular to the plane.
N110 Drilling cycle :From this point you can carry on programming as for
;a 2 ½D situation. The 840D does everything else
;for you.
...
N200 M30 ;End of program
3.22
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Programming at the machine
3.9
Example of orientation interpolation
In the following program we have assumed that the pocket has already been produced with straight
walls, so only the programming of the inclines is described here.
The programming is carried out in G90, the tool starts parallel to the Z axis.
The contour at the base of the pocket is programmed.
Example
2 3
5
4
3.23
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.9 Information for programmers
Programming at the machine
1. If the contour of the pocket is programmed at the pocket base, ISD = 0 mm, where ISD
is the depth of engagement of the tool.
ISD:
402 + 102 = 41, 231
3.24
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Example – bending device for pipes
3.10
3.10 Example - bending device for pipes
1 BENDINGRADIUS.SPF
3 GUIDESLOT.SPF
2 HOLES.SPF
8
5
3.25
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.10 Information for programmers
Example – bending device for pipes
Workpiece
On the lower side of the workpiece is a central threaded hole & for clamping the device in the ben-
ding machine. The threaded hole should also be used in the milling machine for clamping or at least
centering. This allows a reproducible clamping for other parts. All key dimensions relate to this hole
and as a consequence the tool coordinate system & is also positioned in the hole by adjustable zero
offset G54 '.
Machine kinematics
In our example the workpiece is machined with a rotating/swivel head. The machine zero is outside
the table. The axes of the machine( and workpiece coordinate system & are parallel to one another
in this case. G54 therefore comprises only translatory values. Any 5-axis machine with any machine
kinematics can be used for milling.
The prerequisite is of course that the necessary orientations can be achieved. For example, the tool
in point * must be able to adopt a swivel angle of A = –90°.
Between each subroutine call a tool change position ) is approached, which is positioned so that the
tool can approach the machining position along a straight path without colliding with the workpiece.
The safe position is at the very top of the work area at X0 Y0 Z999.
The procedure is the same for all three basic kinematics (see Chapter 1). The same program can be
run on all three machine types.
CNC program
The postprocessor in a CAM system generates the CNC program, which consists of a main program
and subroutines. A CAM system is not necessary for the holes " and guide slot #, however. Both
machining operations can easily be programmed with Sinumerik 840D.
The subroutines correspond to the machining positions !, " and #. The program structure is
therefore very clear for machine operators. The main program contains the workpiece coordinate
system &, to which two temporary axis systems (frames) refer, which use the subroutines “Holes.spf”
and “Guideslot.spf”. These temporary axis systems are deÞned with the commands TRANS and
AROT. TRANS and AROT deÞne the workpiece coordinate system for programming.
Subsequent changes can be made by the machine operator. A few tips are included in our comments
on the subroutines. The standard version of the postprocessor only generates a program with no
main program and subroutine technology.
Note:
The programs shown here are not complete. They are intended only to illustrate the structure of the
programs from a technological perspective.
3.26
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Example – bending device for pipes
3.10
Main program
The main program contains only the technology data. The geometry data are all contained in the
subroutines. The frame deÞnitions for the two subroutines “Holes.spf” and “Guideslot.spf” are also
included in the main program.
Mainprogram.mpf
N10 G17 G54 G90 ; Working plane, absolute dimensions
; Zero offset from machine to workpiece
; coordinate system, in the threaded hole on the
; lower side of the workpiece
; The frame deÞnitions in “Holes.spf” and
; “Guideslot.spf” relate to this
; workpiece zero.
N20 MSG (“CAM program”)
______________________________________________________________________________
; Note:
; The swivel movement in the approach position does
; not occur in the subroutine.
; Feedrates are programmed in the subroutines.
; Note:
; The swivel movement in the working position is
; included here in block N170.
3.27
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.10 Information for CAM programmers
Example – bending device for pipes
______________________________________________________________________________
;Note:
;The swivel movement in the working position is
;included here in block N280.
N200 MSG (“3rd OPERATION: Contour ;Comment by CAM programmer on the type of
milling with frame support”) ;subroutine
N210 G0 A3=0 B3=0 C3=1 ;To avoid collision with the workpiece
;(TRAORI is still enabled)
N220 T3 D3 ; Approach the tool change position
N230 S10500 M3 ;Spindle speed, clockwise
3.28
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for programmers
Example – bending device for pipes
3.10
N340 G0 G53 Z999 D0 ;Move in rapid traverse to the safe position at the
;top of the work area in the machine coordinate
;system at Z999.
;After G53 all subsequent movements relate
;not to G54 but to the
; machine coordinate system.
;Since G54 is modal, the command is used
;if further blocks follow. Otherwise
;the CAM system could also simply output
;the non-modal command SUPA:
;SUPA Z999 D0
;D0 clears the existing tool offset
;N220 T3 D3.
N350 M30 ;End of program
3.29
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.10 Information for CAM programmers
Example – bending device for pipes
BENDINGRADIUS.SPF subroutine
Machining strategy:
The milling paths ! were generated by the CAM program. They run parallel to the Y axis in the work-
piece coordinate system.
Milling with 3+2 axes or with 5-axes simultaneously? Both types of machining are possible here.
5-axis simultaneous milling has the clear advantage, however:
Sequence:
The tool moves in a straight line, without risk of collision, from the tool change position " to the
approach position #. The approach position # and retraction position & are at safe positions outside
the workpiece. From there the tool moves down vertically to the start position (.
Machine operators:
2
6
3.30
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – bending device for pipes
3.10
In contrast to the “Holes.spf” and “Guideslot.spf” subroutines, all positions refer to the workpiece coor-
dinate system ' and not to the coordinate systems deÞned in these subroutines.
If as in this case the workpiece coordinate system and subroutine are clearly identiÞed in the
CNC program, the accuracy of the movements can be roughly checked at the machine before
the start of the program. Compare the clamped workpiece, e.g. with the main milling direction
TIP in the CNC program. By way of example we have highlighted the Y values ( in the program
which correspond to the main milling direction. Compare: the values increase
in the Þrst tool path since they lead from the negative range from -y to +y.
5-axis simultaneous milling makes it almost impossible for the machine operator to modify the subrou-
tine.
The program can only be executed with a tool of the deÞned radius, since the CAM system includes
the tool radius in the calculation of the travel.
BENDINGRADIUS.SPF
N10...180 ;Not relevant, user-speciÞc CNC blocks
N190 G0 A3=0.1736482 B3=-0.84951514 C3=0.49816696
;Swiveling of the tool to the tool change
;position "
N200 G0 X-20.54042 Y-117.80997 Z175 ;Approach position #
N210 G0 Z63.87603 ;Moving down to the start position (
N220 G1 X-21.40866 Y-113.5624 Z61.3852 F8500
;Start of modal G1 blocks and call
;for feed
______________________________________________________________________________
N230 N370 CIP X-21.89062 Y-109.77512 Z63.23548 I1=AC(-21.74533) J1=AC(-111.5367)
K1=AC(61.4569) ;Programming of a quadrant via CIP
;(see SINUMERIK 840D documentation, Circular
;interpolation through intermediate point, CIP)
____________________________________________________________________________
N380 X-21.86959 Y-109.74489 Z63.60494 A3=0.1736482 B3=-0.84951231 C3=0.4981718
;5-axis simultaneous milling with permanent
;change of tool setting with A3, B3, C3
N390 X-21.84803 Y-109.71466 Z63.9744 A3=0.1736482 B3=-0.84950947 C3=0.49817663
N400 X-21.82647 Y-109.68443 Z64.34386 A3=0.1736482 B3=-0.84950664 C3=0.49818147
N410 X-21.79376 Y-109.63744 Z64.82612 A3=0.17364925 B3=-0.84774706 C3=0.5011695
...
N281930 X21.86959 Y-109.74488 Z63.60495 A3=-0.17364815 B3=-0.84951232 C3=0.4981718
N281940 X21.89115 Y-109.77511 Z63.2355 A3=-0.17364815 B3=-0.84951515 C3=0.49816697
_____________________________________________________________________________
N281950 Y-109.94584 Z62.85898 ;Soft retraction from the contour on a quadrant,
;with no change of tool setting, i.e. the
;vector A3, B3, C3 does not change.
3.31
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.10 Information for CAM programmers
Example – bending device for pipes
“HOLES.SPF” subroutine
Machining strategy:
In the main program, using TRANS and AROT in the workpiece coordinate system G54 !, a tem-
porary frame " was placed in the position of the Þrst hole, in which the Z axis corresponds to the
infeed direction of the drill. Using this temporary frame a drilling pattern can very easily be program-
med on the inclined surfaces.
Sequence:
The tool swivels to the tool change position # in the tool orientation for the subsequent machining -
see CNC block N15 in the main program. From there it moves to the start position above the Þrst hole
&, drills, then moves with a clearance of 50 mm from the workpiece surface to the second hole ',
where it executes the drilling cycle again. In this example the drilling cycle “CYCLE81” is used.
Machine operators:
Since both holes are on the X axis in the current tool coordinate system, the hole positions
can be easily corrected or the drilling cycle modiÞed subsequently.
TIP
1
2
5
3.32
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – bending device for pipes
3.10
HOLES.SPF
N1 G0 X0 Y0 Z50 ;In rapid traverse to the Þrst hole with a safety
;clearance Z=50 &
N2 F50 ;DeÞnition of the drilling feed = infeed movement
;The traversing movement from hole to hole takes
place
;in rapid traverse (deÞned by the drilling cycle).
N3 MCALL CYCLE81 (50,0.5,-20) ;DeÞnition of the drilling cycle = no movement yet
;(Safety plane, surface, safety clearance,
;drilling depth). MCALL calls CYCLE81 modally.
N4 X0Y0 ;Drills the Þrst hole at position X0Y0 &
N5 X26 ;Moves to the second hole 50 mm above the
;workpiece ' and drills at X26
N6 MCALL ;Deselects the modal CYCLE801
N7 M17 ;End of program, return to main
;program
3.33
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.10 Information for CAM programmers
Example – bending device for pipes
“GUIDESLOT.SPF” subroutine
Machining strategy:
In the main program a temporary frame " was placed by the workpiece coordinate system G54 !
on the lower edge of the workpiece using TRANS and rotated by 90° about Z and X using AROT,
since the guide slot was measured from here in accordance with the tool drawing (. The Z axis again
corresponds to the infeed direction of the cutter. All traversing movements relate to the temporary
frame. The main milling direction ' runs parallel to the Y axis of the frame ".
Since the contour was programmed with active tool radius compensation (see block N330 G42), the
machine operator can use a milling tool of any diameter.
The maximum possible diameter of the milling tool is calculated from the smallest radius of the con-
tour to be milled (see block N360, lower semicircle radius 10 mm)
Sequence:
The tool swivels to the tool change position # in the tool orientation for the subsequent machining
- see CNC block N280 in the main program. From there it moves to the start position &, which is
outside the open side of the groove, outside the tool.
From the start position the cutter Þrst moves down. Infeed takes place 5 times in the Z direction.
4
1
3.34
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – bending device for pipes
3.10
GUIDESLOT.SPF
N10 ... N290 ;Not relevant, user-speciÞc CNC blocks
N300 G0 X-2 Y126 Z50 ;& Approach start position = safety plane
N310 Z1
______________________________________________________________________________
N320 G1 G64 Z-2 F575 ;) The cutter is moved from top to bottom and
;is now exactly at the start of machining.
;This is point X-2 and Y126 (see N300, X-2,
;Y126 still modally valid).
;Infeed rate = 575 mm/min
N330 G42 Y132 F6333 ;Tool radius compensation right of contour
;Switch to machining feedrate = 6333 mm/min
N340 G2 X10 Y120 I0 J-12 ;Soft approach to contour along quadrant
N350 G1 Y40 ;Description of contour (slot)
N360 G2 X-10 I-10 J0 ; -” -
N370 G1 Y120 ; -” -
N380 G2 X2 Y132 I12 J0 ;Soft retraction from contour along quadrant
N390 G40 ;Deselection of tool radius compensation
N400 G1 Y126
N410 G0 Z-1 ;Retract by 1 mm in the tool axis direction
N420 X-2 ;Positioning at start point (see N300)
______________________________________________________________________________
N430 G1 Z-4 F575 ;Infeed to Z-4 at infeed rate
...
______________________________________________________________________________
...
_____________________________________________________________________________
N860 M17 ;End of program, return to main program
Note:
The programs shown here are not complete. They are intended only to illustrate the structure of the
programs from a technological perspective.
3.35
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.11 Information for CAM programmers
Example – motorcycle headlight
7
1
d b
a, c
5
G54 4
g k l 3
i, j
e, f, h
3.36
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – motorcycle headlight
3.11
Workpiece
In clamp 1 ! the lower side of the housing is milled from a block with 4 subroutines.
In clamp 2 " the top and front side of the housing are each milled with 4 subroutines.
Machine kinematics
The axes in the machine ( and workpiece coordinate system & are not parallel to one another. G54
' consists of a translation and a rotation about the Z axis.
Between each subroutine call a tool change position ) is approached, which is positioned so that the
tool can approach the machining position along a straight path without colliding with the workpiece.
CNC program
The postprocessor in a CAM system generates all subroutines. The main program that calls the
subroutines is created by the machine operator (see next page).
In the second clamp the workpiece coordinate system remains at the same X/Y/Z position but is
rotated so that the tool axis and Z axis are parallel to one another.
This does not apply to subroutines i) onwards, in which infeed takes place along the Y axis.
Program changes at the machine should only be made during the Þrst NC blocks of the subroutine,
before the NC blocks for freeform surface milling begin.
Just a few of the subroutines are set out on the following pages, since the structure of the subroutines
is similar.
Note:
The programs shown here are not complete. They are intended only to illustrate the structure of the
programs from a technological perspective.
3.37
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.11 Information for CAM programmers
Example – motorcycle headlight
Main program
The main program contains only the technology data. The geometry data are contained in the subrou-
tines. The frame deÞnitions for the two subroutines “Holes.spf” and “Guideslot.spf” are also included
in the main program.
Mainprogram.mpf
N10 G17 G54 G90 ; Working plane, absolute dimensions
;Zero offset from machine to workpiece
;coordinate system, zero point down
;Milling of Þrst clamp, workpiece lower
;side
______________________________________________________________________________
N20 T01 D01 ;Tool: Radial cutter, Ø 20, corner radius 1.0
;Approach the tool change position
N30 S4200 M3 M8 ;Spindle speed, clockwise, coolant on
N40 CYCLE832 (0.10.300220) ;High-speed settings “on”, roughing values
N50 EXTCALL”1_CLAMP_1.SPF” ;Call subroutine a, 3-axis program
______________________________________________________________________________
N60 T30 D30 ;Tool: Radial cutter, Ø 12, corner radius 1.5
;Approach the tool change position
N70 S12.400 M3 ;Spindle speed, clockwise
N80 CYCLE832(0.1, 300220) ;Change high-speed settings, roughing values
N90 EXTCALL”1_CLAMP_2.SPF” ;Call subroutine b, 3-axis program
______________________________________________________________________________
...
______________________________________________________________________________
N510 CYCLE832() ;Set default values
N340 G0 G53 Z999 D0 ;Move in rapid traverse to the safe position at the
;top of the work area in the machine coordinate
;system at Z999
;After G53 all subsequent movements relate
;not to G55 but to the
; machine coordinate system.
;Since G55 is modal, the command is used
;if further blocks follow.
;Alternatively, the CAM system could also
;simply output the non-modal command SUPA:
;SUPA Z999 D0
;D0 clears the existing tool offset
;N220 T3 D3.
N350 M30 ;End of program
3.38
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – motorcycle headlight
3.11
Clamp 1
a) Lower side of housing 1x (1_Clamp_1.SPF, 3-axis plane roughing)
Sequence:
In rapid traverse from the tool change position ! to the safety plane ", then along the safety plane
to the start point #. From the start point in rapid traverse towards the workpiece and then plunge into
the material at milling feedrate on a helical path &. Roughing one layer at a time ' without changing
the cutter orientation.
4
Sa 2
fety 5
pla
ne
Z11
5
1_CLAMP_1.SPF
N10 G0 G54 Z115 M08 ;In rapid traverse to the safety plane = Z115"
N40 X110.54685 Y-37.6 ;Along the X/Y safety plane to the start point #
N50 Z106.205 ;Infeed in rapid traverse in the Z direction
N60 G1 Z101.205 F800 ;At milling feedrate in the Z direction
N70 G1 X111.6 Z101.11286 F3650 ;Plunge with helix &
N80 G1 X111.79875 Y-37.58005 Z101.09539
;Helix with X/Y/Z values
N90 G1 ... ;Surface machining
... ;Surface machining
N332070 G1 ... ;Surface machining
N332080 G0 Z115 ;Retraction movement in rapid traverse to safety
;plane = Z115 "
N332090 M17 ;End of program
3.39
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.11 Information for CAM programmers
Example – motorcycle headlight
Clamp 1
c) Lower side of housing 2x (1_Clamp_3.SPF, 3-axis plane Þnishing)
Sequence:
In rapid traverse from the tool change position ! to the safety plane ", then along the safety plane
to the start point #. From the start point in rapid traverse towards the workpiece and then at milling
feedrate onto the surface &. Finishing ' with clockwise travel, back to the safety plane (, plunge
again and counterclockwise milling.
Sa
fety
pla 2
ne
Z11
5 4
5
6
1_CLAMP_3.SPF
N10 G0 G54 Z115 M08 ;In rapid traverse to the safety plane = Z115"
N40 X5.24099 Y17.78397 ;Along the X/Y safety plane to the start point #
N50 Z86.40075 ;Infeed in rapid traverse in the Z direction
N60 G1 Z81.40075 F1850 ;Infeed at milling feedrate in the Z direction &
N70 G1 X5.10055 Y17.28025 F2600 ;Start Þnishing
N80 G1 X5.04972 Y16.75979 ;Finishing with clockwise and counterclockwise traver-
sing
N90 G1 ... ;Surface machining
... ;Surface machining
N1388690 G1 ... ;Surface machining
N1388700 G0 Z115 ;Retraction movement in rapid traverse to safety
;plane = Z115 "
N1388720 M17 ;End of program
3.40
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – motorcycle headlight
3.11
Clamp 2
h) Top of housing 3x (2_Clamp_4.SPF, 5-axis ISO machining)
Sequence:
In rapid traverse from the tool change position ! to the safety plane ", then along the safety plane to
the start point #. During this movement the tool swivels into the orientation for the subsequent machi-
ning. From start point in rapid traverse & below the safety plane. Finishing ' with 5-axis machining.
Sa
fety
pla
ne
Z50 3
2_CLAMP_4.SPF
...
N40 G0 G54 Z50 M08 ;In rapid traverse to the safety plane = Z50 "
N50 X-90.69083 Y-7.39829 A3=-1 B3=0.000618 C3=0.000008
;Along the X/Y safety plane to the start point #
N60 Z-50.11765 A3=-1 B3=0.000618 C3=0.000008
;In rapid traverse in Z direction, without orientation
;change &
N70 G1 X-85.69083 Y-7.40138 A3=-1 B3=0.000618 C3=0.000008 F1000
;Plunge at milling feedrate in X direction
N80 G1 ... ;5-axis surface machining
... ;5-axis surface machining
N162960 G1 ... ;5-axis surface machining
N162970 G0 Z50 A3=1 B3=0.000618 C3=0.000008
;Retraction movement in rapid traverse to safety
;plane = Z50 "
N162980 A3=0 B3=0 C3=1 ;Tool is parallel to Z axis and is therefore
;ready for the next tool change. Block
;must already have been programmed in the main program.
N162990 M17 ;End of program
3.41
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.11 Information for CAM programmers
Example – motorcycle headlight
Clamp 2
k) Reßector internal incline (2_Clamp_7.SPF, 5-axis, equidistant Þnishing)
Sequence:
In rapid traverse from the tool change position ! to the Z coordinate of the start point ", then along
the safety plane to the start point #. During this movement the tool swivels into the orientation for
the subsequent machining. Infeed from start point in rapid traverse & in Y direction. Finishing ' with
5-axis machining.
Operators:
The same tool is used for the next program l) (see main program). A tool change is therefore unne-
cessary and could be deleted from the main program.
Saf
ety
1 pla
ne
Y30
2
5
4
2_CLAMP_7.SPF
N10 ...N30 ;User-speciÞc CNC blocks
N40 G0 G54 Z-64.91412 M08 ;In rapid traverse to Z component of start position "
N50 X2.10222 Y30 A3=-0.000864 B3=0.987688 C3=0.156432
;In rapid traverse to start point # along safety
;plane = Y30
N60 Y8.44899 A3=-0.000864 B3=0.987688 C3=0.156432
;In rapid traverse in Y direction, without orientation
;change &
N70 G1 X2.10654 Y3.51055 Z-65.69628 A3=-0.000864 B3=0.987688 C3=0.156432 F1850
;Plunging at milling feedrate, 5-axis machining '
N80 G1 ... ;5-axis machining
... ;5-axis machining
N687620 G1 ... ;5-axis machining
N687630 G0 Y30 A3=-0.00987 B3=0.987688 C3=0.156123
;Retraction movement in rapid traverse to safety
;plane = Y30 "
N687640 A3=0 B3=0 C3=1 ;Tool is parallel to Z axis and is therefore
;ready for the next tool change.
N687650 M17 ;End of program
3.42
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Information for CAM programmers
Example – motorcycle headlight
3.11
Clamp 2
l) Reßector base (2_Clamp_8.SPF, 5-axis, equidistant Þnishing)
Sequence:
In rapid traverse from the tool change position ! to the Z coordinate of the start point ", then along
the safety plane to the start point #. During this movement the tool swivels into the orientation for
the subsequent machining. Infeed from start point in rapid traverse & in Y direction. Finishing ' with
5-axis machining.
Saf
ety
pla
ne
1 Y30
2 5
2_CLAMP_8.SPF
...
N40 G0 G54 Z-43.3831 M08 ;In rapid traverse to Z component of start position "
N50 X-2.10801 Y30 A3=0 B3=0.965926 C3=0.258819
;In rapid traverse to start point # along safety
;plane = Y30
N60 Y-7.79506 A3=0 B3=0.965926 C3=0.258819
;In rapid traverse in Y direction, without orientation
;change &
N70 G1 Y-12.62469 Z-44.67719 A3=0 B3=0.965926 C3=0.258819 F1850
;Plunging at milling feedrate, 5-axis machining '
N80 G1 ... ;5-axis surface machining
... ;5-axis surface machining
N177680 G1 ... ;5-axis surface machining
N177690 G0 Y30 A3=0 B3=0.965926 C3=0.258819
;Retraction movement in rapid traverse to safety
;plane = Y30
N177700 A3=0 B3=0 C3=1 ;Tool is parallel to Z axis and is therefore
;ready for the next program start.
N177710 M17 ;End of program
3.43
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
3.11 Information for CAM programmers
Example – motorcycle headlight
3.44
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Contents Page
4
4.1 References
Overview of higher-order functions
The higher-order functions of 840D for mold making and aerospace are set out on the following pages. This
gives you an overview of the commands that go beyond the requirements laid down in DIN 66025 and allow
signiÞcant improvements in the areas of aerospace and mold making.
Conventional
G00, G01, G02, G03 Rapid traverse, linear interpolation, circular interpolation,
counterclockwise circular interpolation
Additional parameters:
CR= Circle radius
AP= End point in polar coordinates, polar angle, also in linear interpolation
RP= End point in polar coordinates, polar radius, also in linear interpolation
AR= Aperture angle
Involutes
4.2
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Overview of higher-order functions
4.1
Start and end condition
BNAT/ENAT Zero curvature
BTAN/ETAN Tangential transition
BAUTO/EAUTO Constant C3 at Þrst and last spline segment
transition
Example
N20 BSPLINE X... Y... SD=... PL=... PW=...
Syntax
PO[axis] = (block end position, a2 (quadratic coefÞcient),
a3 (cubic coefÞcient), a4, a5) -> numerator polynomial
PO[ ] = (Nend of block, b2, b3, b4, b5) -> denominator polynomial
Example
N10 POLY PO[X] = (0.25,0.5,0) PO[Y] = (0.433,0,0) PO[] = (1,1,0)
Compressors
COMPON Constant-speed transitions
COMPCURV Constant-acceleration and jerk-free transitions
COMPCAD Surface-optimized compressor (constant acceleration)
4.3
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
4.1 References
Overview of higher-order functions
Look Ahead
G601 – G603 Internal G code group (group 12), i.e., G64n replace G64, G60n, do not
replace G60
4.4
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Overview of higher-order functions
4.1
Speed programming
Path reference
FGROUP(X, Y, Z,…) DeÞnes the path axes with regard to the feedrate, i.e.
overall feedrate refers to the axes deÞned here.
Example: FGROUP(X, Y), then:
Acceleration
Jerk
Feedforward control
Transformation
4.5
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
4.1 References
Overview of higher-order functions
Orientation programming
LEAD, TILT Lead/tilt angle relative to normal vectors and path tangent. The normal vec-
tors at the start and end of the block are deÞned by A4=… B4=… C4=...
and A5=… B5=… C5=...
Only in conjunction with ORIPATH.
Orientation reference
ORIMKS The reference system for the orientation vector is the basic coordinate
system. If $MC_ORI_IPO_WITH_G_CODE = 0, it is also identical to ORI-
AXES.
ORIWKS The reference system for the orientation vector is the workpiece coordinate
system. If $MC_ORI_IPO_WITH_G_CODE = 0, it is also identical to ORI-
VECT.
Orientation interpolation
Axis interpolation
ORIAXES Linear interpolation of the machine axes, or interpolation of the rotary axes
using polynomials (if POLY is enabled)
Vector interpolation
ORIVECT Interpolation of the orientation vector in one plane (great circle interpolati-
on)
ORIPLANE Interpolation in one plane (great circle interpolation), synonymous with
ORIVECT
ORIPATH Tool orientation relative to the path. Here a surface is spanned with the
normal vector and path tangent, which deÞnes the meaning of LEAD and
TILT at the end point. This means that the path reference applies only for
the deÞnition of the end orientation vector. Great circle interpolation is per-
formed from the start to the end orientation. LEAD and TILT do not simply
mean lead and tilt angle. They are deÞned as follows: LEAD describes
the rotation in the plane which is spanned by the normal vector and path
tangent, TILT then deÞnes the rotation around the normal vector. In other
words, they both have the meaning of theta and phi in a spherical coordi-
nate system with the normal vector as the Z axis and the tangent as the X
axis.
4.6
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Overview of higher-order functions
4.1
ORICONCW Interpolation on the peripheral surface of a cone in the clockwise direction
ORICONCCW Interpolation on the peripheral surface of a cone in the counterclockwise
direction
Also required in both cases:
A3=… B3=… C3=... or XH=…, YH=…, ZH=… end orientation rotary axis of
the cone: A6, B6, C6
Aperture angle: NUT=…
ORICONIO Interpolation on the peripheral surface of a cone with speciÞcation of an
intermediate orientation via A7=… B7=… C7=….
Also required:
A3=… B3=… C3=... or XH=…, YH=…, ZH=… end orientation
ORICONTO Interpolation on the peripheral surface of a cone with tangential transition
Also required:
A3=… B3=… C3=... or XH=…, YH=…, ZH=… end orientation
2½ D circumferential milling
CUT2D 2 1/2D COMPENSATION with compensation plane determined with G17 - G19
CUT2DF 2 1/2D COMPENSATION with compensation plane determined by frame
3D circumferential milling
4.7
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
4.1 References
Overview of higher-order functions
Face milling
5. FRAMES
Programmable frames
AROTS X… Y… Incremental rotation, relative to the currently active frame, angles as for
ROTS
RPL=… Rotation in the plane
MIRROR X… Y… Z… Absolute mirroring
AMIRROR X… Y… Z… Incremental mirroring, relative to the currently active frame
SCALE X… Y… Z… Absolute scaling
ASCALE X… Y… Z… Incremental scaling, relative to the currently active frame
Frame operators
4.8
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Overview of higher-order functions
4.1
Special frames
4.9
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
4.2 References
Index
4.2 Index
A I
ADIS 3.14 Inclined plane measurement
B
CYCLE998 2.9
Interruption 2.20
Block search 2.22
J
BRISK 3.17
Jerk limitation 3.16
C
K
CAM 1.19
Compressor 1.20, 3.12 Kinematic-independent programming
Conical surface interpolation Machine-independent programming 1.10
ORICONCW 1.24
Continuous path mode 3.14 L
Coordinate systems 1.17 LEAD 3.8
Corner measurement Linear interpolation
CYCLE961 2.10 Oriaxis 1.23
Corner rounding 1.20
M
Curve interpolation
ORICURVE 1.28 Machine kinematics
CUT3D... 3.21 Machine kinematics 1.9
CUT3DCC 1.15 Measuring functions 2.8
CUT3DF 1.14 Measuring sphere 2.17
CYCLE800 2.9, 2.11
N
CYCLE832 1.21, 2.25, 3.9
CYCLE961 2.10, 2.12 Network connection 2.16
CYCLE971 2.15 Nutated axis 1.9
CYCLE978 2.10, 2.12
CYCLE998 2.9, 2.11 O
E ORIAXES 1.23
ORICONCCW 1.24
Ethernet 2.16 ORICONCW 1.24
EXTCALL 2.16, 2.22 ORICONIO 1.24
ORICONTO 1.24
F
Orientation 1.23, 3.6, 3.19
Feedforward control 3.16 ORIVECT 1.24
Feedrate proÞle 3.18
Frame 2.21 P
Frames 1.17 PCU 20 2.16
G PCU 50 2.16
Pole 1.26
Gauging tools 2.13 Pole 1.26
Great circle interpolation 1.25 Program structure 1.22, 2.18
ORIVECT 1.24 Process chain
H CAD CAM CNC 1.19
4.10
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
References
Index
4.2
R
Radius changes 1.14
REPOS 2.20
Retraction 2.21
S
Serial interface 2.16
ShopMill 2.28
SOFT 3.17
Spigots 2.8
Spline orientation 1.28
Subroutine 1.22
Surface normal 1.14
Surface normal vector 3.6
Swivel cycle
CYCLE800 2.9
T
Testing a program 2.17
Tool probe 2.2
TCP
Tool center point 1.15, 2.13
TILT 3.8
Tool offset 3.21
Tool offset data 2.14
Tool compensations 1.16
Tool radius compensation 1.14
Tool type
Cutter types 2.13
TOROT 2.20
TOROTOF 2.21
TRAORI 1.12
Z
Zero point 2.2
4.11
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
4.2 References
Index
4.12
© Siemens AG 0000-2004 All rights reserved. SINUMERIK 840D Brochure, Tool and Mold Making 04.2004
Siemens AG
Automation and Drives
Motion Control Systems
P.O. Box 3180, D – 91050 Erlangen © Siemens AG 2004
Subject to change without prior notice
Federal Republic of Germany
Order no.: 6FC5095-0AB10-0BP0