pplicable to
the following controls:
SINUMERIK 840D powerline
SINUMERIK 840DE powerline (export version)
SINUMERIK 840Di
SINUMERIK 840DiE (export version)
SINUMERIK 810D powerline
SINUMERIK 810DE powerline (export version)
software version
NC 7
Feedrate Control and
Spindle Motion
Tool offsets
Special functions
Arithmetic Parameters and
Program Jumps
Subprograms and Repetition
of Program Sections
Tables
List of abbreviations
7
8
9
10
11
12
A
10.2004 Edition
6FC5 298-7AB00-0BP1
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring to property damage only have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended
by Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and
assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Copyright Siemens AG . All rights reserved.
The distribution and duplication of this document or the utilization and transmission of its
contents are not permitted without express written permission. Offenders will be liable for
damages. All rights, including rights created by patent grant or registration of a utility
model or design, are reserved.
Siemens AG
Automation and Drives
Postfach 4848, 90327 Nuremberg, Germany
Siemens Aktiengesellschaft 6FC5 298-7AB00-0BP1
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the
hardware and software described. Since variance cannot be precluded entirely, we cannot
guarantee full consistency. However, the information in this publication is reviewed
regularly and any necessary corrections are included in subsequent editions.
Siemens AG 2005
Technical data subject to change
Preface
Structure of the documentation
The SINUMERIK documentation is organized in 3 parts:
• General documentation
• User documentation
• Manufacturer/service documentation
Audience
This document is designed for machine tool users. The document describes in detail all the
technical facts an operator needs to understand how to program the SINUMERIK
840D/810D control systems.
Standard scope
This Programming Guide describes the functionality afforded by standard functions.
Extensions or changes made by the machine tool manufacturer are documented by the
machine tool manufacturer.
Please contact your local Siemens office for more detailed information about other
SINUMERIK 840D/810D publications and publications that apply to all SINUMERIK controls
(e.g., universal interface, measuring cycles, etc.).
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.
Validity
This Programming Guide applies to the following controls:
SINUMERIK 840D powerline 7
SINUMERIK 840DE powerline (export version) 7
SINUMERIK 840Di 3
SINUMERIK 840DiE (export version) 3
SINUMERIK 810D powerline 7
SINUMERIK 810DE powerline (export version)
with operator panels OP 010, OP 010C, OP 010S, OP 12,
The following functions are not available in the export version:
Function 810DE 840DE
Five axis machining package − −
Handling transformation package (five axes) − −
Multi-axis interpolation (> four axes) − −
Helical interpolation 2D+6 − −
Synchronized actions, stage 2 − O1)
Measurements, stage 2 − O1)
Adaptive control − O1)
Continuous dressing − O1)
Utilization of compile cycles (OEM) − −
Sag compensation, multi-dimensional − O1)
− function not available
1) limited functionality
Hotline and Internet address
If you have any questions, please get in touch with our hotline:
Description
A&D Technical Support
Phone: +49 (0)180 50 50 222
Fax: +49 (0)180 50 50 223
Please send any queries about the documentation (suggestions or corrections) to the
following fax number or email address:
Fax: +49 (0)9131 98 21 76
E-mail: motioncontrol.docu@erlf.siemens.de
Fax form: See the reply form at the end of the document.
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.
Job planning
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, etc.) and greatly facilitates the
programming of complicated operations.
1.4.11 Link axes .................................................................................................................................. 1-27
1.4.12 Lead link axes .......................................................................................................................... 1-28
1.5 Coordinate systems and workpiece machining ....................................................................... 1-30
2 Fundamental Principles of NC Programming.......................................................................................... 2-1
2.1 Structure and contents of an NC program ................................................................................. 2-1
2.2 Language elements of the programming language ................................................................... 2-2
2.3 Programming a sample workpiece........................................................................................... 2-21
2.4 First programming example for milling application .................................................................. 2-22
2.5 Second programming example for milling application ............................................................. 2-23
2.6 Programming example for turning application ......................................................................... 2-26
8.17.4 Tool length and plane change.................................................................................................. 8-78
8.18 Tools with a relevant cutting edge length ................................................................................ 8-79
9 Special functions..................................................................................................................................... 9-1
9.1 Auxiliary function outputs ........................................................................................................... 9-1
9.1.1 M functions................................................................................................................................. 9-5
9.1.2 H functions ................................................................................................................................. 9-7
10 Arithmetic Parameters and Program Jumps ......................................................................................... 10-1
A List of abbreviations................................................................................................................................A-1
In order for the machine or control to operate with the specified positions, these data must be
entered 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 (–).
1.1.2 Definition of workpiece positions
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.
;
=
The infeed depth must also be described in milling operations.
One plane is sufficient to describe the contour on a lathe.
Workpiece positions in the working area
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 method used to date to specify points in the coordinate system is known as the
"Cartesian coordinate" method.
However, there is another way to specify coordinates, i.e., as so-called "polar coordinates".
The polar coordinate method is useful only if a workpiece or part of a workpiece has radius
and angle measurements. The point, on which the measurements are based, is called the
"pole".
Example of polar data
The points P1 and P2 can then be described, with reference to the pole, as follows:
<
3
3
¡
¡
3ROH
P1 corresponds to radius =100 plus angle =30°
P2 corresponds to radius =60 plus angle =75°
1.1.4 Absolute dimensions
With absolute dimensions, all the positional data refer to the currently valid zero point.
Applied to tool movement this means:
the position, to which the tool is to travel.
Example of milling
The positional parameters for points P1 to P3 in absolute dimensions referring to the zero
point are the following:
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 of milling
The positional data for points P1 to P3 in incremental dimensions are:
<
3
3
P1 corresponds to X20 Y35 ;(with reference to the zero point)
P2 corresponds to X30 Y20 ;(with reference to P1)
P3 corresponds to X20 Y-35 ;(with reference to P2)
Example of turning
The positions for points P1 to P4 in incremental dimensions are as follows:
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)
Note
When DIAMOF or DIAM90 is active, the path setpoint is programmed as a radius dimension
with G91.
1.1.6 Plane designations
When programming, it is necessary to specify the working plane so that the control system
can calculate the tool offset values correctly. The plane is also relevant to certain types of
circular programming and polar coordinates.
A plane is defined by means of two coordinate axes.
R Reference point. Position determined by cams and measuring system.
Start point. Can be defined for each program.
Start point of the first tool for machining.
The distance to the machine zero M must be known, so that the axis
position can be set at this place exactly on this value
1.3 Position 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 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.
Note
The individual axis identifiers are explained in the subsection headed "Axis types".
Where the machine coordinate system is used for programming (this is possible with some
of the G functions), the physical axes of the machine are addressed directly. No allowance
is made for workpiece clamping.
The orientation of the coordinate system relative to the machine depends on the machine
type. The axis directions follow the so-called "three-finger rule" of the right hand (in
accordance with DIN 66217).
Seen from in front of the machine, the middle finger of the right hand points in the opposite
direction to the infeed of the main spindle. Therefore:
Determination from the right hand rule for different machine types
With different machine types the determination from the right hand rule can look different in
each case. The following are examples of machine coordinate systems for various
machines.
The basic coordinate system is a Cartesian coordinate system, which is mirrored by
kinematic transformation (for example, 5-axis transformation or by using Transmit with
peripheral surfaces) onto the machine coordinate system.
If there is no kinematic transformation, the basic coordinate system differs from the machine
coordinate system only in terms of the axis designations.
The activation of a transformation can produce deviations in the parallel orientation of the
axes. The coordinate system does not have to be at a right angle.