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.
Status code in the "Remarks" column:
A ....New documentation.
B ....Unrevised edition with new order no.
C ....Revised edition with new status.
If factual changes have been made on the page since the last edition, this is indicated by a
new edition coding in the header on that page.
0
EditionOrder No.Remarks
02.956FC5298-2AB00-0BP0A
08.976FC5298-4AB00-0BP0A
12.956FC5298-3AB00-0BP0C
03.966FC5298-3AB00-0BP1C
08.976FC5298-4AB00-0BP0C
12.976FC5298-4AB00-0BP1C
12.986FC5298-5AB00-0BP0C
08.996FC5298-5AB00-0BP1C
04.006FC5298-5AB00-0BP2C
10.006FC5298-6AB00-0BP0C
09.016FC5298-6AB00-0BP1C
11.026FC5298-6AB00-0BP2C
This manual is included in the documentation available on CD ROM (DOCONCD)
EditionOrder No.Remarks
11.026FC5298-6CA00-0BG3C
Trademarks
SIMATIC
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.
â
, SIMATIC HMIâ, SIMATIC NETâ, SIROTECâ, SINUMERIKâ and SIMODRIVEâ are registered
Further information is available on the Internet under:
http: //www.ad.siemens.de/si numer ik
This publication was produced with WinW ord V8.0
and Designer V4.0.
The reproduction, transmission or use of this document or its contents is not
permitted without express written authority. Offenders will be liable for damages.
All rights, including rights created by patent grant or registration of a utility model
or design, are reserved.
Other functions not described in this documentation might be executable in the
control. This does not, however, represent an obligation to supply such functions
with a new control or when servicing.
We have checked that the contents of this document correspond to the hardware
and software described. Nonetheless, differences might exist and therefore we
cannot guarantee that they are completely identical. The information given in this
publication is reviewed at regular intervals and any corrections that might be
necessary are made in the subsequent printings. We welcome suggestions for
improvement.
Subject to change without prior notice
Siemens Aktiengesellschaft
11.02Contents
0
Contents
Fundamental Geometrical Principles1-21
0
1.1Description of workpiece points ...................................................................................... 1-22
1.1.1Workpiece coordinate systems ................................................................................. 1-22
1.1.2Definition of workpiece positions............................................................................... 1-23
SINUMERIK documentation is organized on three
different levels:
• General Documentation
• User documentation
• Manufacturer/Service Documentation
Target group
This Manual is intended for machine-tool users. It
provides detailed information that the user requires to
program the SINUMERIK 840D/840Di/810D control
system.
Standard scope
This Programming Guide describes the functionality
afforded by standard functions. Differences and
additions implemented by the machine-tool
manufacturer are documented by the machine-tool
manufacturer.
More detailed information about other publications
relating to SINUMERIK 840D/840Di and publications
that apply to all SINUMERIK controls (e.g. Universal
Interface, Measuring Cycles...) can be obtained from
your local Siemens branch office.
Other functions not described in this documentation
might be executable in the control. This does not,
however, represent an obligation to supply such
functions with a new control or when servicing.
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition0-11
Preface11.02
0
Structure of the manual
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
0
Applicability
This Programming Guide applies to the following
controls:
SINUMERIK 840D6
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition0-13
Preface11.02
0
Structure of the manual
0
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
Fundamentals
This Programming Guide Fundamentals is intended for
use by skilled machine operators with the appropriate
expertise in drilling, milling and turning operations.
Simple programming examples are used to explain the
commands and statements which are also defined
according to DIN 66025.
Advanced
The Programming Guide "Advanced" is intended for
use by technicians with in-depth, comprehensive
programming knowledge. By virtue of a special
programming language, the SINUMERIK 840D/810D
control enables the user to program complex workpiece
programs (e.g. for sculptured surfaces, channel
coordination, ...) and greatly facilitates the programming
of complicated operations.
The commands and statements described in this Guide
are not specific to one particular technology.
They can be applied for a variety of technologies, such
as
All cycles and programming options have been
described according to the same internal structure as
far as this is meaningful and practicable. The various
levels of information have been organized such that you
can selectively access the information you need for the
task in hand.
1. A quick overview
If you look up a rarely used command or the
meaning of a parameter, you can see at a glance
how the function is programmed and find helpful
explanations of the commands and parameters.
This information is always displayed at the top of the
page.
Note:
Due to lack of space, it has not been possible to
show all the modes of representation afforded by the
programming language for individual commands and
parameters. For this reason, we have illustrated
those command programming schemes that are
used most frequently in practice in a workshop
situation.
810D
840Di
Drilling cycles and drilling patterns03.96
2
2.1 Drilling cycles
2.1.2 Drilling, centering – CYCLE81
Programming
CYCLE81 (RTP, RFP, SDIS, DP)
RTP
realRetraction plane (absolute)
RFP
realReference plane (absolute)
SDIS
realSafety clearance (enter without sign)
DP
realFinal drilling depth (absolute)
DPR
realFinal drilling depth relative to reference plane (enter without sign)
Function
The tool drills at the programmed spindle speed and
feedrate to the programmed final drilling depth.
Operating sequence
Position reached before the beginning of the
cycle:
The drilling position is the position in the two axes of
the selected plane.
The cycle implements the following motion
sequence:
•
Approach of the reference plane brought forward
by the safety clearance with G0
•
Travel to the final drilling depth at the feedrate
programmed in the calling program (G1)
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition0-15
Preface11.02
0
Structure of the manual
0
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
2. Detailed explanations
You will find detailed answers to the following
questions in the theory section:
Why is the command needed?
What does the command do?
How is it programmed and executed?
What do the parameters do?
What else do I need to know?
03.96Drilling cycles and drilling patterns
2
Explanation of parameters
RFP and RTP
Generally, the reference plane (RFP) and the
retraction plane (RTP) have different values. In the
cycle it is assumed that the retraction plane lies in
front of the reference plane. The distance between
the retraction plane and the final drilling depth is
therefore greater than the distance between the
reference plane and the final drilling depth.
SDIS
The safety clearance (SDIS) refers to the reference
plane. which is brought forward by the safety
clearance. The direction in which the safety
clearance is active is automatically determined by
the cycle.
DP and DPR
The drilling depth can be defined either absolute
(DP) or relative (DPR) to the reference plane.
If it is entered as an absolute value, the value is
traversed directly in the cycle.
Additional notes
If a value is entered both for the DP and the DPR,
the final drilling depth is derived from the DPR. If the
DPR deviates from the absolute depth programmed
via the DP, the message "Depth: Corresponds to
value for relative depth" is output in the dialog line.
2.1 Drilling cycles
Z
2
G1
G0
RTP
RFP+SDIS
RFP
X
DP=RFP-DPR
The theoretical sections are primarily intended as
learning material for the NC entry-level user. You
should work through the manual at least once to get
an idea of the functional scope and capability of your
SINUMERIK control.
You will find an application example for virtually
every command after the theoretical section.
retraction plane are identical, a relative depth must
not be programmed. The error message
61101 "Reference plane incorrectly defined" is
output and the cycle is not executed. This error
message is also output if the retraction plane lies
behind the reference plane, i.e. the distance to the
final drilling depth is smaller.
Programming example
Drilling_centering
You can use this program to make 3 holes using the
drilling cycle CYCLE81, whereby this cycle is called
with different parameter settings. The drilling axis is
always the Z axis.
Specification of the technology values
Traverse to retraction plane
Traverse to first drilling position
Cycle call with absolute final drilling
depth, safety clearance and incomplete
parameter list
Traverse to next drilling position
Cycle call without safety clearance
Specification of the technology values
Traverse to next position
Cycle call with relative final drilling depth
and safety clearance
End of program
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition0-17
Cross-references to other documentation or
sections
Notes and warnings
Machine manufacturer (MH n)
Ordering data option
n= number of the note per section to which
the machine manufacturer can refer.
Preface11.02
0
Structure of the manual
0
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
Principle
Your SIEMENS 840D/840Di/810D has been
designed and constructed according to state-of-
the-art technology and approved safety
regulations and standards.
Additional equipment
The applications of SIEMENS controls can be
expanded for specific purposes through the addition of
special add-on devices, equipment and expansions
supplied by SIEMENS.
Personnel
Only appropriately trained, authorized and reliable
personnel may be allowed to operate this equipment.
The control must never be operated, even temporarily,
by anyone who is not appropriately skilled or trained.
The relevant responsibilities of personnel who set up,
operate and maintain the equipment must be clearly
defined; the proper fulfillment of these responsibilities
must be monitored.
Behavior
Before the control is started up, it must be ensured that
the Operator's Guides have been read and understood
by the personnel responsible. The operating company is
also responsible for constantly monitoring the overall
technical state of the control (visible faults and damage,
altered service performance).
Servicing
Repairs must be carried out according to the
information supplied in the service and maintenance
guide by personnel who are specially trained and
qualified in the relevant technical subject. All relevant
safety regulations must be followed.
Any application which does not comply with the rules
for proper usage described above.
If the control is not in technically perfect condition or
is operated without due regard for safety regulations
and accident prevention instructions given in the
Instruction Manual.
If faults that might affect the safety of the equipment are
not rectified before the control is started up.
Any modification, bypassing or disabling of items of
equipment on the control that are required to ensure
fault-free operation, unlimited use and active and
passive safety.
Improper usage gives rise to unforeseen dangers to:
• Life and limb of personnel,
• The control, machine or other assets of the owner
and the user.
The following special symbols and keywords have been
used in this documentation:
Notes
This symbol appears in this documentation whenever it
is necessary to draw your attention to an important item
of information.
In this documentation, you will find this symbol with a
reference to an ordering option. The function described
is executable only if the control contains the designated
option.
Warnings
The following warnings with varying degrees of severity
appear in this document.
Danger
Indicates an imminently hazardous situation which, if
not avoided, will result in death or serious injury or in
substantial property damage
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition0-19
Preface11.02
0
Structure of the manual
0
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
Warning
Indicates a potentially hazardous situation which, if not
avoided, could result in death or serious injury or in
substantial property damage.
Caution
Used with the safety alert symbol indicates a potentially
hazardous situation which, if not avoided, may result in
minor or moderate injury or in property damage.
Caution
Used without safety alert symbol indicates a potentially
hazardous situation which, if not avoided, may result in
property damage.
Notice
Used without the safety alert symbol indicates a
potential situation which, if not avoided, may result in an
undesirable result or state.
1.4.11Link axes (SW 5 and higher) ................................................................................... 1-43
1.4.12Leading link axes (SW 6 and higher)....................................................................... 1-45
1.5Coordinate systems and workpiece machining............................................................... 1-48
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition1-21
Fundamental Geometrical Principles11.02
1
1.1Description of workpiece points
1
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
1.1Description of workpiece points
1.1.1 Workpiece coordinate systems
In order for the machine or control to operate with the
specified positions, these data must be made in a
reference system that corresponds to the direction of
motion of the axis slides. A coordinate system with
the axes X, Y and Z is used for this purpose.
DIN 66217 stipulates that machine tools must use
right-handed, rectangular (cartesian) coordinate
systems.
The workpiece zero (W) is the origin of the workpiece
coordinate system. Sometimes it is advisable or even
necessary to work with negative positional data.
Positions to the left of the origin are prefixed by a
negative sign (–).
To specify a position, imagine that a ruler is placed
along the coordinate axes. You can now describe
every point in the coordinate system by specifying the
direction (X, Y and Z) and three numerical values.
The workpiece zero always has the coordinates X0,
Y0 and Z0.
Example:
For the sake of simplicity, we will only use one plane
of the coordinate system in this example, i.e. the X/Y
plane. Points P1 to P4 then have the following
coordinates:
The infeed depth must also be described in millingoperations. To do this, we need to specify a
numerical value for the third coordinate (Z in this
case).
Example:
Points P1 to P3 are defined by the following
coordinates:
The coordinates used up to this point to specify points
in the coordinate system are called "Cartesian
coordinates".
However, there is another way to specify coordinates,
namely as "polar coordinates".
It is useful to use polar coordinates in cases where a
workpiece or part of a workpiece is dimensioned by
radius and angle. The origin of the dimensional
measurements is referred to as the "pole".
Example:
The points P1 and P2 can then be described – with
reference to the pole – as follows:
P1 corresponds to radius =100 plus angle =30°
P2 corresponds to radius =60 plus angle =75°
810D
840Di
Y
P2
P1
0
6
75°
Pole
30
15
0
0
1
30°
X
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition1-25
Fundamental Geometrical Principles11.02
1
1.1Description of workpiece points
1
840D
NCU 571
840D
NCU 572
NCU 573
1.1.4 Absolute dimension
With absolute dimensions, all the positional
parameters refer to the currently valid zero point.
Applied to tool movement this means:
The absolute dimensions describe the
position to which the tool is to travel.
Example for milling:
The positional parameters for points P1 to P3 in
absolute dimensions referring to the zero point are
the following:
P1 corresponds toX20 Y35
P2 corresponds toX50 Y60
P3 corresponds toX70 Y20
810D
840Di
Y
P2
P1
60
P3
35
20
X
20
50
70
Example for turning:
The positional parameters for points P1 to P4 in
absolute dimensions referring to the zero point are
the following:
P1 corresponds toX25 Z-7.5
P2 corresponds toX40 Z-15
P3 corresponds toX40 Z-25
P4 corresponds toX60 Z-35
Production drawings are frequently encountered,
however, where the dimensions refer not to the origin,
but to another point on the workpiece.
In order to avoid having to convert such dimensions, it
is possible to specify them in incremental dimensions.
Incremental dimensions refer to the positional data for
the previous point. Applied to tool movement this
means:
The incremental dimensions describe the distance the
tool is to travel.
Example for milling:
The positional data for points P1 to P3 in incremental
dimensions are:
P1 corresponds to X20 Y35;(with reference to the
P2 corresponds to X30 Y20 ;(with reference to P1)
P3 corresponds to X20 Y-35 ;(with reference to P2)
810D
840Di
zero point)
1520
20
Y
P2
P1
P3
X
20
30
20
Example for turning:
The positional data for points P1 to P4 in incremental
dimensions are:
G90 P1 corresponds to X25 Z-7.5
;(with reference to the
zero point)
G91 P2 corresponds to X15 Z-7.5
;(with reference to P1)
G91 P3 corresponds to Z-10;(with reference to P2)
G91 P4 corresponds to X20 Z-10;(with reference to P3)
When DIAMOF or DIAM90 is active, the path setpoint
is programmed as a radius dimension with G91.
P4
10
P3
10
P2
7.5
X
P1
Ø 60
Ø 40
Ø 25
Z
7.5
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition1-27
Fundamental Geometrical Principles11.02
1
1.1Description of workpiece points
1
840D
NCU 571
1.1.6 Plane designations
A plane is defined by means of two coordinate axes.
The third coordinate axis is perpendicular to this plane
and determines the infeed direction of the tool (e.g.
for 2½D machining).
When programming, it is necessary to specify the
working plane in order that the control can calculate
the tool offset values correctly. The plane is also
relevant to certain types of circular programming and
polar coordinates.
840D
NCU 572
NCU 573
810D
840Di
Milling:
G
Z
Y
1
8
G
1
9
G
1
7
X
Turning:
The working planes are specified as follows in the
NC program with G17, G18 and G19:
The various origins and reference positions are
defined on the NC machine. They are reference
points
• for the machine to approach and
• refer to programming the workpiece dimensions.
They are:
M= Machine zeroA = Blocking point. Can coincide with the
workpiece zero (turning machines only)
W= Workpiece zero = Program zeroB= Start point. Can be defined for each program.Start point of the first tool for machining.
R= Reference point. Position determined by cam and measuring system. The distance to
the machine zero M must be known, so
that the axis position can be set to exactly
this value at this position.
The diagrams show the zero points and reference
points for turning machines and drilling/milling
machines.
810D
840Di
Y
W1W2
M
X
R
B
M
X
A
W
Z
1.3Position of coordinate systems
1.3.1 Overview of various coordinate systems
We distinguish between the following coordinate
systems:
• The machine coordinate system with the machine
zero M
• The basic coordinate system (this can also be the
workpiece coordinate system W)
• The workpiece coordinate system with the
workpiece zero W
• The current workpiece coordinate system with the
current offset workpiece zero Wa
In cases where various different machine coordinate
systems are in use (e.g. 5-axis transformation), an
internal transformation function mirrors the machine
kinematics on the coordinate system currently
selected for programming.
Siemens AG, 2002. All rights reserved
SINUMERIK 840D/840Di/810D Programming Guide Fundamentals (PG) – 11.02 Edition1-29
Fundamental Geometrical Principles11.02
1
1.3Position of coordinate systems
1
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
The individual axis identifiers are explained in the