Siemens SINUMERIK 828D Commissioning Manual

Siemens SINUMERIK 828D Commissioning Manual

Turning and milling, valid for cnc software version 4.5
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Turning and Milling

SINUMERIK
SINUMERIK 828D
Turning and Milling
Commissioning Manual
Valid for:
CNC software Version 4.5
02/2012
6FC5397-3DP40-3BA0

___________________
Preface
Scope of delivery and
___________________
requirements
Introduction and use of data
___________________
classes
___________________
Operating software settings
___________________
Commissioning the I/O
___________________
Commissioning the drive
Parameterizing machine
___________________
data
___________________
Service Planner
___________________
Easy Extend
___________________
Tool management
___________________
Easy Archive
___________________
Appendix
1
2
3
4
5
6
7
8
9
10
A

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SINUMERIK 828D

  • Page 1 Turning and Milling Preface Scope of delivery and ___________________ requirements Introduction and use of data ___________________ classes SINUMERIK ___________________ Operating software settings SINUMERIK 828D ___________________ Turning and Milling Commissioning the I/O ___________________ Commissioning the drive Commissioning Manual Parameterizing machine ___________________ data ___________________...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Preface

    Siemens content: MDM (www.siemens.com/mdm) Training For information about the range of training courses, refer under: ● SITRAIN (www.siemens.com/sitrain) - training courses from Siemens for automation products, systems and solutions ● SinuTrain (www.siemens.com/sinutrain) - training software for SINUMERIK FAQs You can find Frequently Asked Questions in the Service&Support pages under Product...
  • Page 4 EC Declaration of Conformity The EC declaration of conformity for the EMC directive can be found in the Internet (www.siemens.com/automation/service&support). There, as search term, enter the number 15257461 or contact your local Siemens office. Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 5: Table Of Contents

    Table of contents Preface ..............................3 Scope of delivery and requirements ......................11 System overview ..........................11 Toolbox CD and other available tools..................13 This is the general sequence for commissioning.................15 Starting up the control........................16 Communication with the control....................19 1.5.1 How to communicate with the control using the Programming Tool..........19 1.5.2 Example: How to communicate with the control using the NCU Connection Wizard....22 1.5.3...
  • Page 6 Table of contents 3.7.4 Example: This is how you generate an OEM-specific online help book ........70 3.7.5 Example: How to create an online help for user PLC alarms ............. 73 3.7.6 Example: This is how you generate an online help for NC/PLC variables ......... 76 3.7.7 Example: This is how you generate a programming online help ..........
  • Page 7 Table of contents This is how you import and export maintenance tasks ..............181 Acknowledging maintenance tasks....................184 Easy Extend ............................185 Function of Easy Extend ......................185 Configuration in the PLC user program ..................187 Option bits for machine manufacturers and dealers ..............189 Display on the user interface .....................192 Generating language-dependent text ..................193 Examples ...........................195...
  • Page 8 Table of contents String functions ......................... 236 8.8.1 string.cmp..........................237 8.8.2 string.icmp ..........................237 8.8.3 string.left............................ 238 8.8.4 string.right..........................239 8.8.5 string.middle..........................240 8.8.6 string.length..........................240 8.8.7 string.replace..........................241 8.8.8 string.remove ..........................242 8.8.9 string.delete..........................242 8.8.10 string.insert..........................243 8.8.11 string.find...........................
  • Page 9 Table of contents Application example for milling machine..................313 9.8.1 Example: Milling machine with chain magazine and dual gripper (MAGKONF_EXAMPLE_MPF) ....................313 9.8.2 Flow chart: Tool change......................319 9.8.3 Example: Acknowledgment steps (milling machine)..............329 9.8.4 Example: Tool change cycle for milling machine...............331 Easy Archive............................333 10.1 Saving data in archives......................334 10.2...
  • Page 10 Table of contents Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 11: Scope Of Delivery And Requirements

    Scope of delivery and requirements System overview Configuration with SINAMICS S120 Booksize The following configuration shows a typical example with SINAMICS S120 booksize: Figure 1-1 Configuration example 1: Basic configuration with 4 axes Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 12 380 ... 480 V AC Spindle motor Feed motor 1FK7 Feed motor 1FK7 Feed motor 1FK7 Feed motor 1FK7 1PH8 auxiliary spindle 1PH8 Figure 1-2 Configuration example 2: SINUMERIK 828D BASIC T/M with S120 Combi Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 13: Toolbox Cd And Other Available Tools

    1.2 Toolbox CD and other available tools Toolbox CD and other available tools Toolbox CD The Toolbox CD for SINUMERIK 828D has the following content: ● PLC Programming Tool for Integrated PLC ● Commissioning software for SINAMICS S120 ● PLC Library (example)
  • Page 14 1.2 Toolbox CD and other available tools STARTER drive/commissioning software Drive commissioning for the SINUMERIK 828D can be performed using the STARTER drive/commissioning software. Simple commissioning procedures which are usually performed by field service staff (such as activating direct measuring systems) can be executed directly via the SINUMERIK 828D user interface.
  • Page 15: This Is The General Sequence For Commissioning

    The control has finished booting when the main screen of the operating software is displayed. Sequence overview Commissioning of the SINUMERIK 828D is carried out in the following steps: 1. Install the software from Toolbox CD onto PG/PC See Section "Scope of delivery and requirements"...
  • Page 16: Starting Up The Control

    Scope of delivery and requirements 1.4 Starting up the control Starting up the control Control startup Procedure: 1. Switch the control on. The following display then appears during startup: 2. Press the <SELECT> key within three seconds. 3. Then press the following keys in succession: Menu reset key, HSK2 (horizontal SK2), VSK2 (vertical SK2) 4.
  • Page 17 Replacement of the system CompactFlash card between different PPUs Because of the system-related dependency between the CompactFlash card and SRAM for the data storage in the SINUMERIK 828D, the system CompactFlash card should be considered as a permanently installed EEPROM and should not be replaced! If this has to be performed for imperative reasons, the replacement of the system CompactFlash card is detected during startup because of the stored serial number.
  • Page 18 Scope of delivery and requirements 1.4 Starting up the control Checking the hardware For the PPU 24x.2 hardware a distinction is made between the turning version BASIC T and the milling version BASIC M : This distinction is made when booting using the MLFB found in the hardware information block, which is then compared with the existing NCK scaling.
  • Page 19: Communication With The Control

    Scope of delivery and requirements 1.5 Communication with the control Communication with the control Creating the connection An Ethernet cable is needed to connect the control and PG/PC. The following Ethernet interfaces are available on the control: ● Connection via X127 (behind the flap on the front): Cable type: Crossed Ethernet cable At interface X127, the control is preset as a DHCP server, delivering the IP address192.168.215.1 for a direct connection (peer-to-peer connection).
  • Page 20 Scope of delivery and requirements 1.5 Communication with the control 5. In the dialog "PG/PC interface" select the TCP/IP protocol of the PG/PC. Normally this is the network card of the PC. Figure 1-3 TCP/IP communications settings 6. Confirm with "OK". Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 21 Scope of delivery and requirements 1.5 Communication with the control 7. Connect by double-clicking the "Double-click to update" icon. If the connection is made successfully, the icon will be displayed with a green border: Figure 1-4 Online connection Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 22: Example: How To Communicate With The Control Using The Ncu Connection Wizard

    Scope of delivery and requirements 1.5 Communication with the control 8. If the connection is unsuccessful, the following setting may have to be deactivated: Select "Control Panel" → "Network Connections"→ "Local Area Connection" "Properties"→ "Advanced"→ "Windows Firewall" → "Settings"→ "Advanced": Deactivate the option "Local Area Connection".
  • Page 23 1. Start the "NCU Connection Wizard" via this link or via the "Start" menu. 2. In the "Select Control Model" dialog, select "840D solution line" for the NCU type connection to the SINUMERIK 828D. Figure 1-6 Select the NCU type...
  • Page 24 Scope of delivery and requirements 1.5 Communication with the control 3. In the "Select Port" dialog, select the connection to the control that you have connected via Ethernet. Figure 1-7 Select connection 4. Confirm the cable connection for both devices in the"Cabling Help" dialog. Figure 1-8 Cabling Turning and Milling...
  • Page 25: How To Communicate With The Control Via Access Mymachine

    Scope of delivery and requirements 1.5 Communication with the control 5. Check the IP address and enter the name for these settings in the "Settings" dialog. Figure 1-9 Network settings 1.5.3 How to communicate with the control via Access MyMachine Connection options The following options are available for "Access MyMachine"...
  • Page 26 Scope of delivery and requirements 1.5 Communication with the control NOTICE Generally only one connection is permitted, i.e. several simultaneous connections to different controls are not supported: Data exchange between two controls by means of "Access MyMachine" is therefore not possible. Direct connection To create a direct connection: 1.
  • Page 27 Scope of delivery and requirements 1.5 Communication with the control Network connection To create a network connection: 1. In the menu, select "Settings" → "Connection" → "Direct connection" or click the "Connect" button. Figure 1-12 Dialog: Network connection 2. In the menu, select "Connection" → "Connect" → "Network connection" or select – if available –...
  • Page 28: Communicating With The Control Via X130

    Scope of delivery and requirements 1.5 Communication with the control 1.5.4 Communicating with the control via X130 Connection to the company network The NCU is connected to the company network via the Ethernet interface X130. The company network is used, for example, to access the network drives. In the "Diagnostics"...
  • Page 29 Scope of delivery and requirements 1.5 Communication with the control Connection properties Company network X130 white Network cable inserted Network cable not inserted Availability The availability describes the percentage of faulty data compared to the entire data volume. Problems in the company network (e.g. logical drives that cannot be reached, double IP address, etc.) as well as settling time during power up can result in fluctuations in availability: green Greater than 95%...
  • Page 30 Scope of delivery and requirements 1.5 Communication with the control Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 31: Introduction And Use Of Data Classes

    Introduction and use of data classes Objective The principle of data classes creates a clear demarcation between system data, (data that is created when installing the software), OEM data (data that is created when commissioning a prototype machine) and user data (data that is created by the user). OEM data is further classified into data that is valid for a series of machines (standard data for all machines of a series) and individual data, which only applies to a specific machine.
  • Page 32: Data Classes In The Nck

    S (System) System (S) data class This data class covers data in the Siemens and System directories on the CompactFlash Card. For the rest of this document it will be referred to as "S". Characteristics / properties of data class S The data is automatically loaded the first time the system is switched on or during initialization and activated as far as is necessary.
  • Page 33 Introduction and use of data classes 2.1 Data classes in the NCK Individual (I) data class This data class covers data concerning a particular machine and is also created during commissioning by the OEM, or later by the dealer. This data class will be referred to as "I" in the rest of this document.
  • Page 34 Introduction and use of data classes 2.1 Data classes in the NCK GUD and macros The following table shows how the definition files (GUD, macros) are assigned to a data class: Definition file Data class GUD4 Individual (I) MGUD Manufacturer (M) MMAC Manufacturer (M) UGUD...
  • Page 35: Data Classes In The Plc

    Introduction and use of data classes 2.2 Data classes in the PLC Data classes in the PLC Data classes in the PLC Assigning program blocks in data classes is used to efficiently upgrade or commission a SINUMERIK control. Here, a distinction is made between three data classes: ●...
  • Page 36: Data Classes In The Operating Software

    USER The directories "System" and "Siemens" have no significance for archiving, since they are set up with the installation of the SINUMERIK software and are not changed by installation, configuration or in later use. An update or upgrade of the system will typically be carried out in these directories.
  • Page 37 Introduction and use of data classes 2.3 Data classes in the operating software The section of the directory structure relevant for the configuration is shown below: siemens directory /siemens/sinumerik /hmi /appl Applications (operating areas) /base Basic system components /cfg All configuration files...
  • Page 38 Introduction and use of data classes 2.3 Data classes in the operating software addon directory /addon/sinumerik /hmi /appl Applications (operating areas) /cfg Configuration files /data Version data /hlp Online help files, zipped and version files /ico Icon files /ico640 Icons with a resolution 640x480 /ico800 Icons with a resolution 800x600 /ico1024...
  • Page 39 Introduction and use of data classes 2.3 Data classes in the operating software user directory /user/sinumerik /data Version data /archive User-specific archives /prog User-specific programs /hmi /cfg Configuration files /data Version data /hlp Online help files /ico Icon files /ico640 Icons with a resolution 640x480 /ico800 Icons with a resolution 800x600...
  • Page 40 Introduction and use of data classes 2.3 Data classes in the operating software Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 41: Operating Software Settings

    Operating software settings Access levels Access to functions and machine data The access concept controls access to functions and data areas. Access levels 0 to 7 are available, where 0 represents the highest level and 7 the lowest level. Access levels 0 to 3 are locked using a password and 4 to 7 using the appropriate key-operated switch settings.
  • Page 42 The key-operated switch setting must always be edited from the PLC user program and applied to the interface accordingly. See also The password can also be deleted via the PLC (PI services: PI LOGOUT). Function Manual Basic Functions, Section "PLC for SINUMERIK 828D" (P4) Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 43: How To Set And Change The Password

    Operating software settings 3.2 How to set and change the password How to set and change the password Set password To change the access level, select the "Start-up" operating area: 1. Press the "Password" softkey. 2. Press the "Set password" softkey to open the following dialog: Figure 3-1 Set password 3.
  • Page 44: How To Set The Date And Time

    Operating software settings 3.3 How to set the date and time How to set the date and time Precondition Changes can only be made with the appropriate access authorization (as of "User" and higher). Setting the date and time Procedure: 1.
  • Page 45: Setting The Operating Software Languages

    ● Chinese (simplified) ● Spanish ● Chinese (traditional) All system languages are installed in the SINUMERIK 828D as delivered, so that a change of language can be carried out directly via the user interface, without having to download system language data.
  • Page 46 Operating software settings 3.4 Setting the operating software languages Editor with active learning function For Chinese simplified and Chinese traditional, the system offers the option of working with dictionaries: ● Using a dictionary at the control ● Importing a dictionary into the control The editor opens a learning function if a phonetic spelling is entered, for which there is no match in the control system.
  • Page 47: This Is How You Enter The Chinese Character

    Operating software settings 3.4 Setting the operating software languages Pinyin phonetic spelling <TAB> Chinese character1<TAB> Chinese character2 <TAB> … <LF> <TAB> - tab key <LF> - line break Store the created dictionary in one of the following paths: ../user/sinumerik/hmi/ime/ ../oem/sinumerik/hmi/ime/ When the Chinese editor is called the next time, this enters the content of the dictionary into the system dictionary.
  • Page 48: This Is How You Enter Korean Characters

    Operating software settings 3.4 Setting the operating software languages If you switch over the option button to enter a Latin letters using the <SELECT> key, then the entries are directly transferred into the text box that had the focus before the Chinese editor was opened.
  • Page 49 Operating software settings 3.4 Setting the operating software languages Using the Korean keyboard To enter Korean characters, you will need a keyboard with the keyboard assignment shown below. In terms of key layout, this keyboard is the equivalent of an English QWERTY keyboard and individual characters must be grouped together to form syllables.
  • Page 50: Checking And Entering Licenses

    Here, a license database administered by Siemens is accessed via the Internet. Finally, the license information including the license key is transferred to the hardware.
  • Page 51 ● Softkey: "Read in the license key": The license key is read in from the license file. This file is supplied or can be sourced from the Web License Manager (http://www.siemens.com/automation/license). Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 52: This Is How You Determine Missing Licenses/Options

    Operating software settings 3.5 Checking and entering licenses 3.5.2 This is how you determine missing licenses/options Determining the license requirement Procedure: 1. Press the "All options" softkey to list all the options that can be selected for this control. 2. Activate or deactivate the required options in the "Set" column: –...
  • Page 53: Definitions For License Management

    Operating software settings 3.5 Checking and entering licenses 3.5.3 Definitions for license management Product A product is marked by the data below within the license management of SINUMERIK → software products: ● Product designation ● Order number: ● → License number Software product The term software product is generally used to describe a product that is installed on a piece of →...
  • Page 54 Operating software settings 3.5 Checking and entering licenses Hardware serial number The hardware serial number is a permanent part of the → CompactFlash card. It is used to identify a control system uniquely. The hardware serial number can be determined by: ●...
  • Page 55: Configuring Plc User Alarms

    ● "Alarm" attribute: red, is shown in the "alarm list". ● "Message" attribute: black, is shown under "Messages". To load the alarm texts, restart the system. References Description of the alarms with system responses and cancel criteria in: SINUMERIK 828D Diagnostics Manual Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 56: Structure Of User Plc Alarms

    Operating software settings 3.6 Configuring PLC user alarms 3.6.1 Structure of user PLC alarms Structure of a user PLC alarm The user PLC alarms have the following structure: Figure 3-8 Alarm structure The table below shows the mode of operation of the PLC alarms: 1.
  • Page 57: How To Create User Plc Alarms

    Operating software settings 3.6 Configuring PLC user alarms Defining the NCK response The following NCK responses are possible: MD14516[x] Meaning Bit 0 NC start disabled Bit 1 Read-in disable Bit 2 Feed hold for all axes Bit 3 EMERGENCY STOP Bit 4 PLC in stop Bit 5...
  • Page 58 Operating software settings 3.6 Configuring PLC user alarms Procedure To edit a larger number of alarms, first create 2 or 3 alarms directly on the control. Then the file oem_alarms_plc_xxx.ts is created and you have a "document template" with the correct structure, which you can then extend with further alarms.
  • Page 59: Configuring The Alarm Log

    Operating software settings 3.6 Configuring PLC user alarms 3.6.3 Configuring the alarm log Logging Configure the alarm log in the "Diagnostics" operating area. All alarms and messages are logged in chronological order with their raised and cleared time stamps. The exception are messages of the type "msg" from the NC part program. All alarms and messages that are no longer active when the log is displayed are also retained (historical alarm events).
  • Page 60: How To Configure The Log

    The settings become effective only after restarting the system. Editing the configuration file Procedure: 1. Copy the configuration file "oem_alarmprot_slaesvcconf.xml" from the directory. /siemens/sinumerik/hmi/template/cfg 2. Insert the file into the directory /oem/sinumerik/hmi/cfg /user/sinumerik/hmi/cfg 3. Name the file "slaesvcconf.xml". 4. Open the user-specific file "slaesvcconf.xml" in the editor.
  • Page 61 Operating software settings 3.6 Configuring PLC user alarms The number of events to be output and the type of logging can also be entered directly via the user interface: 1. Press the "Alarm log" → "Settings >" softkey in the "Diagnostics" operating area. As soon as changes are made to the default settings, the "slaesvcconf.xml"...
  • Page 62 Operating software settings 3.6 Configuring PLC user alarms Examples All alarms that fulfill the following conditions are logged: ● CLEARINFO ≠ 15, therefore without part program messages: <CONFIGURATION> <Protocol> <Filters> <Siemens_Filter_01 type="QString" value="CLEARINFO NOT 15" /> </Filters> </Protocol> </CONFIGURATION> ● "SEVERITY larger than 10" and "smaller than 500" : <CONFIGURATION>...
  • Page 63: Creating Oem-Specific Online Help

    Operating software settings 3.7 Creating OEM-specific online help Creating OEM-specific online help Overview In addition to the existing system online help, you also have the option of creating a manufacturer-specific online help and adding this to the operator software. This online help is generated in the HTML format, i.e. it comprises HTML documents that are linked with one another.
  • Page 64: Structure And Syntax Of The Configuration File

    Operating software settings 3.7 Creating OEM-specific online help 3.7.1 Structure and syntax of the configuration file Syntax description of the "slhlp.xml" You require the configuration file "slhlp.xml" to integrate the help book in the existing online help system of the user interface: Numbe Meaning CONFIGURATION...
  • Page 65: Structure And Syntax Of The Help Book

    Operating software settings 3.7 Creating OEM-specific online help Numbe Meaning DefaultLanguage Abbreviation for the language that should be displayed if the actual country language is available for the help book. Attributes: value chs, cht, deu, eng, esp, fra, ita, kor, ptb ... type Data type of the value (QString) The following applies to the "Number"...
  • Page 66 Operating software settings 3.7 Creating OEM-specific online help Number Meaning Identifies the HTML document that is displayed as the entry page for the help book. titel Title of the help book that is displayed in the table of contents. helpdir Directory that contains the online help of the help book.
  • Page 67: Description Of The Syntax For The Online Help

    Operating software settings 3.7 Creating OEM-specific online help 3.7.3 Description of the syntax for the online help Rules for creating the HTML files Generating help files in the HTML format. It is possible to save all information in a single HTML file or to distribute the information over several HTML files.
  • Page 68 Operating software settings 3.7 Creating OEM-specific online help Description Comment Level 3 heading The standard block attributes are supported Level 4 heading The standard block attributes are supported Level 5 heading The standard block attributes are supported Level 6 heading The standard block attributes are supported head Document header...
  • Page 69 Operating software settings 3.7 Creating OEM-specific online help Block attributes The following attributes are supported by the tags div, dl, dt, h1, h2, h3, h4, h5, h6, p: ● align (left, right, center, justify) ● dir (ltr, rtl) Standard attributes for lists The following attributes are supported by tags ol and ul: ●...
  • Page 70: Example: This Is How You Generate An Oem-Specific Online Help Book

    Operating software settings 3.7 Creating OEM-specific online help Property Values Description border-style none | dotted | dashed | dot- Border style for text tables dash | dot-dot-dash | solid | double | groove | ridge | inset | outset background [ <'background-color'>...
  • Page 71 Operating software settings 3.7 Creating OEM-specific online help <INDEX_ENTRY ref="chapter_1.html" title="Keyword 1"/> <INDEX_ENTRY ref="chapter_1.html" title="Keyword 2"/> </ENTRY> <ENTRY ref="chapter_2.html" title="Chapter 2"> <INDEX_ENTRY ref="chapter_2.html" title="Keyword 2"/> </ENTRY> <ENTRY ref="chapter_3.html" title="Chapter 3"> <INDEX_ENTRY ref="chapter_3.html" title="Keyword 3"/> <ENTRY ref="chapter_31.html" title="Chapter 3.1"> <INDEX_ENTRY ref="chapter_31.html" title="test;Chapter 3.1"/> </ENTRY>...
  • Page 72 Updates or changes When displaying the table of contents and index of a help book, for quicker processing, the help files are saved in the binary format in the /siemens/sinumerik/sys_cache/hmi/hlp directory: slhlp_<Hilfebuch>_*_<lng>.hmi . In the example: slhlp_hmi_myhelp_*_eng.hmi These files must first be deleted so that the changes can take effect and be displayed in the online help.
  • Page 73: Example: How To Create An Online Help For User Plc Alarms

    Operating software settings 3.7 Creating OEM-specific online help Entries in the subject index: Figure 3-11 Example: Index 3.7.5 Example: How to create an online help for user PLC alarms Overview If a user PLC alarm is triggered, a context-sensitive online help can be created for the respective alarm, e.g.
  • Page 74 Operating software settings 3.7 Creating OEM-specific online help Structure of the help file The following entries are permitted in the help file: Entry Meaning <a name="AlarmNo">AlarmNo</a> Hyperlink to the alarm number <b> ..</b> Help text for the corresponding alarm <td width="85%">..</td> Text that is displayed after the "Explanation"...
  • Page 75 1. Copy the file to one of the following directories: /oem/sinumerik/hmi/hlp/<lng>/sinumerik_alarm_plc_pmc/ /user/sinumerik/hmi/hlp/<lng>/sinumerik_alarm_plc_pmc/ <lng> stands for the language code. 2. Delete all files in the directory: /siemens/sinumerik/sys_cache/hmi//hlp The settings become effective only after restarting the system. See also Table: Language code in file names (Page 345) Turning and Milling...
  • Page 76: Example: This Is How You Generate An Online Help For Nc/Plc Variables

    Operating software settings 3.7 Creating OEM-specific online help 3.7.6 Example: This is how you generate an online help for NC/PLC variables Overview In order to generate context-sensitive online help for NC/PLC variables or system variables as shown in the following example, the descriptive texts are managed in language- dependent html files.
  • Page 77 Operating software settings 3.7 Creating OEM-specific online help Structure of the configuration file The file is language-neutral and must be called: sldgvarviewhelp.ini [HelpBindings] /BAG/STATE/OPMODE = var1_help.html#var1 $AA_IM[X1] = var1_help.html $R[1] = var1_help.html#var2 /Channel/Parameter/R[u1,1] = var2_help.html#var2 DB1600.DBB0 = var2_help.html#var1 GUD/MyVar[2] = var2_help.html Note The html files can be generated with any html editor.
  • Page 78: Example: This Is How You Generate A Programming Online Help

    Operating software settings 3.7 Creating OEM-specific online help 3. Delete all files in the directory: /siemens/sinumerik/sys_cache/hmi//hlp The settings become effective only after restarting the system. 3.7.7 Example: This is how you generate a programming online help Requirements Generate the following files: ●...
  • Page 79 Operating software settings 3.7 Creating OEM-specific online help ● Configuration file for the help book "hmi_prog_help.xml" (optional) <?xml version="1.0" encoding="UTF-8"?> <HMI_SL_HELP language="en-US"> <BOOK ref="index.html" title="OEM_CYCLES" helpdir="hmi_prog_help"> <ENTRY ref="cycle1_help.html" title="Cycle1"></ENTRY> <ENTRY ref="cycle2_help.html" title="Cycle2"></ENTRY> <ENTRY ref="cycle3_help.html" title="Cycle3"></ENTRY> <ENTRY ref="cycle4_help.html" title="Cycle4"></ENTRY> <ENTRY ref="cycle_help.html" title="OEM_Cycles"></ENTRY> </BOOK>...
  • Page 80 Operating software settings 3.7 Creating OEM-specific online help Saving help files in the target system Procedure: 1. Copy the configuration file "prog.ini" to the following directory: /oem/sinumerik/hmi/cfg 2. Copy the file " " to the help book in the following directory: slhlp.xml /oem/sinumerik/hmi/cfg 3.
  • Page 81: Dialog Selection Using Plc Hard Keys

    Operating software settings 3.8 Dialog selection using PLC hard keys Dialog selection using PLC hard keys Applications The following functions can be initiated in the operating software by the PLC: ● Selecting an operating area ● Selecting certain scenarios within operating areas ●...
  • Page 82 Operating software settings 3.8 Dialog selection using PLC hard keys The lines for configuring the hard key events have the following structure: KEYx.n = Area:=area, Dialog:=dialog, Screen:=screen, Forms:=form, Menus:=menu, Action:=menu.action, Cmdline:=cmdline KEYx.n = Area:=area, Dialog:=dialog, Cmdline:=cmdline, Action:= action x: Number of the hard key, range of values: 1 – 254 n: Event number –...
  • Page 83 Operating software settings 3.8 Dialog selection using PLC hard keys Example Selecting the "Machine" operating area: 1. PLC user program 2. Configuration file \oem\sinumerik\hmi\cfg\systemconfiguration.ini ; PLC hard keys (KEY50-KEY254) [keyconfiguration] KEY50.0 = area:=AreaMachine, dialog:=SlMachine KEY51.0 = area:=AreaProgramEdit KEY52.0 = area:=AreaParameter KEY53.0 = area:=AreaProgramManager KEY54.0 = area:=AreaDiagnosis, dialog:=SlDgDialog, cmdline:="-slGfwHmiScreen SlDgAeAlarmsScreen"...
  • Page 84 Operating software settings 3.8 Dialog selection using PLC hard keys Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 85: Commissioning The I/O

    0 ≤ i ≤ 7 Output addresses The SINUMERIK 828D works with a fixed maximum configuration of the I/O modules. As delivered, the data transfer to the input and output image of the PLC is deactivated for all I/O modules.
  • Page 86 Commissioning the I/O 4.1 Connecting the I/O modules If an I/O module is to be activated, its address must not be entered in either MD12986[i] or in MD12987[i]. Instead, the value -1 ("empty") must be entered. Example There are two PP modules, the machine control panel and the SENTRON PAC4200 activated: Logical input Data transfer to the PLC deactivated...
  • Page 87: Addressing The I/O Modules

    Commissioning the I/O 4.1 Connecting the I/O modules 4.1.2 Addressing the I/O modules IP addresses of the I/O modules You can find the DIP switch S1 for the IP address of the appropriate I/O module in the following table. In this case, the maximum configuration with I/O modules, bus coupler and machine control panel via the PLC I/O Interface based on PROFINET is taken into consideration.
  • Page 88 Commissioning the I/O 4.1 Connecting the I/O modules Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 89: Commissioning The Drive

    ● The encoder is configured and parameterized using the commissioning software for SINAMICS S120. The PG/PC is connected via the Ethernet interface on the front of the SINUMERIK 828D. Configuring the drive Example 2 with the SINAMICS S120 Combi from Section "System overview (Page 11)" is selected for the configuration of the drive.
  • Page 90 Before you begin: ● Connect the PG/PC to the control: see Section "Communication with the control (Page 19)" ● The control is powered-up with "Siemens default data". ● Display in the "Startup" operating area at the control: Figure 5-1 Control after powering-up with "Siemens default data"...
  • Page 91 Commissioning the drive 5.1 Configuring the drive Procedure To configure the drive: 1. Start commissioning using the "Drive system" softkey. 2. Confirm the following question with "OK", in order to start the device configuration. Figure 5-2 Start commissioning with SINUMERIK Operate The system topology is then automatically read-out.
  • Page 92 Commissioning the drive 5.1 Configuring the drive 4. Confirm the following question with "OK", in order to perform an NCK Power On Reset. This can take several minutes. Figure 5-4 Confirming the Power On Reset 5. After the system has been powered-up, you receive the following message: 6.
  • Page 93 Commissioning the drive 5.1 Configuring the drive 8. Select the "Startup" operating area. 9. Set the password to "Manufacturer" access level. 10. Confirm the following question with "OK", in order to start the additional configuration. Figure 5-6 Start commissioning Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 94: Example: This Is How You Configure A Spindle With Smc Encoder

    Commissioning the drive 5.1 Configuring the drive 5.1.2 Example: This is how you configure a spindle with SMC encoder Spindle configuration with SMC20 Procedure: 1. First, select the spindle using the "Drive +" or "Drive -" softkey. 2. Select "Change" to configure the spindle. Figure 5-7 Drive\overview The following spindle data is displayed:...
  • Page 95 Commissioning the drive 5.1 Configuring the drive 3. Select "Continue >" to assign the associated motor: The motor can either be selected using the "Motor type" or using "Search" to find the code number. Figure 5-9 Drives\configuration: Motor 4. Select "Continue >" to configure the motor holding brake: Please observe the note regarding the bearing design.
  • Page 96 Commissioning the drive 5.1 Configuring the drive 5. Select "Continue >" to assign the encoder: The two encoders (at the motor measuring system and at the direct measuring system) were already correctly assigned when automatically determining the topology. Figure 5-11 Drives\configuration: Encoder assignment 6.
  • Page 97 Commissioning the drive 5.1 Configuring the drive 8. Confirm this setting with "OK", the encoder is displayed as "user-defined": Figure 5-13 Drives\configuration - encoder 2: user-defined 9. Select "Continue >" to accept the default setting with telegram 116 (speed feedforward control).
  • Page 98 Commissioning the drive 5.1 Configuring the drive 10. Select the setting with telegram 136 (torque feedforward control), in order to transfer additional process data (PZD) for the internal drive variables and save in system variables. Figure 5-15 Drives\configuration - control type 11.
  • Page 99 Commissioning the drive 5.1 Configuring the drive 13. Select "Ready >" to complete the spindle configuration. Figure 5-17 Commissioning - query 14. Select "Yes" to save the configuration. Result This completes configuration of the spindle. Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 100: Example: This Is How You Configure An Axis With Smi Encoder

    Commissioning the drive 5.1 Configuring the drive 5.1.3 Example: This is how you configure an axis with SMI encoder Configuring the axis with SMI encoder Procedure: 1. First, select the axis using the "Drive +" or "Drive -" softkey. 2. Select "Change" to configure the axis. Figure 5-18 Drive\overview The following axis data is displayed:...
  • Page 101 Commissioning the drive 5.1 Configuring the drive 3. Select "Continue >" to configure the associated motor: The motor type was already correctly identified when automatically determining the topology. Figure 5-20 Drives\configuration - motor 4. Select "Continue >" to configure the motor holding brake. Figure 5-21 Drives\configuration - motor holding brake Please observe the note regarding overvoltage protection.
  • Page 102 Commissioning the drive 5.1 Configuring the drive 5. Select "Continue >" to assign the encoder: The two encoders (at the motor measuring system and at the direct measuring system) were already correctly assigned when automatically determining the topology. Figure 5-22 Drives\configuration - encoder assignment 6.
  • Page 103 Commissioning the drive 5.1 Configuring the drive 8. Confirm this setting with "OK", the encoder is displayed as "user-defined": Figure 5-24 Drives\configuration - encoder 2 9. Select "Continue >" to accept the default setting with telegram 116 (speed feedforward control). This means that for the internal drive variables, additional process data (PZD) is also transferred and saved in system variables.
  • Page 104 Commissioning the drive 5.1 Configuring the drive 10. Select the setting with telegram 136 (torque feedforward control), in order to transfer additional process data (PZD) for the internal drive variables and save in system variables. Figure 5-26 Drives\configuration - control type 11.
  • Page 105: Example: Configuration With Sinamics S120 Booksize

    Until the SINAMICS S120 commissioning functionality is completely available via the user interface, drive commissioning is performed using the commissioning software for SINAMICS S120. The PG/PC is connected via the Ethernet interface on the front of the SINUMERIK 828D. Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 106 Commissioning the drive 5.1 Configuring the drive Configuring the drive To configure the drive, the example with four axes and SINAMICS S120 Booksize is selected from Section "System overview (Page 11)". The DRIVE-CLiQ connections are connected as in the following diagram: Figure 5-29 DRIVE-CLiQ connections The following applies to the configuration of four axes:...
  • Page 107: Example: This Is How You Configure A Drive System

    ● Connect the PG/PC to the control: See Section Example: How to communicate with the control using the NCU Connection Wizard (Page 22) ● The control is powered-up with "Siemens default data". ● Display in the "Startup" operating area at the control:...
  • Page 108 Commissioning the drive 5.1 Configuring the drive Procedure To configure the drive: 1. Start the commissioning software for SINAMICS S120 on PG/PC: 2. Select the "Startup" operating area. 3. Set the password to "Manufacturer" access level. Then you obtain the following display: Figure 5-31 Machine configuration: Starting commissioning NOTICE...
  • Page 109 Commissioning the drive 5.1 Configuring the drive Note Updating firmware When a drive is connected, the update of the firmware is started automatically. • During loading, you will be informed of progress with a status display. • While the firmware is loading, the "RDY" LED flashes alternately red - green on the appropriate module.
  • Page 110 Commissioning the drive 5.1 Configuring the drive 6. Select the "Drive unit" softkey (vertical bar) and continue the configuration with "OK". Figure 5-33 Drive units/configuration - topology comparison 7. Then you receive the message that the device configuration process may last several minutes.
  • Page 111 Commissioning the drive 5.1 Configuring the drive 8. Then you obtain the following display: Figure 5-35 Drive units\configuration: NCK Power On reset 9. Confirm with "Yes". The system carries out a warm restart. This operation can take several minutes. After the warm restart you receive the following selection: Figure 5-36 Drive units\configuration: Continue with commissioning Turning and Milling...
  • Page 112: Example: How To Configure The Infeed

    Commissioning the drive 5.1 Configuring the drive 10. To continue commissioning, press the "Drives" softkey. Figure 5-37 Drive\overview 11. Option: To identify the individual Motor Modules, select "Identify via LED": The "RDY" LED flashes alternately red - orange. Select the next module with the vertical softkeys "Drive +" and "Drive -". Result Step 1 for commissioning the drives has now been completed.
  • Page 113 Commissioning the drive 5.1 Configuring the drive Procedure: 1. Then press the horizontal softkey "Infeed" to obtain the following overview: Figure 5-38 Infeeds\overview 2. To configure the infeed, select the vertical softkey "Change". In the following dialog you can assign a new name for the infeed or accept the default setting: Figure 5-39 Infeeds\configuration - names Turning and Milling...
  • Page 114 Commissioning the drive 5.1 Configuring the drive 3. In the following dialog "Configuration - Line Module", the automatically detected Line Module and the connected line filter are displayed. Press "Continue >" to continue commissioning – or select the option "External braking module" if a braking module is being used.
  • Page 115 Commissioning the drive 5.1 Configuring the drive 5. In the following dialog "Configuration - terminal wiring", select the internal SINAMICS line contactor control or press "Continue >" to continue with commissioning. Figure 5-42 Infeeds\configuration - terminal wiring 6. In the following dialog "Configuration - summary", the infeed data that was entered is displayed.
  • Page 116 Commissioning the drive 5.1 Configuring the drive 7. Confirm the query with "Yes" if you want to save the data. This operation can take several minutes. Figure 5-44 Infeeds\configuration - summary: Query 8. In the following "Overview" dialog you obtain an overview of the configuration data of the drive object: Figure 5-45 Infeeds\overview...
  • Page 117: Example: This Is How You Configure A Drive Object

    Commissioning the drive 5.1 Configuring the drive Replacing a drive component later If a drive component is replaced by a component with a different order number, e.g. a more powerful module, after the first commissioning, observe the following sequence: 1. Select "Drive unit" → "Topology" → "Change". 2.
  • Page 118 Commissioning the drive 5.1 Configuring the drive Procedure To configure a drive object: 1. Use the cursor keys to select a drive object and then press the "Drives" softkey. Select "Change" if the drive object has still not commissioned. Figure 5-46 Drives\overview: Starting commissioning 2.
  • Page 119 Commissioning the drive 5.1 Configuring the drive 3. In the following "Configuration - Motor" dialog, from the list of motors select the connected motor type. Press "Continue >" to continue with commissioning. Figure 5-48 Drives\configuration - motor 4. In the following "Configuration - motor holding brake" dialog, select the motor holding brake if available and select the extended brake control.
  • Page 120 Commissioning the drive 5.1 Configuring the drive 5. In the following "Configuration - encoder assignment" dialog, select the encoder connected at the motor from the list of encoders in the drive line up. Press "Continue >" to continue with commissioning. Figure 5-50 Drives\configuration - encoder assignment 6.
  • Page 121 Commissioning the drive 5.1 Configuring the drive Press "Continue >" to continue with commissioning. Figure 5-51 Drives\configuration - encoder 1 7. In the following "Configuration - control type" dialog, select the control type with or without encoder as well as the associated PROFIBUS message frame. The control mode and the PROFIBUS message frame are generally already correctly pre-assigned.
  • Page 122 Commissioning the drive 5.1 Configuring the drive 8. In the following "Configuration - BICO Interconnections" dialog, select the BICO interconnection for OFF2 (Page 147). The default setting is dependent on the selected message frame. Press "Continue >" to continue with commissioning. Figure 5-53 Drives \ Configuration - BICO Interconnections 9.
  • Page 123: Example: How To Configure The External Encoder

    Commissioning the drive 5.1 Configuring the drive 10. In the following query, select whether you want to save the drive data: Confirm with "Yes>" to save the drive configuration. Figure 5-55 Commissioning - query Result Step 3 for commissioning a drive object has therefore been completed. Repeat this procedure for all drive objects.
  • Page 124 Commissioning the drive 5.1 Configuring the drive Procedure To change the configuration of the drive: 1. You pressed the vertical softkey "Change". Figure 5-56 Change drive 2. Confirm the query with the "Change" softkey. The dialog "Configuration - Motor" is opened and the drive object 3 = Spindle is selected. Press "Next >".
  • Page 125 Commissioning the drive 5.1 Configuring the drive 4. The next dialog tells you about the motor assignment. Press "Next >". Figure 5-57 Configuring the motor 5. This dialog tells you the exact data of the motor recognized. Press "Next >". 6.
  • Page 126 Commissioning the drive 5.1 Configuring the drive 7. The next dialog tells you which encoder has already been assigned to this drive object (= spindle): Figure 5-58 Assigning the encoder 8. Activate the "Encoder 2" option. 9. Select the encoder "SM_19.Encoder_20" from the selection list. 10.
  • Page 127 Commissioning the drive 5.1 Configuring the drive 16. The next dialog tells you about the BICO connection. 17. Press "Next >". 18. At the end you receive a summary showing all the data. 19. If you press "Finish >" you receive the following information: Figure 5-60 Confirm saving 20.
  • Page 128: Example: How To Assign The Axes

    Commissioning the drive 5.1 Configuring the drive 5.1.9 Example: How to assign the axes Assigning axes After the final save of the Encoder 2 configuration data, the following overview is shown: Figure 5-61 Drive\overview Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 129 Commissioning the drive 5.1 Configuring the drive 1. To assign every logical drive a real axis, select the horizontal softkey "Assign axis". The "Axis assignment" dialog is opened: Figure 5-62 Axis assignment Note Both the following actions are each carried out twice so the softkeys "Change" and "Accept"...
  • Page 130 Commissioning the drive 5.1 Configuring the drive 5. Press the "Cancel" softkey to assign the other axes first. Figure 5-63 Axis assignment: Spindle 6. Select the next module with the vertical softkeys "Drive +" and "Drive -". 7. Assign all axes one after another: Axis Drive MSP1...
  • Page 131 Commissioning the drive 5.1 Configuring the drive Accept settings Finally, carry out the NCK Power On Reset and check the following settings: Figure 5-64 Axis assignment: Power On reset Confirm with "OK" and carry out a restart; not only for the drives and but also for the control. The following assignment is shown on the PG/PC: Figure 5-65 Machine configuration...
  • Page 132 Commissioning the drive 5.1 Configuring the drive After the restart, the following machine configuration is displayed on the control: Figure 5-66 Machine configuration: All axes commissioned Result Step 5 for commissioning a drive system has therefore been completed. Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 133 Commissioning the drive 5.1 Configuring the drive Data backup The configuration data is backed up after commissioning in the non-volatile memory with the vertical softkey "Save data": Figure 5-67 Message to carry out data backup Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 134: Example: Parallel Connection With Tm120

    Commissioning the drive 5.1 Configuring the drive 5.1.10 Example: Parallel connection with TM120 Application: Four motors connected in parallel Sample topology: M1 ... M4 Motor 1 ... motor 4 One KTY and three PTC in series are connected for each motor. Sensor Module (motor encoder) Active Line Module Double Motor Module...
  • Page 135 Commissioning the drive 5.1 Configuring the drive Measures for the TM120: 1. TM120 between the Motor Module and the SMx Sensor Module This TM120 evaluates four KTYs => sensor types must be selected by Servo-p4610/TM- p4100. The associated temperature is output by servo-r4620/TM120-r4105. 2.
  • Page 136: Example: Setting Machine Data For An Axis/Spindle

    Commissioning the drive 5.1 Configuring the drive 5.1.11 Example: Setting machine data for an axis/spindle Axis machine data After the commissioning in the previous example, the following values are set for the axis machine data: Axis machine data 30200 $MA_NUM_ENCS 30230 $MA_ENC_INPUT_NR 30240...
  • Page 137 Commissioning the drive 5.1 Configuring the drive Maximum speed drive parameter After a DDS switchover, e.g. DDS0 → DDS1, the spindle can only be traversed with the speed from p1082[0]. If a value less than that in p1082[1 ... n] is entered in p1082[0], the spindle speed is limited to the value in p1082[0].
  • Page 138: Configuring The Profibus Message Frame Type

    The default setting of drive message frame to PROFIBUS message frame type 136 (Siemens message frame type like 116 plus torque feedforward control) is performed in the preconfigured SDB. During commissioning, this message frame type is set in the numerical control (MD13060) and SINAMICS S120 (p0922) components.
  • Page 139: Parameters For The Axis / Spindle Test Run

    Commissioning the drive 5.1 Configuring the drive You configure the following properties with the setting of MD11240[0..3] = n: Feature PPU24x.2 PPU26x.2 PPU28x.2 Bus cycle clock (system 1.5 ms 1.5 ms 1.5 ms clock) SERVO cycle clock 3 ms 3 ms TE: 1.5 ms ME: 3 ms n=0,1...
  • Page 140 Commissioning the drive 5.1 Configuring the drive Infeed: Parameter/terminal Meaning p0840 ON/OFF1 p0844 1. OFF2 p0845 2. OFF2 p0852 Enable operation X21.3 (+24 V) and X21.4 (ground) EP terminals enable (pulse enable) The drive parameters are set under: Operating area "Start-up" → Softkey "Drive units" → "Inputs/outputs".
  • Page 141: Topology Rules For Drive-Cliq

    Optional: 2. direct sin/cos encoder for spindle (via SMx20) Remains empty when connecting a direct TTL spindle encoder via X220 In this case, the TTL encoder interface X220 remains free Table 5- 2 Assigning the DRIVE-CLiQ interfaces to the SINUMERIK 828D (PPU) DRIVE-CLiQ interface Connection with X100...
  • Page 142 Commissioning the drive 5.2 Topology rules for DRIVE-CLiQ Table 5- 3 Assigning the DRIVE-CLiQ interfaces of the expansion axes DRIVE-CLiQ interface Connection with First Single Motor Module X200 X101 of the PPU X201 X200 of the second Single Motor Module X202 Motor encoder for feedrate 1st expansion axis (via Sensor Module) Second Single Motor Module...
  • Page 143: Topology Rules For S120 Booksize

    Commissioning the drive 5.2 Topology rules for DRIVE-CLiQ 5.2.2 Topology rules for S120 Booksize Introduction The following rules apply for wiring components with DRIVE-CLiQ. A distinction is made between DRIVE-CLiQ rules, which must always be observed, and recommended rules, which, when observed, do not require any subsequent changes to the topology when expansions are made.
  • Page 144 Commissioning the drive 5.2 Topology rules for DRIVE-CLiQ ● Ring wiring is not permitted. ● Components must not be double-wired. Figure 5-68 Example: DRIVE-CLiQ line at the X100 terminal (without Safety Integrated) ● The following applies to the booksize format: –...
  • Page 145 Commissioning the drive 5.2 Topology rules for DRIVE-CLiQ ● The Active Line Module Booksize and the Motor Modules Booksize can be connected to one DRIVE-CLiQ line. ● Chassis Line Module and Motor Module are connected in series. ● To allow the following modules to be assigned automatically during the commissioning (device identification), they should be connected to a free DRIVE-CLiQ port on the associated Active Line Module/Motor Module: –...
  • Page 146 Commissioning the drive 5.2 Topology rules for DRIVE-CLiQ Figure 5-69 Example: DRIVE-CLiQ line ● The motor encoder must be connected to the associated power unit. Component Connecting the motor encoder via DRIVE-CLiQ Single Motor Module booksize X202 Double Motor Module booksize Motor connection X1: Encoder at X202 •...
  • Page 147: Terminal Assignments

    Commissioning the drive 5.3 Terminal assignments Terminal assignments 5.3.1 Terminal assignment at X122 and X132 X122: Digital inputs/outputs of the PPU Signal name Status Meaning r722.0 Digital input 0 r722.1 Digital input 1 r722.2 Digital input 2 r722.3 Digital input 3 DI16 DI16 r722.16...
  • Page 148: Terminal Assignment At X242 And X252

    Commissioning the drive 5.3 Terminal assignments Signal name Status Meaning IO15 DI/DO15 r722.15 / r747.15 Digital input/output 15 MEXT1 Ground for pins 9, 10, 12, 13 5.3.2 Terminal assignment at X242 and X252 X242 pin assignment Signal name NC variable Meaning Not connected Not connected...
  • Page 149 Commissioning the drive 5.3 Terminal assignments Signal name NC variable Meaning DOUT11 *) Controller enable for analog spindle DOUT12 *) Direction of travel for analog spindle MEXT3 Ground for pins 9, 10, 12, 13 *) These terminals are pre-assigned for the analog spindle. See also Machine data for an analog spindle (Page 163) Turning and Milling...
  • Page 150: Example: Circuitry For A Cu With Line Contactor

    Commissioning the drive 5.3 Terminal assignments 5.3.3 Example: Circuitry for a CU with line contactor Example The circuitry shown refers to the assignment of the terminals in the previous chapters. Figure 5-71 Circuitry for a Control Unit with line contactor Smart Line Module connection The connections for the digital in/outputs X122 and X132 are on the rear side of the control.
  • Page 151 Signal output of the control, to avoid interference of the 24 VDC supply on the EP terminal. ⑩ Connect via BICO to parameter p0864 → X122.1 Figure 5-72 Example: SLM connection ON/OFF1 enable: Connection of Smart Line Module pin X21.1 → X122.1 SINUMERIK 828D Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 152: Connecting The Probes

    Connecting the probes Connecting the probes The probes are connected to both the SINUMERIK 828D CU and the NX: 1. Probe at terminal X122 pin 13 / X122 pin 13 of the NX 2. Probe at terminal X132 pin 13 / X122 pin 12 of the NX...
  • Page 153 Central probe input terminal = 0 The 1st probe is connected to terminal X122 pin 13, the 2nd probe to terminal X132 pin 13 of the SINUMERIK 828D and - if present - on the NX10 module to terminal X122 pin 12.
  • Page 154 Commissioning the drive 5.3 Terminal assignments Probe status DB2700 General signals from NCK [r] NCK → PLC interface Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB0 EMERGENC Y STOP active DBB1 Inch Probe actuated...
  • Page 155: Parameterizing Machine Data

    Parameterizing machine data Parameterizing machine data Classification of machine data Authorization for machine data At least the Manufacturer password is necessary to enter or change machine data. DANGER Changes in the machine data have a considerable influence on the machine. Incorrect configuration of the parameters can endanger human life and cause damage to the machine.
  • Page 156 Parameterizing machine data 6.1 Classification of machine data A separate list image is provided for each of these areas in which you can view and edit machine data: Figure 6-1 Softkey bar The following properties of the machine data are displayed from left to right: ●...
  • Page 157 Parameterizing machine data 6.1 Classification of machine data If the data is not available, the "#" symbol is displayed instead of the value. If the value ends in an "H", it is a hexadecimal value. Effectiveness of the machine data The right-hand column indicates when a machine data becomes effective: cf = with confirmation using the "Activate MD"...
  • Page 158: Processing Part Programs From External Cnc Systems

    The ISO dialect M or T language types can be selected using MD10880 $MN_EXTERN_CNC_SYSTEM. The two G commands of group 47 are used to switch from Siemens mode to ISO dialect mode: ● G290: Siemens NC programming language active ●...
  • Page 159: Machining Free Form Surfaces Using Advanced Surface

    Parameterizing machine data 6.3 Machining free form surfaces using Advanced Surface Machining free form surfaces using Advanced Surface Machining with Advanced Surface When executing CAM programs in the high-speed cutting (HSC) range, the control has to process high feedrates with the shortest NC blocks. The result should be a good surface quality of the workpiece with high precision in the µm range at extremely high machining feedrates of >...
  • Page 160 Parameterizing machine data 6.3 Machining free form surfaces using Advanced Surface Machine data for Advanced Surface The following setpoints are recommended for the listed machine data in order to achieve the optimum workpiece surface when machining mold workpieces: General machine data: MD number Designation Default...
  • Page 161 Parameterizing machine data 6.3 Machining free form surfaces using Advanced Surface MD number Designation Default Recommen Data Parameter setting dation class 20603[1] $MC_CURV_EFFECT_ON_PATH_JERK 20603[2] $MC_CURV_EFFECT_ON_PATH_JERK 20603[3] $MC_CURV_EFFECT_ON_PATH_JERK 20603[4] $MC_CURV_EFFECT_ON_PATH_JERK 20605[0] $MC_PREPDYN_SMOOTHING_FACTOR 20605[1] $MC_PREPDYN_SMOOTHING_FACTOR 20605[2] $MC_PREPDYN_SMOOTHING_FACTOR 20605[3] $MC_PREPDYN_SMOOTHING_FACTOR 20605[4] $MC_PREPDYN_SMOOTHING_FACTOR 20606[0] $MC_PREPDYN_SMOOTHING_ON DYNNORM 20606[1]...
  • Page 162 Parameterizing machine data 6.3 Machining free form surfaces using Advanced Surface MD number Designation Default Recommen Data Parameter setting dation class 32431[2] $MA_MAX_AX_JERK 1000000 1000000 DYNROUGH 32431[3] $MA_MAX_AX_JERK DYNSEMIFIN 32431[4] $MA_MAX_AX_JERK DYNFINISH 32432[0] $MA_PATH_TRANS_JERK_LIM 1000000 1000000 DYNNORM 32432[1] $MA_PATH_TRANS_JERK_LIM 1000000 1000000 DYNPOS 32432[2]...
  • Page 163: Machine Data For An Analog Spindle

    The PROFIdrive message frame the SINAMICS axis must be designed for two encoder actual values. Depending on MD11240 $MN_PROFIBUS_SDB_NUMBER, the standard SDB of SINUMERIK 828D supports Siemens message frame 116 or Siemens message frame 136. Functional restrictions: ●...
  • Page 164 Parameterizing machine data 6.4 Machine data for an analog spindle Relevant machine data The following machine data must be set for the analog spindle: ● Activation of the analog spindle: MD30100:$MA_CTRLOUT_SEGMENT_NR = 0 The analog spindle for the setpoint output is activated by setting the local bus as bus segment.
  • Page 165 Parameterizing machine data 6.4 Machine data for an analog spindle Example Example of three axes and analog spindle with actual value encoder (SMC30 as 2nd encoder connected to the Y axis). MD identifier Meaning MD30100 CTRLOUT_SEGMENT_NR 5 Bus segment MD30110 CTRLOUT_MODULE_NR Module assignment MD30120 CTRLOUT_NR Output assignment...
  • Page 166: Managing Data

    Parameterizing machine data 6.5 Managing data Managing data Application The "Manage data" function is used to support and simplify the commissioning and provides functions for backing up, loading and comparing the following data: ● Machine data ● Setting data ● Drive data ●...
  • Page 167: How To Transfer Data Within The Controller

    Parameterizing machine data 6.5 Managing data Example of "transferring data within the control" Figure 6-3 Managing data 6.5.1 How to transfer data within the controller Transfer data within the control NOTICE Protection of the machine For safety reasons, the machine and setting data should only be transferred when the enable is locked.
  • Page 168: To Save And Load Data

    Parameterizing machine data 6.5 Managing data 4. Observe the safety instructions and check the enable signals at the machine and the drive. 5. For drive data, the "Load" softkey is used to transfer the data to the target object. 6.5.2 To save and load data Save data to a file Procedure:...
  • Page 169: How To Compare Data

    Parameterizing machine data 6.5 Managing data Loading data from a file NOTICE Protection of the machine For safety reasons, the machine and setting data should only be transferred when the enable is locked. Procedure: 1. Select the "Load data from a file" option. 2.
  • Page 170 Parameterizing machine data 6.5 Managing data Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 171: Service Planner

    Service Planner Overview Using the service planner dialog at the user interface or programming tool, time intervals and alarm sequences for the tasks to be processed (mainly machine maintenance tasks) can be edited, started, deactivated or reactivated. The numeric data of the tasks is organized in data blocks and provided in the user interface for the HMI, PLC user program and programming tool.
  • Page 172 Service Planner Configuration in the system Figure 7-1 Service Planner: Configuration Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 173: Interfaces In The Plc User Program

    "disabled" after a Power OFF message. The alarm messages are configured in accordance with the specifications of the SINUMERIK 828D PLC messages. The texts are entered with the alarm text editor. Then the texts are available for the operating software: ●...
  • Page 174 Service Planner 7.1 Interfaces in the PLC user program DB9903 Initial data table [r16] DBW12 Number of warnings to be output 2 DBW14 Reserved 2 DBW248 Interval 32 [h] DBW250 Time of first warning 32 [h] DBW252 Number of warnings to be output 32 DBW254 Reserved 32 Designation...
  • Page 175 Service Planner 7.1 Interfaces in the PLC user program DB9904 Actual data table [r16] DBW248 Remaining time 32 [h] DBW250 Number of warnings output 32 DBW252 Reserved_1 32 DBW254 reserved_2 32 Designation Meaning Remaining time Number of hours remaining after the start of the task until it expires. Remaining time ≠...
  • Page 176 Service Planner 7.1 Interfaces in the PLC user program Designation Meaning Acknowledgment n The acknowledgment bit assigned to task n: Under the precondition that the corresponding acknowledgment blocking bit is not set, the setting of the acknowledgment bit restarts the task and, in particular, the actual data of the task is set: Remaining time = interval •...
  • Page 177 Service Planner 7.1 Interfaces in the PLC user program Designation Meaning Deactivation n The deactivation bit assigned to task n. If the bit is set via the HMI or from the PLC user program, the current state of task n is frozen and no longer processed. TRUE: Task deactivated FALSE: Task active This means it is possible, for example, to adapt the maintenance interval...
  • Page 178: Interfaces To The Operating Software

    Service Planner 7.2 Interfaces to the operating software Interfaces to the operating software Overview To process these service/maintenance tasks, you have the following options: ● Managing the data in the PLC user program using the programming tool. ● Maintenance tasks are created via an XML interface. Using this segmentation, inconsistencies between the PLC block and the XML scripts are avoided if the PLC block is changed in the PLC user program via the programming tool or as a result of a commissioning archive.
  • Page 179 Service Planner 7.2 Interfaces to the operating software Configuration mode Access level 2: Service Maintenance tasks can be created, changed and also deleted in this mode. The maintenance tasks can also be acknowledged. All columns are visible. Navigation between the columns is with <Tab> or <Key Left/Right>. Note Number assignment A number is automatically assigned when a task is created.
  • Page 180 Service Planner 7.2 Interfaces to the operating software Standard mode Access level 3: User In the standard mode, the actual status of the maintenance tasks is displayed. The following columns are visible, but cannot be edited: "Maintenance task", "Interval", "Remaining time" and "Status".
  • Page 181: This Is How You Import And Export Maintenance Tasks

    Service Planner 7.3 This is how you import and export maintenance tasks This is how you import and export maintenance tasks Overview In the dialog, there are two soft keys that can be used to read-in and read-out the configuration files with the maintenance tasks: ●...
  • Page 182 Service Planner 7.3 This is how you import and export maintenance tasks The file name can be freely selected, for example task.xml. task.xml <MAINTENANCE> <MAINTENANCE_TASK> <TASK_ID>0</TASK_ID> <INTERVALL>3</INTERVALL> <FIRST_WARNING>1</FIRST_WARNING> <NUMBER_OF_WARNING>1</NUMBER_OF_WARNING> </MAINTENANCE_TASK> <MAINTENANCE_TASK> <TASK_ID>1</TASK_ID> <INTERVALL>3</INTERVALL> <FIRST_WARNING>2</FIRST_WARNING> <NUMBER_OF_WARNING>1</NUMBER_OF_WARNING> </MAINTENANCE_TASK> <MAINTENANCE_TASK> <TASK_ID>2</TASK_ID> <INTERVALL>3</INTERVALL> <FIRST_WARNING>2</FIRST_WARNING> <NUMBER_OF_WARNING>1</NUMBER_OF_WARNING>...
  • Page 183 Service Planner 7.3 This is how you import and export maintenance tasks Structure of the oem_maintenance_<lng>.ts file This file has the extension ".ts" and contains all the language-dependent warning texts that were entered in the dialog. This file is available in the binary format (*.qm) after the system powers-up the next time.
  • Page 184: Acknowledging Maintenance Tasks

    Service Planner 7.4 Acknowledging maintenance tasks Acknowledging maintenance tasks Acknowledging maintenance tasks After completion of the maintenance activities, the maintenance tasks are acknowledged by the PLC user program or in the dialog of the operating software using the "Maintenance completed" softkey. The acknowledgment bit for the maintenance task is set by making the acknowledgment in the dialog, the PLC then deletes "Number of output warnings/alarms"...
  • Page 185: Easy Extend

    Easy Extend Function of Easy Extend Objective Easy Extend provides you with a simple facility for commissioning, activating, deactivating or testing optional equipment. The available equipment and device states are displayed in a list by the control system. The system can manage a maximum of 64 devices. Softkeys are used to activate or deactivate a device.
  • Page 186 Easy Extend 8.1 Function of Easy Extend To use Easy Extend, the following functions should be configured by the machine manufacturer: ● PLC ↔ HMI interface The optional devices are managed via the interface between the user interface and the PLC.
  • Page 187: Configuration In The Plc User Program

    Easy Extend 8.2 Configuration in the PLC user program Configuration in the PLC user program Loading configurations The configurations created are transferred to the manufacturer directory of the control, with the script and text file. Additionally, the corresponding PLC user program should be loaded. Programming the equipment Communication between the operator component and the PLC takes place in the PLC user program via data block DB9905, in which 128 words are reserved to manage a maximum of...
  • Page 188 Easy Extend 8.2 Configuration in the PLC user program NOTICE Commissioning archive • In order to be able to use a commissioning archive in the Easy Extend script, these archives must be created without HMI data! Changing the machine configuration •...
  • Page 189: Option Bits For Machine Manufacturers And Dealers

    Easy Extend 8.3 Option bits for machine manufacturers and dealers Option bits for machine manufacturers and dealers Distribution of the option bits The option bits are managed in blocks of 16 bits. According to the default setting, block 3 is reserved for dealers.
  • Page 190 Easy Extend 8.3 Option bits for machine manufacturers and dealers Index MD14510 Data block Device designation $MN_USER_DATA_INT[3] Bit 14 DB9905.DBB248 Device 63 $MN_USER_DATA_INT[3] Bit 15 DB9905.DBB252 Device 64 Example of a fixed assignment: <device option_bit="bit number"> </device> Example ① ② ③...
  • Page 191 Easy Extend 8.3 Option bits for machine manufacturers and dealers Feedback from the PLC If the dealer cannot integrate his own PLC logic, then the PLC feedback signals must be set by the script. See also Attribute option_bit: Structure of the XML script (Page 203) XML identifier: OPTION_MD (Page 215) Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 192: Display On The User Interface

    Easy Extend 8.4 Display on the user interface Display on the user interface Dialogs on the user interface The following dialogs are available for Easy Extend: ● The control offers a configurable dialog, in which the available devices are shown. ●...
  • Page 193: Generating Language-Dependent Text

    Easy Extend 8.5 Generating language-dependent text Generating language-dependent text Replacement characters for language-dependent text The system offers the option of defining CONTROL properties (attribute values) during runtime. In order to use this function, the desired property must be set in a local variable and the variable name must be transferred to the tag as an attribute value preceded by $ characters.
  • Page 194 Easy Extend 8.5 Generating language-dependent text Structure of text file The XML files with the language-dependent texts must be created in UTF8 format: Example: oem_aggregate_eng.ts <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE TS> <TS> <context> <name>EASY_EXTEND</name> <message> <source>form_caption_id_my_device2</source> <translation>my_device2</translation> <chars>64</chars> </message> <message> <source>form_caption_device2</source>...
  • Page 195: Examples

    Easy Extend 8.6 Examples Examples 8.6.1 Example with control elements Example of a combo box If "combo box" is selected as the field type, the expressions to be displayed must also be defined. The <item> identifier should be used for this purpose. The combo box saves the index of the currently selected text in the variable belonging to the "CONTROL"...
  • Page 196: Example With Parameters To Support The Commissioning

    Easy Extend 8.6 Examples Note "hotlink" attribute The hotlink attribute results in a cyclic update of the corresponding control. This means that when a value is entered, the following update cycle overwrites the entered value. To avoid this behavior, the immediate saving of the entries must be activated with the DATA_ACCESS tag.
  • Page 197 Easy Extend 8.6 Examples </DEVICE> Dialog with combo box <form> <init> <caption>selected machine data</caption> <DATA_ACCESS type="true" /> <!-- switch on the direct access to the NC variables --> <control name = "edit1" xpos = "322" ypos = "34" refvar="$MN_AXCONF_MACHAX_NAME_TAB[0]" /> <control name = "edit2"...
  • Page 198 Easy Extend 8.6 Examples </control> </init> <paint> <text xpos = "23" ypos = "34">AXCONF_MACHAX_TAB[0]</text> <text xpos = "23" ypos = "54">AXCONF_MACHAX_TAB[1]</text> <text xpos = "23" ypos = "74">AXCONF_MACHAX_TAB[2]</text> <text xpos = "23" ypos = "94">AXCONF_MACHAX_TAB[3]</text> <text xpos = "23" ypos = "114">Is rot axis 1</text> <text xpos = "23"...
  • Page 199: User Example For A Power Unit

    Easy Extend 8.6 Examples 8.6.3 User example for a power unit Activating the drive object The drive object to be activated has already been commissioned and deactivated again by the machine manufacturer, to market the axis (axes) as an option. To activate the axis carry out the following steps: ●...
  • Page 200 Easy Extend 8.6 Examples Activating the PLC-controlled device The device is activated and deactivated by the user program using bit memory 100.0. Programming: <AGM> <OPTION_MD NAME= "$MN_USER_DATA_INT[0]" /> <DEVICE> <LIST_ID>1</LIST_ID> <NAME> "PLC Device" </NAME> <SET_ACTIVE> <SET_ACTIVE> <DATA NAME= "PLC/M100.0"> 1 </DATA> </SET_ACTIVE>...
  • Page 201: Description Of The Script Language

    Easy Extend 8.7 Description of the script language Description of the script language Script language: Extended XML XML (Extended Markup Language) is used as the script language, extended to include data processing and high-level language elements. In contrast to standard XML, the language offers the following additional properties: ●...
  • Page 202: Special Characters And Operators

    Easy Extend 8.7 Description of the script language 8.7.1 Special characters and operators Displaying special characters Characters with special meanings in XML syntax have to be rewritten if they are to be displayed correctly by a general XML interpreter. The following characters are affected: Character Notation in XML Meaning...
  • Page 203: Structure Of The Xml Script

    Easy Extend 8.7 Description of the script language 8.7.2 Structure of the XML script Overview The following identifiers are available for the description of the device: ● Identifier for Easy Extend ● Identifier for the device ● Identifier for commissioning the device ●...
  • Page 204: Control_Reset

    Easy Extend 8.7 Description of the script language Example <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE AGM> <AGM> Identifier for Easy Extend <DEVICE> <NAME> Device 1 </NAME> Identifier for the device <START_UP> Identifier for commissioning the device … </START_UP> <SET_ACTIVE> Identifier for activating the device …...
  • Page 205: Data

    Easy Extend 8.7 Description of the script language 8.7.4 DATA Description Identifier for access to NCK, PLC and drive data. Further details are described in Chapter: Addressing the parameters (Page 228) Programming Identifier: DATA Syntax: <data name ="<Address>" > value </data> Attributes: name Identifier for the variable name...
  • Page 206: Data_List

    Easy Extend 8.7 Description of the script language 8.7.6 DATA_LIST Description This identifier enables the drive and machine data to be buffered or restored. Up to 20 temporary data lists can be created per device. Note The system deletes the data lists when the Easy Extend function is exited. Programming Identifier: DATA_LIST...
  • Page 207: Drive_Version

    Easy Extend 8.7 Description of the script language 8.7.7 DRIVE_VERSION Description Identifier for the drive version. The version number is copied to the variable $driveversion which is valid within the DEVICE identifier. Further details are described in Chapter: Addressing the parameters (Page 228) Programming Identifier: DRIVE_VERSION...
  • Page 208 Easy Extend 8.7 Description of the script language Programming Identifier: FILE Syntax: <file name ="<archive name>" /> <file name ="<archive name>" create="true" class="<data classes>" group="<area>" /> Attributes: name Identifier for the file name class Specifies the data classes that are to be contained in the archive.
  • Page 209: Function

    Easy Extend 8.7 Description of the script language 8.7.9 FUNCTION Description Function call: This identifier carries out the function specified under the attribute "name". Programming Identifier: FUNCTION Syntax: <FUNCTION name = "function name" /> Attributes: name Function name return Variable name for saving the result of the function Call parameters: Call parameters are transferred as values of the XML statement.
  • Page 210: • Function Body

    Easy Extend 8.7 Description of the script language 8.7.10 FUNCTION_BODY Description Function body: This identifier forms the function body of a subfunction. Programming Identifier: FUNCTION_BODY Syntax: <FUNCTION_BODY name = "function name" > • Function body without parameter … </ FUNCTION_BODY> <FUNCTION_BODY name="function_name"...
  • Page 211: Include

    Easy Extend 8.7 Description of the script language Example <function_body name="test" parameter="c1,c2,c3" return="true"> <let name="tmp">0</let> <op> tmp = c1+c2+c3 </op> <op> $return= tmp </op> </function_body> … <let name="my_var"> 4 </let> <function name="test" return=" my_var " > 2, 3, 4</function> <print text="result=%d"> my_var </print> …...
  • Page 212: Let

    Easy Extend 8.7 Description of the script language 8.7.12 Description Identifier for a local variable under the specified name. The variable remains valid until the end of the higher-level XML block. Variables which are to be available globally should be created directly after the AGM tag. Note Preassignment of a STRING variable Texts containing more than one line can be assigned to a string variable if the formatted text...
  • Page 213: Msgbox

    Easy Extend 8.7 Description of the script language Example <LET name="text" type = "string"> F4000 G94\n G1 X20\n Z50\n M2\n </LET> 8.7.13 MSGBOX Description The identifier opens a message window whose return value can be used for branching. If a text reference is used, the message window displays the text which is saved for the identifier.
  • Page 214 Easy Extend 8.7 Description of the script language 8.7.14 Description Identifier for an execute statement: All permissible operators may be executed. For accessing the NCK, PLC and drive data, the complete variable name is to be placed in quotation marks. Programming Identifier: Syntax:...
  • Page 215: Option_Md

    Easy Extend 8.7 Description of the script language 8.7.15 OPTION_MD Description The identifier allows option machine data to be redefined. As delivered, the system uses MD14510 $MN_USER_DATA_INT[0] to $MN_USER_DATA_INT[3]. If the PLC user program manages the options, the appropriate data words must be provided in a data block or GUD.
  • Page 216: Password

    Easy Extend 8.7 Description of the script language 8.7.16 PASSWORD Description If this identifier is assigned to a device, a softkey appears when the option is not set requesting the input of a password for this device. The character string is processed by the PLC and the result forwarded to the HMI via the option data.
  • Page 217: Power_Off

    Easy Extend 8.7 Description of the script language 8.7.18 POWER_OFF Description Identifier for a message prompting the operator to switch the machine off. The message text is permanently saved in the system. Programming Identifier: POWER_OFF Syntax: <power_off /> Attributes: 8.7.19 PRINT Description The identifier outputs a text in the message line or copies the text to the specified variable.
  • Page 218: Waiting

    Easy Extend 8.7 Description of the script language Parameter Application Type The type character defines which data formats are transferred for the PRINT instruction. This character must be specified. The following data formats are supported: d: Integer value • f: Floating-point number •...
  • Page 219: Xml Identifiers For The Dialog

    Easy Extend 8.7 Description of the script language 8.7.21 Description SinuCom Installer: This section contains the script language for the SinuCom Installer. If the code from a SinuCom Installer file is to be included, the INCLUDE (Page 211) statement must be used. Programming Identifier: Syntax:...
  • Page 220 Easy Extend 8.7 Description of the script language Identifier <tag> Meaning INIT Dialog message: Identifier for initializing the dialog. The identifier is executed immediately after the dialog is created. All the input elements and hotlinks for the dialog should be created here. PAINT Dialog message: Identifier for displaying all texts and images of a dialog.
  • Page 221: Box

    Easy Extend 8.7 Description of the script language 8.7.23 Description Identifier for drawing a filled rectangle at the specified position, colored as specified. Programming Identifier: Syntax: <box xpos="X position" ypos = "Y position" width="X extension" height="Y extension" color="Color code" /> Attributes: xpos Position in the X direction (zero point in the left upper...
  • Page 222 Easy Extend 8.7 Description of the script language fieldtype Field type: • fieldtype="edit" • The data can be edited. • fieldtype="readonly" • The data can be read. • fieldtype="combobox" • Identifiers are shown instead of the data. format The attribute defines the display format of the specified variables, e.g.
  • Page 223: Img

    Easy Extend 8.7 Description of the script language Syntax: <item>expression</item> <control name = "button1" xpos = "10" ypos = "10" fieldtype="combo box"> <item>text1</item> <item>text2</item> <item>text3</item> <item>text4</item> </control> ; If an arbitrary integer value is to be assigned to an expression, the attribute value="value"...
  • Page 224: Property

    Easy Extend 8.7 Description of the script language Programming Identifier: Syntax: <img name = "<Name>" xpos = "X position" ypos = "Y position" height = "Scaling in Y" width = "Scaling in X" /> Attributes: name Extension in Y direction (in pixels) xpos Position in the X direction (zero point in the left upper corner)
  • Page 225: Request

    Easy Extend 8.7 Description of the script language <property max = "40" /> <property default="25" /> </control> 8.7.27 REQUEST Description This identifier is only valid within the INIT statement of a form. This identifier is used to add a variable to the cyclic reading service (hotlink). Programming Identifier: REQUEST...
  • Page 226: Text

    Easy Extend 8.7 Description of the script language Programming Identifier: SOFTKEY_OK Syntax: <SOFTKEY_OK> … </SOFTKEY_OK> Identifier: SOFTKEY_CANCEL Syntax: <SOFTKEY_CANCEL> … </SOFTKEY_CANCEL> 8.7.29 TEXT Description Identifier for displaying text Programming Identifier: TEXT Syntax: <text xpos="X position" ypos = "Y position" color="Color code"> Text </text>...
  • Page 227: Type_Cast

    Easy Extend 8.7 Description of the script language 8.7.30 TYPE_CAST Description Identifier to convert the data type of a local variable. Programming Identifier: TYPE_CAST Syntax: <type_cast name="variable name" type=" new type" /> Attributes: name Name of variable type New data type convert Interprets the bit combination (indirect assignment) Example...
  • Page 228: Update_Controls

    Easy Extend 8.7 Description of the script language <type_cast name="plc_float" convert="float" /> <op> result = plc_float *1.2 </op> </timer> 8.7.31 UPDATE_CONTROLS Description This identifier performs a comparison between the operator controls and the reference variables. Programming Identifier: UPDATE_CONTROLS Syntax: <update_controls type="<Direction>"/> Attributes: type The attribute defines the direction of the data...
  • Page 229 Easy Extend 8.7 Description of the script language Addressing PLC data blocks: Data format f: B: Byte W: Word D: Double word x address: Valid PLC address identifier Bit addressing: b = Bit number The following addresses are permissible: DBx.DB(f) Data block I(f)x Input...
  • Page 230 Easy Extend 8.7 Description of the script language Addressing the machine data and setting data Machine data and setting data is identified by the character $, followed by the name of the data. ● Machine data: $Mx_<name[index, AX<axis_number>]> ● HMI machine data: $MxS_<name[index, AX<axis_number>]>...
  • Page 231: Addressing The Drive Objects

    Addressing starts with the path section gud, followed by the specification of the area CHANNEL. This address section is followed by the specification of the GUD areas: GUD areas Assignment sgud Siemens GUD mgud Machine manufacturer GUD ugud User GUD Then enter the GUD name.
  • Page 232 Easy Extend 8.7 Description of the script language Example: <data name ="drive/cu/p0092">1</data> <data name ="drive/dc/p0092[do1] ">1</data> Indirect addressing: <let name = "driveIndex> 0 </let> <op> driveIndex = $ctrlout_module_nr[0, AX1] </op> <data name ="drive/dc[do$driveIndex]/p0092">1</data> Addressing an NX An NX module is treated as another CU, module addressing uses the CU specification, whereby the desired NX number incremented by one is specified in square brackets after the parameter.
  • Page 233: Xml Identifiers For Statements

    Easy Extend 8.7 Description of the script language 8.7.34 XML identifiers for statements Program statements The following identifiers are permissible for statements: Identifier <tag> Meaning Conditional statement (IF, THEN, ELSE) The THEN and ELSE tags are included in the IF tag. The condition which is stated in the CONDITION tag follows the IF tag.
  • Page 234 Easy Extend 8.7 Description of the script language Identifier <tag> Meaning The FOR loop is executed as follows: 1. The expression initialization (INIT) is analyzed. 2. The expression test (CONDITION) is analyzed as a Boolean expression. If the value is false (FALSE) the FOR loop is ended. 3.
  • Page 235 Easy Extend 8.7 Description of the script language Identifier <tag> Meaning DO_WHILE The DO WHILE loop comprises a block of statements and a condition. The code within the statement block is executed first, then the condition is analyzed. If the condition is true, the function executes the code section again.
  • Page 236: String Functions

    Easy Extend 8.8 String functions String functions Overview of the functions The script language offers various string functions. The function names are reserved and cannot be overloaded. Name Function string.cmp Comparing character strings (string.cmp (Page 237)) string.icmp Comparing character strings without consideration of upper/lower case (string.icmp (Page 237)) string.left Selecting number of characters from the left (string.left (Page 238))
  • Page 237: String.cmp

    Easy Extend 8.8 String functions 8.8.1 string.cmp Description Two strings are compared with each other. The function gives a return value of zero if the strings are the same, a value less than zero if the first string is smaller than the second string or a value greater than zero if the second string is smaller then the first string.
  • Page 238: String.left

    Easy Extend 8.8 String functions Programming Designation: string.icmp Syntax: <function name="string.icmp" retvar ="<int var>" > str1, str2 </function> Parameters: str1 String str2 Comparison string rval Result Example <let name="rval">0</let> <let name="str1" type="string">A brown bear hunts a brown dog.</let> <let name="str2" type="string">A brown Bear hunts a brown Dog.</let> <function name="string.icmp"...
  • Page 239: String.right

    Easy Extend 8.8 String functions Example <let name="str1" type="string">A brown bear hunts a brown dog.</let> <let name="str2" type="string"></let> <function name="string.left" return="str2"> str1, 12 </function> ;Result: str2="A brown bear" 8.8.4 string.right Description The function extracts the last nCount characters from string 1 and copies them to the return variable.
  • Page 240: String.middle

    Easy Extend 8.8 String functions 8.8.5 string.middle Description The function extracts the specified number of characters from string 1, starting from the iFirst index, and copies them to the return variable. Programming Designation: string.middle Syntax: <function name="string.middle" return="< result string>"> str1, iFirst, nCount </function>...
  • Page 241: String.replace

    Easy Extend 8.8 String functions Example <let name="length">0</let> <let name="str1" type="string">A brown bear hunts a brown dog.</let> <function name="string.length" return="length"> str1 </function> ; Result: length=31 8.8.7 string.replace Description The function replaces all the substrings found with the new string. Programming Designation: string.replace Syntax:...
  • Page 242: String.remove

    Easy Extend 8.8 String functions 8.8.8 string.remove Description The function deletes all the substrings found. Programming Designation: string.remove Syntax: <function name="string.remove" > string, remove string </function> Parameters: string String remove string Substring to be deleted Example <let name="index">0</let> <let name="str1" type="string">A brown bear hunts a brown dog. </let> <function name="string.remove"...
  • Page 243: String.insert

    Easy Extend 8.8 String functions Example <let name="str1" type="string">A brown bear hunts. </let> <function name="string.delete" > str1, 2, 5 </function> ;Result: str1="A bear hunts." 8.8.10 string.insert Description The function inserts a string at the index specified. Programming Designation: string.insert Syntax: <function name="string.insert">...
  • Page 244: String.find

    Easy Extend 8.8 String functions 8.8.11 string.find Description The function searches the transferred string for the first match with the substring. If the substring is found, the function provides the index to the first character (starting with zero), otherwise -1. Programming Designation: string.find...
  • Page 245: String.trimleft

    Easy Extend 8.8 String functions Programming Designation: string.reversefind Syntax: <function name="string.reversefind" return="<int val>"> str1, find string </function> Parameters: string String variable find string String to be found Example <let name="index">0</let> <let name="str1" type="string">A brown bear hunts a brown dog. </let> <function name="string.reversefind"...
  • Page 246: String.trimright

    Easy Extend 8.8 String functions 8.8.14 string.trimright Description The function trims the closing characters from a string. Programming Designation: string.trimright Syntax: <function name="string.trimright" > str1 </function> Parameters: str1 String variable Example <let name="str1" type="string"> test trim right </let> <function name="string.trimright" > str1 </function> ;Result: str1="...
  • Page 247: Trigonometric Functions

    Easy Extend 8.9 Trigonometric functions Trigonometric functions Overview of the functions The script language offers various trigonometric functions. The function names are reserved and cannot be overloaded. Trigonometric functions and inverse functions: Name Function Sine Cosine Tangent arcsin Arc sine arccos Arc cosine arctan...
  • Page 248 Easy Extend 8.9 Trigonometric functions Arc sine, arc cosine, arc tangent description The function calculates the arc sine, arc cosine, arc tangent of the value transferred. Programming of arcsin, arccos Designation: arcsin Syntax: <function name="arcsin" return="<double val>"> double </function > Designation: arccos Syntax:...
  • Page 249: Tool Management

    SINUMERIK 828D. The description of the PLC functions and the communication between NC and PLC in this documentation is not valid for the SINUMERIK 828D. ● The settings of the tool management user interface are described in: →...
  • Page 250: Structure Of The Tool Management

    Tool management 9.1 Fundamentals 9.1.1 Structure of the tool management Function structure The software components of the control have the following tasks in the tool management: ● HMI: – Tool data display, input/output – Magazine data display, input/output – Load/Unload relocation dialog ●...
  • Page 251: Components Of The Tool Management

    Tool management 9.1 Fundamentals PLC-Firmware Functions of the PLC firmware: ● Assignment of tool management jobs to the PLC user program ● Communication of PLC user program acknowledgments to the tool management ● Transfer feedback signals for each acknowledgment (acknowledgment incorrect with error number of acknowledgment OK) to PLC user program.
  • Page 252 Tool management 9.1 Fundamentals Example: The T number of the tool in magazine location 7 in magazine 1: $TC_MPP6[1,7] Tool list The tool list contains all the tools known to the NC. These are the tools in the magazine and unloaded tools whose data is to be retained.
  • Page 253 Tool management 9.1 Fundamentals Chain magazine The setting in MD22550: $MC_TOOL_CHANGE_MODE may only have the value 1 for these magazine types. Chain magazines do not as a rule have any additional buffer available for transportation between magazine and spindle. These additional buffers can contain tools temporarily. Description of the buffers and loading points: Magazine Location...
  • Page 254: Loading And Unloading Tools Manually

    Tool management 9.1 Fundamentals Consider adjacent location Consider adjacent location is used for oversized tools. When searching for empty locations (loading, tool change) the bits 4 ... 11 are then evaluated in the magazine location parameter $TC_MPP4 (half location occupied/reserved). See also You can find additional information in the "Machine data for the tool management (Page 272)"...
  • Page 255: Plc - Nck User Interface

    Tool management 9.2 PLC - NCK user interface PLC - NCK user interface Overview The tool management receives tasks for preparing and carrying out a tool change (T command, M06), a tool movement (MVTOOL) or magazine positioning (POSM) from the part program or from the HMI.
  • Page 256: Relocating, Unloading, Loading Tool, Positioning Magazine

    Tool management 9.2 PLC - NCK user interface 9.2.1 Relocating, unloading, loading tool, positioning magazine Tool and magazine movements Per loading point there is one interface for: ● Jobs for loading, unloading, relocating a tool (MVTOOL) and for magazine positioning (POSM).
  • Page 257 Tool management 9.2 PLC - NCK user interface Interface signal Meaning xx: Load location DB40xx.DBX0.0 – DBX 3.6 PLC user program: Acknowledgments for loading/unloading/relocating or positioning the magazine DB40xx.DBX9.0 PLC user program: Resetting the message "Acknowledgment error" /DB41xx.DBX100.1) and the diagnostic information in the feedback interface DB41xx.DBX0.0 Tool management:...
  • Page 258 Tool management 9.2 PLC - NCK user interface DB4100...41xx Signals from tool management [r] DBW12 Target location number (INT) DBW14: Load/unload HMI → PLC without moving magazine Signal description: ● Job: The interface contains a job. Job processing has not yet been completed with an end acknowledgment.
  • Page 259 Tool management 9.2 PLC - NCK user interface Acknowledgments DB4000...40xx Signals to tool management [r/w] xx: Load location Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB0 Acknowle Acknowled Acknowled Acknowled Acknowled Acknowled Acknowled...
  • Page 260 Tool management 9.2 PLC - NCK user interface Feedback reports DB4100...41xx Signals from tool management [r] xx: Load location Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB100 Acknowled Acknowled gment gment OK error DBB101...
  • Page 261 Tool management 9.2 PLC - NCK user interface Errors that are detected directly by the tool management in the NC before an acknowledgment is sent by the PLC user program, do not result in the setting of bit 100.1. If an error is present that prevents transfer of the acknowledgment to the tool management (error status 1 to 7), the error is only output on the interface of the tool management and not by the NC (no NC alarm!).
  • Page 262: Tool Change

    Tool management 9.2 PLC - NCK user interface Job status DB4100...41xx Signals from tool management [r] xx: Load location Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBW124 Current magazine number of the tool (INT) DBW126 Current location number of the tool (INT) DBW128...
  • Page 263 Tool management 9.2 PLC - NCK user interface The machine data with which the response of block preprocessing, main run, and the various acknowledgment responses are defined are described in Chapter Settings for the tool management (Page 272). The main NCK run can be continued with the end acknowledgment to the job "Carry out tool change".
  • Page 264 Tool management 9.2 PLC - NCK user interface Jobs DB4300...43xx Signals from tool management [r] xx: Tool holder Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB0 DBB1 Tool Unload Load No old Prepare Change...
  • Page 265 Tool management 9.2 PLC - NCK user interface Signal description: ● Job: The interface contains a job. Job processing has not yet been completed with an end acknowledgment. This signal is reset after transmission of the end acknowledgment to the tool management. ●...
  • Page 266 Tool management 9.2 PLC - NCK user interface Acknowledgments DB4200 ... 42xx Signals to tool management [r/w] xx: Tool holder Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB0 Acknowledg Acknowle Acknowled Acknowled Acknowled...
  • Page 267 Tool management 9.2 PLC - NCK user interface Feedback reports DB4300...43xx Signals from tool management [r] xx: Load location Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DBB100 Acknowled Acknowled gment gment OK error DBB101...
  • Page 268 Tool management 9.2 PLC - NCK user interface Signal description: ● Acknowledgment OK (DB43xx.DBX100.0): Positive feedback of acknowledgment status. The acknowledgment of the PLC user program (area DB42xx.DBB0 to DBB3) was transferred without error to the tool management. This signal is reset after one PLC cycle. ●...
  • Page 269: Transfer-Step And Acknowledgment-Step Tables

    Tool management 9.2 PLC - NCK user interface Map of acknowledgments (DB43xx.DBB108 to DBB111) The acknowledgments last set by the PLC user program (DB42xx.DBB0 to DBB3) are set and reset by the PLC firmware together with the bits "Acknowledgment OK" or "Acknowledgment error."...
  • Page 270 Tool management 9.2 PLC - NCK user interface Transfer-step tables The individual tool movements are defined as transfer steps – tool from magazine location x/y to magazine location m/n. Acknowledgment steps can be defined with these transfer steps. DB9900 contains permanently configured transfer steps (constant transfer-step table). DB 9901 can be changed by the PLC user program;...
  • Page 271 Tool management 9.2 PLC - NCK user interface Acknowledgment step table Each entry indexes two transfer steps (for the new and old tool) and gives the corresponding status reached. The acknowledgment-step table in DB9902 is used jointly for acknowledgments on the interface of the loading point and on the interface of the tool holder. DB9902 Acknowledgment-step table [r] Byte...
  • Page 272: Machine Data For The Tool Management

    Tool management 9.3 Machine data for the tool management Machine data for the tool management 9.3.1 Settings for the tool management Machine data (default setting) The following machine data has already been preset for tool management or will be set with "default data"...
  • Page 273 Tool management 9.3 Machine data for the tool management The setting in MD20270 affects the block preparation of the NC. To prevent preprocessing stop from occurring when tool change command is called until it is acknowledged again, perform NC functions without tool offset in the tool change subprogram, for example, traversing axes or output of auxiliary functions.
  • Page 274 Tool management 9.3 Machine data for the tool management MD20310: $MC_TOOL_MANAGEMENT_MASK Bit 24 Using an asynchronous transfer with acknowledgment status 201, you can move a tool to a location reserved for another tool with "reserved for tool from buffer". This location reservation is then removed before the movement is executed ("Reserved for new tool to be loaded"...
  • Page 275 Tool management 9.3 Machine data for the tool management Default setting for turning technology Two machine data items determine the function for turning technology: ● MD22550: $MC_TOOL_CHANGE_MODE = 0 Setting for a revolver magazine: The new tool is changed immediately with the T function. No additional M command is used.
  • Page 276: Dependency Between Md20360 And Sd54215

    The program is also to be found on the Toolbox CD. References Further information: ● SINUMERIK 828D List Manual: Machine data and interface signals ● SINUMERIK 802D sl/828D/840D sl: Function Manual: ISO dialects – The description "Substitution by a replacement cycle for a tool selection block" is valid for the ISO mode (G291).
  • Page 277 Tool management 9.3 Machine data for the tool management SD54215: $SNS_TM_FUNCTION_MASK_SET Bit 8: Diameter display for face axis - geometry. The geometry value of the transverse axis is displayed as a diameter value, if a transverse axis is defined in MD20100 $DIAMETER_AX_DEF and SD42940 $TOOL_LENGTH_CONST is set to 18 and SD42950 $TOOL_LENGTH_TYPE is set to 2.
  • Page 278: Tool Measuring In Jog

    Tool management 9.3 Machine data for the tool management 9.3.3 Tool measuring in JOG Tool call for tool measuring in JOG For special applications (e.g. measuring cycles in JOG), it is necessary to load a specific tool (e.g. miller_15, duplo number 2) - independent of its status - onto the spindle or the toolholder;...
  • Page 279 Tool management 9.3 Machine data for the tool management Measuring in JOG without electronic probe For manual measuring functions in the JOG operating mode, for which a rotating spindle is required, the following applies: ● The channel state must be reset at the instant in time that the measured value is transferred.
  • Page 280: Plc Program Blocks

    Tool management 9.4 PLC Program Blocks PLC Program Blocks 9.4.1 Acknowledgment process Information to tool management The tool management expects acknowledgment of its orders in order to track and carry the actual tool positions. At least one acknowledgment is required for each order. This is sufficient for many applications.
  • Page 281: Types Of Acknowledgment

    Tool management 9.4 PLC Program Blocks 9.4.2 Types of acknowledgment Tool and magazine movements The tool management distinguishes between synchronous acknowledgment and an asynchronous job-independent message. Synchronous acknowledgment ● Acknowledgment of the intermediate steps of a job (tool management registers the current position changes of tools, part program must wait).
  • Page 282: Acknowledgment States

    Tool management 9.4 PLC Program Blocks 9.4.3 Acknowledgment states Acknowledgment states and their meaning: The status indicated by the respective type of acknowledgment is shown in the following table: Acknowledgment Meaning Synchronous end Job finished at the specified position: acknowledgment The tools are in the positions specified.
  • Page 283 Tool management 9.4 PLC Program Blocks Overview of evaluated table parameters Acknowledgment status New tool Transfer step from magazine • from location • to magazine • to location • Old tool Transfer step from magazine • from location • to magazine •...
  • Page 284 Tool management 9.4 PLC Program Blocks Typical sequence of any job with total acknowledgment Signal description: ① The PLC user program recognizes from the 0/1 edge of the signal DB43xx.DBX0.0 (job) that a new job has been assigned by the tool management. ②...
  • Page 285 Tool management 9.4 PLC Program Blocks Sequence of the tool management with block splitting (machine data setting milling) Txx M6 ; Program L6 is called with M6 (basic setting) Signal description: ① The PLC user program receives a new job. The job "prepare tool change" and the job "execute tool change"...
  • Page 286 Tool management 9.4 PLC Program Blocks Sequence of the tool management without block splitting (machine data setting milling) Txx Myy ; Myy is the setting from MD22560: $MC_TOOL_CHANGE_M_CODE This type of programming is not recommended! Signal description: ① The PLC user program receives a new job. The job "prepare tool change" and the job "execute tool change"...
  • Page 287: Configuring Step Tables

    Tool management 9.4 PLC Program Blocks 9.4.4 Configuring step tables Configuring step tables You can find the transfer-step tables (TM_CTS, DB9900 and TM_VTS, DB9901) and the acknowledgment-step table (TM_ACK, DB9902) in the Programming Tool under "Libraries" → "Special data blocks". The blocks are copied into a project with a double-click. The structure of the data blocks is permanently fixed.
  • Page 288 Tool management 9.4 PLC Program Blocks Example: Constant transfer-step table Transfer step Address Name Start value Comment DB9900 SrcMag_1 Source magazine number of the transfer step SrcPos_1 Source position number of the transfer step DstMag_1 Target magazine number of the transfer step DstPos_1 Target position number of the...
  • Page 289 Tool management 9.4 PLC Program Blocks Example: Variable transfer-step table Transfer Address Name Start value Comment step DB9901 SrcMag_101 Source magazine number of the transfer step SrcPos_101 Source position number of the transfer step DstMag_101 9998 Target magazine number of the transfer step DstPos_101 Target position number of the...
  • Page 290: Configuring Acknowledgment Steps

    Tool management 9.4 PLC Program Blocks 9.4.5 Configuring acknowledgment steps Configuring the acknowledgment steps The PLC 31 provides acknowledgment steps to acknowledge tool and magazine movements. These are activated via the corresponding bits on the user interface. The data of these acknowledgment steps (with the exception of special case acknowledgment step 9: total acknowledgment) are stored in acknowledgment step table TM_ACK (DB9902).
  • Page 291: Adjust The Plc User Program

    Tool management 9.4 PLC Program Blocks After processing, the acknowledgment bit is reset one PLC cycle by the PLC firmware. In the same data block where the acknowledgments have taken place, for a PLC cycle the feedback message is output in bit 100.0 (acknowledgment OK), or as a static signal in bit 100.1 (acknowledgment error);...
  • Page 292: Information On Magazine Location

    Tool management 9.4 PLC Program Blocks Rules for acknowledgment If intermediate steps are useful, several rules must be observed during acknowledgment: The PLC user program must ensure that all acknowledgments are transferred correctly to the tool management. ● Only one acknowledgment signal at a time may be sent to the tool management. ●...
  • Page 293 Tool management 9.4 PLC Program Blocks Read variable from Address Signal Valid values the NCK Result DB1200.DBX2000.0 Job completed DB1200.DBX2000.1 Error in job DB120x.DBX3000.0 Variable is valid DB120x.DBB3001 Access result 0/3/5/10 DB120x.DBW3004 Data from NCK variable Legend: n > 0: Location type for virtual location n = 0: "match all"...
  • Page 294: Pi Service: Tmmvtl

    Tool management 9.4 PLC Program Blocks Variable $TC_MPP6 with index 9: T number of the tool at this location Parameter assignment: Read variable from Address Signal Valid values the NCK DB1200.DBX0.0 Start DB1200.DBX0.1 Write variable DB1200.DBB1 Number of variables 1 … 8 Parameter DB120x.DBW1000 Variables index...
  • Page 295 Tool management 9.4 PLC Program Blocks Parameter assignment Starting program instance services in the NCK area: PI service Address Signal Valid values DB1200.DBX4000.0 Start DB1200.DBB4001 PI index Parameter DB1200.DBW4004 Tool number 1 ... 31999 (internal T number) DB1200.DBW4006 Source location number 1 ...
  • Page 296: Example: Loading/Unloading

    Tool management 9.5 Example: Loading/unloading Example: Loading/unloading Programming For loading, tools are placed directly in the magazine or the spindle; for unloading, they are removed directly from the magazine. Normally, a single acknowledgment from the operator or the PLC user program (tool holder is closed again) is sufficient as a message that the process is complete.
  • Page 297 Tool management 9.5 Example: Loading/unloading Loading via the spindle with preselection of a magazine location You can create a new tool directly on the spindle or, using the "load" dialog, move a tool from the tool list, which is not located in the magazine, to the spindle. 1.
  • Page 298: Example: Change Manual Tools

    Tool management 9.6 Example: Change manual tools Example: Change manual tools Programming In MD22562: $MC_TOOL_CHANGE_ERROR_MODE Bit 1=1, additional tools without magazine allocation have been selected by the NC part program. The selected tool must be inserted in the machine manually and removed again manually after machining ("manual tools").
  • Page 299 Tool management 9.6 Example: Change manual tools An intermediate step can be inserted for acknowledging the removal of the old tool: Synchronous acknowledgment: The tool is no longer in the spindle: Transfer step From Comment Magazine Locati Magazine Locati 9998 9999 Tool removed from the spindle DB9900.DBW40...
  • Page 300 Tool management 9.6 Example: Change manual tools Displayed on the interface: DB4300.DBX0.0 /1.1 and 1.6 ("Execute tool change") The job remains otherwise unchanged, the tools are still at the starting positions. Synchronous acknowledgment: The old tool is no longer in the spindle: Transfer step From Comment...
  • Page 301 Tool management 9.6 Example: Change manual tools Acknowledg Acknowledgment bit Transfer step for the Transfer step for the Status ment step new tool old tool DB4200.DBXx.x This completes the tool movement. End acknowledgment: Acknowledg Acknowledgment bit Transfer step for the Transfer step for the Status ment step...
  • Page 302: Application Example For Turning Machine

    Tool management 9.7 Application example for turning machine Application example for turning machine 9.7.1 Example: Turning machine with revolver magazine (MAGKONF_MPF) Example file You can find the program for configuring the magazine in the Toolbox. The program can be read into the control and should be adjusted for the specific machine concerned.
  • Page 303 Tool management 9.7 Application example for turning machine See also You will find a precise description of the parameters used in the Tool Management Function Manual of SINUMERIK 840D sl. Example MAG_CONF_MPF 1. Plant configuration: – 1 revolver magazine with 8 locations (can be set up in N40) –...
  • Page 304 Tool management 9.7 Application example for turning machine N220; Delete old data when magazine 1 is set up N230 if NUM_MAG ==1 N240 $TC_MAP1[0]=0 ; Delete magazine N250 $TC_DP1[0,0]=0 ; Delete Tools N260 STOPRE N270 endif ; Configuration N280 $TC_MAMP2= PLACE_SEARCH ;...
  • Page 305 Tool management 9.7 Application example for turning machine N530 $TC_MAP1[9998]=7 ; Magazine type 7: Buffer N540 $TC_MAP2[9998]="BUFFER"<<NUM_MAG N550 $TC_MAP3[9998]=17 ; Magazine status N560 $TC_MAP6[9998]=1 ; Number of lines N570 $TC_MAP7[9998]=NUM_BUFFER ; Number of locations ; Locations in the buffer ;Spindle N580 $TC_MPP1[9998,1]=2 ;...
  • Page 306 Tool management 9.7 Application example for turning machine N870 $TC_MPP3[9999,PLACE]=0 ; Consider adjacent location Off N880 $TC_MPP4[9999,PLACE]=2 ; Location status N890 $TC_MPP5[9999,PLACE]=PLACE ; Location type index N900 endfor N910 STOPRE N920; Offsets (clearances) ; Clearances to magazine ; Buffer N930 for PLACE=1 to NUM_BUFFER N940 $TC_MDP2[1,PLACE]=0 N950 endfor N960 STOPRE...
  • Page 307: Example: Acknowledgment Steps (Turning Machine)

    Tool management 9.7 Application example for turning machine Display in operating software Figure 9-4 Turning machine tool list 9.7.2 Example: Acknowledgment steps (turning machine) Acknowledgment steps Generally, the mechanical sequences on a turning machine are simpler than those for a milling machine.
  • Page 308: Example: Tool Change Cycle For Turning Machine

    Tool management 9.7 Application example for turning machine Figure 9-5 Programming in PLC user program An asynchronous message can be used for magazine movements without a job from the tool management. Acknowledgment to tool management: Acknowledgment Acknowledgment bit Transfer step new Transfer step old Status step...
  • Page 309 Tool management 9.7 Application example for turning machine Transfer variables of the T replacement cycle: Description $SC_T T number of the tool (numerical) $SC_T_Prog Bool variable that shows whether a T word is available in $C_T. $C_TS Identifier for tool (string) $C_TS_Prog Bool variable that shows whether an identifier is available in $C_TS.
  • Page 310: Example: Turning Machine With Counterspindle

    Tool management 9.7 Application example for turning machine ENDIF See also The function is available irrespective of tool management and is described in full in: Function Manual, Basic Functions, "Mode Group, Channel, Program Operation, Reset Behavior (K1)." 9.7.4 Example: Turning machine with counterspindle Magazine configuration In the magazine configuration the magazine is assigned twice as many locations as actually exist, e.g.
  • Page 311: Example: Transporting A Tool From A Buffer Into The Magazine

    Tool management 9.7 Application example for turning machine Read variable from the Address Signal Values Order DB1200.DBX0.1 Write variable DB1200.DBX0.2 PI service DB1200.DBB1 Number of variables DB1200.DBX0.0 Start → 1 Result DB1200.DBB2000.0 Order completed DB1200.DBX2000.1 Error in order DB1200.DBX3000.0 Variable is valid DB1200.DBB3001 Access result DB1200.DBW3004...
  • Page 312: Example: Repeat "Prepare Tool Change" Order

    Tool management 9.7 Application example for turning machine 9.7.7 Example: Repeat "Prepare tool change" order Sequence: Repeat the command For a milling machine with toolboy and shifter, the asynchronous transfer message and order can cross: ● The toolboy was acknowledged to the tool management as the target position for the old tool with the end acknowledgment.
  • Page 313: Application Example For Milling Machine

    Tool management 9.8 Application example for milling machine Application example for milling machine 9.8.1 Example: Milling machine with chain magazine and dual gripper (MAGKONF_EXAMPLE_MPF) Example file You can find the program for configuring the magazine in the Toolbox. The program can be read into the control and should be adjusted for the specific machine concerned.
  • Page 314 Tool management 9.8 Application example for milling machine Description of the program To start with, all the old magazine definitions and tools are deleted. As the program sequence continues, all magazines and buffers are newly created and assigned by writing the magazine parameters.
  • Page 315 Tool management 9.8 Application example for milling machine Example MAG_CONF_MPF 1. Plant configuration: – 1 chain magazine with 8 locations (can be set up in N40) – 1 loading point – 3 buffer locations (can be set up in N50, assignments from N540) 2.
  • Page 316 Tool management 9.8 Application example for milling machine N270 endif ; Configuration N280 $TC_MAMP2= PLACE_SEARCH ; Type of search strategy ; Magazine ; Set up magazine N290 $TC_MAP1[NUM_MAG]= MAG_TYPE N300 $TC_MAP2[NUM_MAG]="MAGAZINE"<<NUM_MAG N310 if MAG_TYPE == 3 N320 $TC_MAP3[NUM_MAG]=81 ; Magazine status, all locations fixed-location coded for revolver magazine N330 else...
  • Page 317 Tool management 9.8 Application example for milling machine ; Locations in the buffer ;Spindle N580 $TC_MPP1[9998,1]=2 ; Location type (here spindle) N590 $TC_MPP2[9998,1]=0 ; Location type (here always 0) N600 $TC_MPP3[9998,1]=0 ; Consider adjacent location Off N610 $TC_MPP4[9998,1]=2 ; Location status N620 $TC_MPP5[9998,1]=1 ;...
  • Page 318 Tool management 9.8 Application example for milling machine N920; Offsets (clearances) ; Clearances to magazine ; Buffer N930 for PLACE=1 to NUM_BUFFER N940 $TC_MDP2[1,PLACE]=0 N950 endfor N960 STOPRE ;Loading points N970 for PLACE=1 to NUM_LOAD N980 stopre N990 $TC_MDP1[1,PLACE]=0 N1000 endfor N1010 M30 ;...
  • Page 319: Flow Chart: Tool Change

    Tool management 9.8 Application example for milling machine 9.8.2 Flow chart: Tool change Tool change program sequence (PLC) The sequence described here describes the change between magazine and spindle. The changing of manual tools as well as loading and unloading are not taken into account. These sequences are described in: ●...
  • Page 320 Tool management 9.8 Application example for milling machine "Tool change" flow chart 1: 1 change: The old tool is deposited in the location of the new tool. Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 321 Tool management 9.8 Application example for milling machine Figure 9-8 Flow Diagram Description of the Procedure ● NC program: T command or T command with simultaneous tool change call (M6) ● Interface signals: Job from TM: DB43xx.DBX0.0 (job bit) and DB43xx.DBB1 (command bits): Prepare change (DB43xx.DBX1.2) ●...
  • Page 322 Tool management 9.8 Application example for milling machine The target position is read from DB4300.DBW8 (location number for new tool – source) and written to DB9901.DBW2 (transfer step 101). If there is magazine coincidence at the target position, the step is acknowledged asynchronously: Acknowledg Acknowledgment bit Transfer step new...
  • Page 323 Tool management 9.8 Application example for milling machine Step 4: Acknowledge prepare tool change job ← Previous step: Step 2 or Step 3 With this, the preparation for the tool change is complete for many systems. Acknowledgment to TM: Acknowledg Acknowledgment bit Transfer step new Transfer step old...
  • Page 324 Tool management 9.8 Application example for milling machine Transfer step From Comment Magazine Locati Magazine Locati 9998 New tool from magazine to gripper 1 DB9900.DBW0 Step 6 or Step 13 9998 9998 Old tool from spindle to gripper 2 DB9900.DBW8 Step 6 or Step 9 →...
  • Page 325 Tool management 9.8 Application example for milling machine Step 8: End acknowledgment ← Previous step: Step 7 or Step 14 End acknowledgment takes place with tool changeover in the initial setting, or in a state where the machine can continue machining. Here it is possible that there are still mechanical movements to be executed before the tool change can be completed.
  • Page 326 Tool management 9.8 Application example for milling machine Step 10: Old tool from gripper 2 to magazine ← Previous step: Step 9 The PLC program controls the machine functions with which the gripper movements, tool clamping, etc. are performed. As soon as the mechanical movements are completed and acknowledged in the PLC user program, the tool movements are acknowledged to the tool management.
  • Page 327 Tool management 9.8 Application example for milling machine Acknowledg Acknowledgment bit Transfer step new Transfer step old Status ment step tool tool DB4200.DBX0.4 Transfer step From Comment Magazine Locati Magazine Locati 9998 The variable location in magazine 1 is positioned at the changing point to DB9901.DBW0 the spindle.
  • Page 328 Tool management 9.8 Application example for milling machine Step 14: New tool from gripper 1 to spindle ← Previous step: Step 13 The PLC user program controls the machine functions with which the gripper movements, tool clamping, etc. are performed. As soon as the mechanical movements are completed and acknowledged in the PLC user program, the tool movements are acknowledged to the tool management.
  • Page 329: Example: Acknowledgment Steps (Milling Machine)

    Tool management 9.8 Application example for milling machine 9.8.3 Example: Acknowledgment steps (milling machine) Constant transfer step table Transfer step Comment Magazine Locati Magazine Locati 9998 New tool from magazine to gripper DB9900.DBW0 ⑥ ⑬ Step 9998 9998 ⑥ ⑨ DB9900.DBW8 Step 9998...
  • Page 330 Tool management 9.8 Application example for milling machine Acknowledgment step table Acknowledgment Transfer step Acknowledgm Comment step ent status Old tool New tool End acknowledgment, ④ ⑧ DB9902.DBW0 Step Cancel order DB9902.DBW4 Intermediate acknowledgment ④ DB9902.DBW8 for subsequent order, Step Variable magazine location to changing point DB9902.DBW12...
  • Page 331: Example: Tool Change Cycle For Milling Machine

    Tool management 9.8 Application example for milling machine 9.8.4 Example: Tool change cycle for milling machine Sample program PROC L6 SAVE DISPLOF ;---------------------------------------------------------------- ; Example of a tool change cycle for machine manufacturers ;---------------------------------------------------------------- DEF INT _WZ_IN_SP,_WZ_VOR DEF REAL _SPP= ... ;...
  • Page 332 Tool management 9.8 Application example for milling machine Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 333: Easy Archive

    A system archive delivered by Siemens can, for example, contain a new NCK version or an integrated HMI version or also a cycle hotfix.
  • Page 334: Saving Data In Archives

    Easy Archive 10.1 Saving data in archives 10.1 Saving data in archives When should you back up the start-up data? The following times are recommended for performing a data backup: ● After commissioning ● After changing machine-specific settings ● After replacing a hardware component ●...
  • Page 335 Easy Archive 10.1 Saving data in archives Components Data PLC data Main program (MAIN) • Data blocks (DBs) • User program • Drive data Binary format or ASCII format HMI data Texts: PLC alarm texts, cycle alarm texts, part program message texts •...
  • Page 336: This Is How You Create A Commissioning Archive

    Easy Archive 10.2 This is how you create a commissioning archive 10.2 This is how you create a commissioning archive Overview Control components can be saved individually or jointly. Creating a separate commissioning archive for each component is recommended, so that the files can be read in again independently of each other.
  • Page 337 Easy Archive 10.2 This is how you create a commissioning archive 4. Choose whether the data classes should be "ignored" or "considered" using the <SELECT> key: – Select "ignored" to archive all data belonging to the control component. – Select "considered" to write only the data in the data classes selected under "Selection"...
  • Page 338: This Is How You Import A Commissioning Archive

    Easy Archive 10.3 This is how you import a commissioning archive 10.3 This is how you import a commissioning archive Precondition The access level "User" is necessary for reading in an archive. Reading-in a commissioning archive Procedure: 1. Select the "Startup" operating area. 2.
  • Page 339: This Is How You Back Up Just The Machine Data That Have Changed

    Easy Archive 10.4 This is how you back up just the machine data that have changed 10.4 This is how you back up just the machine data that have changed Requirement The access level "Service" is required. Difference backup only for machine data that has changed Using the general MD11210 $MN_UPLOAD_MD_CHANGES_ONLY, you can set whether all machine data should be backed up in the archive, or only the machine data that differ from the default setting:...
  • Page 340: Example: Data Archiving "Easy Archive" (Use Case)

    Example: Data archiving "Easy Archive" (use case) Easy Archive With "Easy Archive", the SINUMERIK 828D has a fundamentally new procedure for data archiving. This procedure is tailored exactly to the needs of series machine manufacture. "Easy Archive" is based on a strict separation between SINUMERIK system software, customized OEM data (machine data, manufacturer cycles) and operator data (part programs, tool offsets).
  • Page 341 SINUMERIK 828D user interface. So no separate PC is needed for the archive. By separating the system data from the customized and user data, the SINUMERIK 828D system updates can be completely carried out by the OEMs, without changes to the customized data.
  • Page 342: Parameterizing The Serial Interface

    Easy Archive 10.6 Parameterizing the serial interface 10.6 Parameterizing the serial interface Data exchange Data exchange via the serial interface is possible from the following operating areas: ● "Program manager" operating area ● "Start-up" operating area → "System data" softkey Press the following softkeys to set the interface parameters: Note If the interface is already assigned, e.g.
  • Page 343 Easy Archive 10.6 Parameterizing the serial interface Parameter Permissible values Protocol: RTS/CTS (default setting) Xon/Xoff Transmission: normal backed up (default setting) Baud rate: 19200 (default setting) 300 ... 19200 max. Archive format: Punched tape Binary format (PC format) → only with RTS/CTS protocol Interface: COM1 Parity:...
  • Page 344 Easy Archive 10.6 Parameterizing the serial interface Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 345: Appendix

    Appendix Table: Language code in file names Supported languages Standard languages: Language Abbreviation in file name Chinese (simplified) Chinese (traditional) German English Spanish French Italian Korean Portuguese (Brazil) Other languages: Language Abbreviation in file name Czech Danish Finnish Hungarian Japanese Dutch Polish Rumanian...
  • Page 346: List Of Abbreviations

    Appendix A.2 List of abbreviations List of abbreviations Abbreviation Meaning Explanation Active Line Module ASCII American Standard Code for Information American coding standard for the exchange of Interchange information AUTO "Automatic" operating mode Mode group Operator Panel Interface BERO Proximity limit switch with feedback oscillator BICO Binector Connector Interconnection technology for the drive...
  • Page 347 Appendix A.2 List of abbreviations Abbreviation Meaning Explanation Megabyte Machine Control Panel Machine control panel Machine data "Manual Data Automatic" operating mode Manual input Motor Data Set Motor data set Machine Coordinate System MLFB Machine-Readable Product Code Main Program File Main program (NC part program) MAIN Main program...
  • Page 348 Appendix A.2 List of abbreviations Abbreviation Meaning Explanation Workpiece Coordinate System TMMG Tool Magazine Management Tool Management Zero Offset Active Identifier (file type) for work offset data Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 349: Documentation Overview

    Appendix A.3 Documentation overview Documentation overview Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 350 Appendix A.3 Documentation overview Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 351: Glossary

    Glossary Active Line Module (ALM) A controlled, self-commutating infeed/feedback unit (with IGBTs in infeed/feedback direction) which supplies a DC-link voltage for the → Motor Modules. Basic infeed Overall functionality of an infeed with → Basic Line Module, including the additional components required (filters, switching devices, etc.).
  • Page 352 Glossary Double Motor Module (DMM) Two motors can be connected to and operated with a Double Motor Module. See → Motor Module. Drive The drive includes the (electric or hydraulic) motor, the actuator (converter, valve), the control unit, the measuring system and the supply components (line infeed module, pressure accumulator).
  • Page 353 Glossary Drive unit The drive unit includes all components, which are connected via → DRIVE-CLiQ and required for carrying out a drive task: → Motor Module → Control Unit → Line Module and the required → Firmware and → Motors, but not complementary components (such as filters and reactors).
  • Page 354 Glossary Individual (I) data class This data class covers data concerning a particular machine and is also created during commissioning by the OEM, or later by the dealer. This data class will be referred to as "I" in the rest of this document. Infeed Input component of a converter system for generating a DC-link voltage for feeding one or several →...
  • Page 355 Glossary Motor For the electric motors that can be driven by → SINAMICS, a basic distinction is made between rotary and linear motors with regard to their direction of motion, and between synchronous and induction motors with regard to their electromagnetic operating principle. For SINAMICS, the motors are connected to a →...
  • Page 356 → license is required to use each software product. System (S) data class This data class covers data in the Siemens and System directories on the CompactFlash Card. For the rest of this document it will be referred to as "S".
  • Page 357 Glossary User views User views are user-specific groups of machine data. They are used to call all relevant machine data in a certain operating state from various areas for processing. The user views are stored on the CompactFlash card with the following path: user/sinumerik/hmi/template/user_views The following user views are already available as template: ●...
  • Page 358 Glossary Turning and Milling Commissioning Manual, 02/2012, 6FC5397-3DP40-3BA0...
  • Page 359: Index

    Index Activating a GSM modem, 343 Actual data table, 174 Addressing DO, 231 GUD, 231 $MC_CUTTING_EDGE_DEFAULT (MD20270), 272 MD, 230 $MC_TOOL_CHANGE_ERROR_MODE NC variables, 229 (MD22562), 254, 272, 297, 298 NX, 232 $MC_TOOL_CHANGE_MCODE (MD22560), 272 Parameter, 228 $MC_TOOL_CHANGE_MODE (MD22550), 253, 272 Setting data, 230 $MC_TOOL_MANAGEMENT_MASK (MD20310), 273 Adjacent location, 254...
  • Page 360 Index Definition files, 34 Dictionary Job status, 269 Editing, 46 importing, 46 Direct connection, 25 Drive Circuitry, 150 Language code, 345 Configuration, 106 License, 50, 54 Parameter, 139 License key, 50, 54 DRIVE-CLiQ, 106 License number, 54 Wiring rules, 143 Loading magazine, 252 Easy Archive, 340 Machine data, 155...
  • Page 361 Index TOOL_CHANGE_ERROR_MODE, 254, 297, 298 STARTER drive/commissioning software, 14 MD51235 String functions, 236 ACCESS_RESET_SERV_PLANNER, 184 System languages, 45 MD52270 TM_FUNCTION_MASK, 274 Measuring in JOG Tool call., 278 TCP/IP, 28 With rotating 'spindle, 279 TMMVTL (PI service), 294 Message, asynchronous, 281 Tool change, 262, 319 End acknowledgment, 262 Tool list, 252...
  • Page 362 Index Special characters, 202 Statements, 233 XML identifier ?up, 219 AGM, 203 BOX, 221 CAPTION, 219 CLOSE, 219 CONTROL, 221 CONTROL_RESET, 204 DATA, 205 DATA_ACCESS, 205 DATA_LIST, 206 DEVICE, 203 DRIVE_VERSION, 207 FILE, 208 FORM, 219 FUNCTION, 209 FUNCTION_BODY, 210 IMG, 224 INCLUDE, 211 INIT, 220...

Table of Contents