Programming Manual NC Programming - Siemens


PrefaceFundamental safetyinstructions1SINUMERIKFundamentals2SINUMERIK MCNC programmingWork preparation3Tables4AppendixAProgramming ManualValid for:Control systemSINUMERIK MCSoftwareCNC software version 1.1206/2019A5E47437142B AA

Legal informationWarning notice systemThis manual contains notices you have to observe in order to ensure your personal safety, as well as to preventdamage to property. The notices referring to your personal safety are highlighted in the manual by a safety alertsymbol, notices referring only to property damage have no safety alert symbol. These notices shown below aregraded according to the degree of danger.DANGERindicates that death or severe personal injury will result if proper precautions are not taken.WARNINGindicates that death or severe personal injury may result if proper precautions are not taken.CAUTIONindicates that minor personal injury can result if proper precautions are not taken.NOTICEindicates that property damage can result if proper precautions are not taken.If more than one degree of danger is present, the warning notice representing the highest degree of danger will beused. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to propertydamage.Qualified PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specifictask in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualifiedpersonnel are those who, based on their training and experience, are capable of identifying risks and avoidingpotential hazards when working with these products/systems.Proper use of Siemens productsNote the following:WARNINGSiemens products may only be used for the applications described in the catalog and in the relevant technicaldocumentation. If products and components from other manufacturers are used, these must be recommended orapproved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation andmaintenance are required to ensure that the products operate safely and without any problems. The permissibleambient conditions must be complied with. The information in the relevant documentation must be observed.TrademarksAll names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publicationmay be trademarks whose use by third parties for their own purposes could violate the rights of the owner.Disclaimer of LiabilityWe 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 thispublication is reviewed regularly and any necessary corrections are included in subsequent editions.Siemens AGDigital IndustriesPostfach 48 4890026 NÜRNBERGGERMANYDocument order number: A5E47437142B AA 06/2019 Subject to changeCopyright Siemens AG 2019.All rights reserved

PrefaceSINUMERIK documentationThe SINUMERIK documentation is organized into the following categories: General documentation/catalogs User documentation Manufacturer/service documentationAdditional informationYou can find information on the following topics at the following address w/108464614): Ordering documentation/overview of documentation Additional links to download documents Using documentation online (find and search in manuals/information)If you have any questions regarding the technical documentation (e.g. suggestions,corrections), please send an e-mail to the following upport/DocumentationAt the following address umentation),you can find information on how to create your own individual documentation based onSiemens' content, and adapt it for your own machine documentation.TrainingAt the following address (, you can find information aboutSITRAIN (Siemens training on products, systems and solutions for automation and drives).FAQsYou can find Frequently Asked Questions in the Service&Support pages under ProductSupport faq).SINUMERIKYou can find information about SINUMERIK at the following address ( programmingProgramming Manual, 06/2019, A5E47437142B AA3

PrefaceTarget groupThis publication is intended for: Programmers Project engineersBenefitsWith the programming manual, the target group can develop, write, test, and debug programsand software user interfaces.Standard scopeThis Programming Manual describes the functionality of the standard scope. Extensions orchanges made by the machine tool manufacturer are documented by the machine toolmanufacturer.Other functions not described in this documentation might be executable in the control. Thisdoes not, however, represent an obligation to supply such functions with a new control or whenservicing.Furthermore, for the sake of clarity, this documentation does not contain all detailed informationabout all product types and cannot cover every conceivable case of installation, operation ormaintenance.Note regarding the General Data Protection RegulationSiemens observes standard data protection principles, in particular the principle of privacy bydesign. That means thatthis product does not process / store any personal data, only technical functional data (e.g. timestamps). If a user links this data with other data (e.g. a shift schedule) or stores personal dataon the same storage medium (e.g. hard drive) and thus establishes a link to a person orpersons, then the user is responsible for ensuring compliance with the relevant data protectionregulations.Technical SupportCountry-specific telephone numbers for technical support are provided in the Internet at thefollowing address 2090) in the "Contact"area.4NC programmingProgramming Manual, 06/2019, A5E47437142B AA

PrefaceInformation about the structure and contents of the documentationThe NC programming is described in two manuals:1. FundamentalsThe Programming Manual "Fundamentals" is intended for use by skilled machine operatorswith the appropriate expertise in drilling, milling and turning operations. Simpleprogramming examples are used to explain the commands and statements, which are alsodefined according to DIN 66025.2. Work preparationThe Programming Manual "Advanced" is intended for use by technicians with in-depth,comprehensive programming knowledge. By virtue of a special programming language, theSINUMERIK control enables the user to program complex workpiece programs (e.g. forfree-form surfaces, channel coordination, .), and makes the programming of complicatedoperations easier for technologists.NC programmingProgramming Manual, 06/2019, A5E47437142B AA5

Preface6NC programmingProgramming Manual, 06/2019, A5E47437142B AA

Table of contentsPreface .312Fundamental safety instructions.231.1General safety instructions.231.2Warranty and liability for application examples .241.3Industrial security . Geometrical Principles .27Workpiece positions .27Reference system of position specifications .27Cartesian coordinates .27Polar coordinates .30Absolute dimensions .31Incremental dimension .33Working planes .34Zero points and reference points .35Coordinate systems .37Machine coordinate system (MCS) .37Basic coordinate system (BCS) .39Basic zero system (BZS).41Settable zero system (SZS) .42Workpiece coordinate system (WCS) .43What is the relationship between the various coordinate systems? 5Fundamental Principles of NC Programming.44Name of an NC program .44Structure and contents of an NC program .45Blocks and block components.45Block rules.48Value assignments.49Comments.49Skipping blocks ating an NC program .52Basic procedure .52Available characters.53Program header .54Program examples .55Example 1: First programming steps .55Example 2: NC program for turning .56Example 3: NC program for milling .582. change .62Tool change with T command .62Tool change with M6 .64Tool change with tool management (option) .65NC programmingProgramming Manual, 06/2019, A5E47437142B AA7

Table of contents2. change with T command with active tool management (option) .65Tool change with M6 with active tool management (option) .67Behavior with faulty T ool offsets.70Programmed contour and tool path.70Tool length compensation .70Tool radius compensation .71Tool compensation memory.72Tool types.

programming examples are used to explain the commands and statements, which are also defined according to DIN 66025. 2. Work preparation The Programming Manual "Advanced" is intended for use by technicians with in-depth, comprehensive programming knowledge. By virtue of a special programming language, the